摘要:
android 获取 imei号码参考:http://www.cnblogs.com/luxiaofeng54/archive/2011/03/01/1968063.html核心代码:Imei = ((TelephonyManager) getSystemService(TELEPHONY_SERVICE)).getDeviceId();1.加入权限在manifest.xml文件中要添加 2.代码单个函数:public String getImei() { TelephonyManager tm = (TelephonyManager) this.context ... 阅读全文
摘要:
RelativeLayout常用属性介绍转自: http://www.douban.com/note/97496783/下面介绍一下RelativeLayout用到的一些重要的属性:第一类:属性值为true或falseandroid:layout_centerHrizontal 水平居中android:layout_centerVertical 垂直居中android:layout_centerInparent 相对于父元素完全居中android:layout_alignParentBottom 贴紧父元素的下边缘android:layout_alignParentLeft 贴紧父元素的左边缘 阅读全文