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
阅读全文
摘要:......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
阅读全文
摘要: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
阅读全文