手機介面

amor_123發表於2017-03-14

<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/wlw_wrap_content"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="10dp">

        <TextView
            style="@style/lw_style"
            android:layout_alignParentLeft="true"
            android:layout_marginLeft="20dp"
            android:layout_weight="1"
            android:drawableTop="@drawable/clound"
            android:text="@string/_cloud" />

        <TextView
            style="@style/lw_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/wlw_wrap_content"
        android:layout_marginTop="10dp">

        <TextView
            style="@style/lw_style"
            android:layout_alignParentLeft="true"
            android:layout_marginLeft="20dp"
            android:layout_weight="1"
            android:drawableTop="@drawable/gesture"
            android:text="@string/_gesture" />

        <TextView
            style="@style/lw_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/wlw_wrap_content"
        android:layout_marginTop="10dp">

        <TextView
            style="@style/lw_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/lw_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/wlw_wrap_content"
        android:layout_marginTop="10dp">

        <TextView
            style="@style/lw_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/lw_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>

    <!-- Base application theme. -->
    <style name="Theme" parent="Theme.AppCompat.Light.DarkActionBar">
        <!-- Customize your theme here. -->
        <item name="colorPrimary">@color/colorPrimary</item>
        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
        <item name="colorAccent">@color/colorAccent</item>
    </style>

    <style name="AppBaseTheme" parent="android:Theme.Light"></style>

    <style name="AppTheme" parent="AppBaseTheme"></style>

    <style name="wlw_wrap_content">
        <item name="android:layout_width">match_parent</item>
        <item name="android:layout_height">wrap_content</item>
    </style>

    <style name="lw_style">
        <item name="android:layout_width">160dp</item>
        <item name="android:layout_height">120dp</item>
        <item name="android:gravity">center</item>
        <item name="android:paddingTop">8dp</item>
        <item name="android:paddingBottom">8dp</item>
        <item name="android:drawablePadding">5dp</item>
        <item name="android:background">@android:color/white</item>
    </style>
</resources>


``<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>

相關文章