dk_item_storage_watch.xml 1.6 KB
Newer Older
H
haojianglong 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
    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="@dimen/dk_dp_40"
    android:orientation="vertical">

    <TextView
        android:id="@+id/tv_tip_key"
        android:layout_width="0dp"
        android:layout_height="match_parent"
        android:ellipsize="end"
        android:gravity="center"
        android:singleLine="true"
        android:textSize="@dimen/dk_font_size_18"
        app:layout_constraintHorizontal_weight="1"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toLeftOf="@+id/tv_tip_value" />

    <TextView
        android:id="@+id/tv_tip_value"
        android:layout_width="0dp"
        android:layout_height="match_parent"
        android:ellipsize="end"
        android:gravity="center"
        android:singleLine="true"
        android:textSize="@dimen/dk_font_size_18"
        app:layout_constraintHorizontal_weight="1"
        app:layout_constraintLeft_toRightOf="@+id/tv_tip_key"
        app:layout_constraintRight_toRightOf="parent" />

    <View
        android:layout_width="1px"
        android:layout_height="match_parent"
        android:background="@color/dk_color_999999"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="@+id/tv_tip_value"
        app:layout_constraintStart_toStartOf="parent" />

</android.support.constraint.ConstraintLayout>