- 博客(8)
- 资源 (55)
- 收藏
- 关注
原创 listview 样式总结
拖动listview时出现不变色或者只有一部分变色android:cacheColorHint="#00000000"选中颜色android:listSelector="#00000000" 设置listview 的Item之间的横线 颜色和高度 android:divider="#8E8E8E" android:dividerHeight="1px"a
2013-04-27 10:44:18 1448
转载 Caused by: android.os.NetworkOnMainThreadException 异常
处理异常参考此链接 http://www.lucazanini.eu/2012/android/the-android-os-networkonmainthreadexception-exception/?lang=en
2013-04-21 14:04:16 2557
转载 Unable to open log device ‘/dev/log/main’: No such file or directory 异常
转载一下地址http://liuzhichao.com/p/570.htmlUnable to open log device ‘/dev/log/main’: No such file or directory1、在拨号界面输入:*#*#2846579#*#* 进入测试菜单界面。 2、Project Menu–后台设置–LOG设置
2013-04-21 11:50:41 1211
原创 有关于对话框中放入布局的问题
The specified child already has a parent. You must call removeView对于经常看见的removeView()异常,网上的一些方法给出,LayoutInflater inflater = (LayoutInflater) getSystemService(LAYOUT_INFLATER_SERVICE); L
2013-04-17 14:57:02 869
原创 将文件写入到sdcard 并读取
//判断sdcard卡是否存在if (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState())) {File scard = Environment.getExternalStorageDirectory();FileInputStream fis = new FileInputStream(scar
2013-04-11 13:46:43 1045
原创 SharedPrefences ,openFileOputStrean,openFileInputStream 总结
preferences = getSharedPreferences("crazyt", MODE_PRIVATE);editor = preferences.edit();read = (Button) this.findViewById(R.id.button1);write = (Button) this.findViewById(R.id.button2);read.set
2013-04-11 09:46:19 893
原创 properties 文件操作
public class readProperties {private static Properties pro = new Properties();private static SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd");public static void main(String[] args) thro
2013-04-08 13:08:16 734
原创 主键自增
public class PKGen implements IdentifierGenerator {static int validateCount = 1;static long currentKey = -1;public Serializable generate(SessionImplementor session , Object arg1)throws
2013-04-08 10:23:17 796
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人