Xml文件  |  48行  |  1.75 KB

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="wrap_content" >
    <android.support.wearable.view.CircledImageView
        android:id="@+id/image"
        android:alpha="0.5"
        android:layout_height="52dp"
        android:layout_width="52dp"
        android:layout_gravity="center_vertical"
        app:circle_border_color="#FFFFFFFF"
        app:circle_border_width="1dp"
        app:circle_color="#00000000"
        app:image_tint="#FFFFFFFF"/>

    <LinearLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginLeft="@dimen/settings_text_margin_left"
        android:layout_gravity="center_vertical"
        android:orientation="vertical" >

        <TextView
            android:id="@+id/text"
            android:alpha="0.5"
            android:fontFamily="sans-serif-condensed-light"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textColor="@color/permissions_settings_item_color"
            android:textSize="14sp"
            android:maxLines="2"
            android:ellipsize="end"/>
        <TextView
            android:id="@+id/state"
            android:alpha="0.5"
            android:fontFamily="sans-serif-condensed-light"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textColor="@color/permissions_settings_item_color"
            android:textSize="14sp"
            android:maxLines="1"
            android:ellipsize="end"/>
    </LinearLayout>

</LinearLayout>