图片发自简书App
1.修改的主要文件
res/layout/em_devinfor.xml
modified: res/values-zh-rCN/string.xml
modified: res/values/string.xml
modified: DevInfo.java
2 .详细修改
添加布局文件
res/layout/em_devinfor.xml
<TextView
android:id="@+id/mo_16"
android:gravity="center_horizontal"
android:layout_width="fill_parent"
anddroid:layout_height="wrap_content"
>
3 添加显示字符串
中文
modified: res/values-zh-rCN/string.xml
<string name="build_type:">build_type:</string>
英文
modified: res/values/string.xml
<string name = "build_type:"> build_type : </string>
4 主文件中声明
modified: DevInfo.java
TextView mtext13;
mtext13 = (TextView) findViewById(R.id.m0_t16);
mtext13.setText(getString(R.string.build_type) + SystemProperties.get("ro.build.type", getString(R.string.unknown)));