slider

还是菜鸟
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 2 3 4 5 6 ··· 12 下一页

2013年3月28日

摘要: offical site said, but it does not make it clearly. especial parse xml with attributes. here is my test according to docs from offical websites.public class XstreamTest { public static void main(String[] args) throws Exception { //convertXml2(); convertObject2(); } p... 阅读全文

posted @ 2013-03-28 23:22 slider 阅读(395) 评论(0) 推荐(0) 编辑

摘要: An image with higher resolution does not provide any visible benefit, but still takes up precious memory and incurs additional performance overhead due to additional on the fly scaling. Given that you are working with limited memory, ideally you only want to load a lower resolution version in mem... 阅读全文

posted @ 2013-03-28 10:32 slider 阅读(1463) 评论(0) 推荐(0) 编辑

2013年3月27日

摘要: offical website note:# import the logging libraryimport logging# Get an instance of a loggerlogger = logging.getLogger(__name__)def my_view(request, arg1, arg): ... if bad_mojo: # Log an error message logger.error('Something went wrong!') but it not display log info in termina... 阅读全文

posted @ 2013-03-27 20:35 slider 阅读(191) 评论(0) 推荐(0) 编辑

2013年3月26日

摘要: public class Explorer { String TAG = "Explorer"; private final String DISK_DIR = "/mnt"; public static final int DIR_SDCARD = 0; public static final int DIR_SDCARD_EX = 1; // external sdcard public static final int DIR_USB = 2; // usb external storage ... 阅读全文

posted @ 2013-03-26 17:17 slider 阅读(327) 评论(0) 推荐(0) 编辑

2013年3月25日

摘要: in django, sometimes you want to pass value of current page path , you will do this follows: a. <form action="./?next={{request.path}}" method="post">...</form> b.<form action="" method="post"> <input type="hidden" name="nex 阅读全文

posted @ 2013-03-25 16:26 slider 阅读(269) 评论(0) 推荐(0) 编辑

摘要: private StateListDrawable getStateSelector(ImageEntity image){ StateListDrawable stalistDrawable = new StateListDrawable(); //int normal = android.R.attr.state_empty; //int pressed = android.R.attr.state_pressed; //int focused = android.R.attr.state_focused; //int selected = android.R.attr.stat... 阅读全文

posted @ 2013-03-25 16:04 slider 阅读(544) 评论(0) 推荐(0) 编辑

摘要: 对象序列化找个东西我不知道怎么用。个人认为许多需要传递大对象的情况都可以避免掉。比如把多个acitivyt的内容写到一个activity中(找个好处还可以同时可以finish掉许多activity哦)。但是作为一个知识,还是写写了,也因为我n久没有更新博客了。 介绍的话就不准备写了,还是代码简单: public class ImageEntity implements Parcelable{ String name; String path; String path1; // first path, default path . replace with select... 阅读全文

posted @ 2013-03-25 16:00 slider 阅读(327) 评论(0) 推荐(0) 编辑

2013年3月21日

摘要: 1.首先说说默认不显示输入法,这里通常又三种:在 AndroidMainfest.xml中选择哪个activity,设置windowSoftInputMode属性为 adjustUnspecified|stateHidden < activity android:name=".Main" android:label="@string/app_name" android:windowSoftInputMode="adjustUnspecified|stateHidden" android:configChanges="o 阅读全文

posted @ 2013-03-21 16:10 slider 阅读(1578) 评论(1) 推荐(0) 编辑

2013年3月7日

摘要: ImageView.ScaleType共八种: 1·ImageView.ScaleType.center:图片位于视图中间,但不执行缩放。 2·ImageView.ScaleType.CENTER_CROP 按统一比例缩放图片(保持图片的尺寸比例)便于图片的两维(宽度和高度)等于或者大于相应的视图的维度 3·ImageView.ScaleType.CENTER_INSIDE按统一比例缩放图片(保持图片的尺寸比例)便于图片的两维(宽度和高度)等于或者小于相应的视图的维度 4·ImageView.ScaleType.FIT_CENTER缩放图片使用cente 阅读全文

posted @ 2013-03-07 13:04 slider 阅读(364) 评论(0) 推荐(0) 编辑

2012年8月17日

摘要: 这是一个很旧的问题。但有时候还是无法解决。网上找寻了很多办法后,终于解决。 1.首先,默认的eclipse4.2的版本无法自动提示,表现是闪烁(至少我的ubuntu12.04是这样的),让你根本不知道是怎么回事。然后给我的感觉可能就是快捷键那里可能有两个功能的快捷键相同,才有可能照成这个问题。去'window-->General-->Keys'那里发现,果然有两个功能键都是‘alt+/':work completion 和 content assist. 处于习惯,那就修改work completion的快捷键吧。 2.然后就是常规的‘window--> 阅读全文

posted @ 2012-08-17 14:25 slider 阅读(876) 评论(1) 推荐(0) 编辑

上一页 1 2 3 4 5 6 ··· 12 下一页