在手机界面上实现中英文的切换
这里写代码片
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/darker_gray"
android:orientation="vertical"
tools:context=".MainActivity">
<RelativeLayout
style="@style/twj_wrap_content"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp">
<TextView
style="@style/ww_style"
android:layout_alignParentLeft="true"
android:layout_marginLeft="20dp"
android:layout_weight="1"
android:drawableTop="@drawable/clound"
android:text="@string/_cloud" />
<TextView
style="@style/ww_style"
android:layout_alignParentRight="true"
android:layout_marginRight="20dp"
android:layout_weight="1"
android:drawableTop="@drawable/bluetooth"
android:text="@string/_bluetooth" />
</RelativeLayout>
<RelativeLayout
style="@style/twj_wrap_content"
android:layout_marginTop="10dp">
<TextView
style="@style/ww_style"
android:layout_alignParentLeft="true"
android:layout_marginLeft="20dp"
android:layout_weight="1"
android:drawableTop="@drawable/gesture"
android:text="@string/_gesture" />
<TextView
style="@style/ww_style"
android:layout_alignParentRight="true"
android:layout_marginRight="20dp"
android:layout_weight="1"
android:drawableTop="@drawable/gps"
android:text="@string/_gps" />
</RelativeLayout>
<RelativeLayout
style="@style/twj_wrap_content"
android:layout_marginTop="10dp">
<TextView
style="@style/ww_style"
android:layout_alignParentLeft="true"
android:layout_marginLeft="20dp"
android:layout_weight="1"
android:drawableTop="@drawable/info"
android:text="@string/_system_info" />
<TextView
style="@style/ww_style"
android:layout_alignParentRight="true"
android:layout_marginRight="20dp"
android:layout_weight="1"
android:drawableTop="@drawable/internet"
android:text="@string/_internet" />
</RelativeLayout>
<RelativeLayout
style="@style/twj_wrap_content"
android:layout_marginTop="10dp">
<TextView
style="@style/ww_style"
android:layout_alignParentLeft="true"
android:layout_marginLeft="20dp"
android:layout_weight="1"
android:drawableTop="@drawable/language"
android:text="@string/_language"
android:layout_alignParentBottom="true" />
<TextView
style="@style/ww_style"
android:layout_alignParentRight="true"
android:layout_marginRight="20dp"
android:layout_weight="1"
android:drawableTop="@drawable/notifycation"
android:text="@string/_set_notifycation" />
</RelativeLayout>
</LinearLayout>
这里写代码片
<resources>
<string name="app_name">phoneInfo</string>
<string name="menu_settings">Settings</string>
<string name="hello_world">Hello world!</string>
<string name="_cloud">Cloud</string>
<string name="_bluetooth">Bluetooth</string>
<string name="_gesture">Gesture</string>
<string name="_gps">Gps</string>
<string name="_system_info">SystemInfo</string>
<string name="_internet">Internet</string>
<string name="_language">Language</string>
<string name="_set_notifycation">Notifycation</string>
</resources>
这里写代码片
<resources>
<string name="app_name">手机信息页面</string>
<string name="menu_settings">设置</string>
<string name="hello_world">你好,世界!</string>
<string name="_cloud">云通信</string>
<string name="_bluetooth">蓝牙</string>
<string name="_gesture">自定义手势</string>
<string name="_gps">定位</string>
<string name="_system_info">系统信息</string>
<string name="_internet">网络</string>
<string name="_language">语言设置</string>
<string name="_set_notifycation">通知栏设置</string>
</resources>