09 2013 档案

摘要:设置字体大小:setTextSize(TypedValue.COMPLEX_UNIT_PX,22); //22像素setTextSize(TypedValue.COMPLEX_UNIT_SP,22); //22SP setTextSize(TypedValue.COMPLEX_UNIT_DIP,22);//22DIP设置layout_weight:setLayoutParams(newLinearLayout.LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT,1.0f));最后的1.0f即是,需要是浮点型的才行Lay 阅读全文
posted @ 2013-09-08 17:02 花开花落云卷云舒 阅读(633) 评论(0) 推荐(0)
摘要:......int index = phonesCursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER);int typeindex = phonesCursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.TYPE);int labelindex = phonesCursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.LABEL);String phoneNumber = phones 阅读全文
posted @ 2013-09-06 14:16 花开花落云卷云舒 阅读(574) 评论(0) 推荐(0)
摘要:public static final String[] VALUES = newString[]{"AB","BC","CD","AE"};Arrays.asList(VALUES).contains("BC");Referer: http://stackoverflow.com/questions/1128723/in-java-how-can-i-test-if-an-array-contains-a-certain-value 阅读全文
posted @ 2013-09-05 16:42 花开花落云卷云舒 阅读(180) 评论(0) 推荐(0)