hnssn_item_payment_channel.xml 2.4 KB
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="50dp"
    android:background="@color/hnssn_color_white">

    <ImageView
        android:id="@+id/hnssn_item_payment_icon"
        android:layout_width="30dp"
        android:layout_height="30dp"
        android:layout_centerVertical="true"
        android:layout_alignParentLeft="true"
        android:layout_marginLeft="23dp"
        android:scaleType="centerCrop"
        android:src="@drawable/wan_icon_pay_alipay" />

    <CheckBox
        android:id="@+id/hnssn_item_payment_checkbox"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerVertical="true"
        android:layout_alignParentRight="true"
        android:layout_marginRight="@dimen/hnssn_dimen_payment_item_margin_vertical"
        android:clickable="false"
        android:enabled="false"
        android:focusable="false"
        android:focusableInTouchMode="false"
        android:button="@drawable/hnssn_payment_selector_checkbox" />

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_centerVertical="true"
        android:layout_marginLeft="10dp"
        android:layout_toLeftOf="@id/hnssn_item_payment_checkbox"
        android:layout_toRightOf="@id/hnssn_item_payment_icon"
        android:orientation="vertical">

        <TextView
            android:id="@+id/hnssn_item_payment_title"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:textColor="@color/hnssn_color_black"
            android:textSize="15sp" />

        <TextView
            android:id="@+id/hnssn_item_payment_description"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:visibility="gone"
            android:textColor="@color/hnssn_color_blue_payment_description"
            android:textSize="10sp" />
    </LinearLayout>
 <!--   <View
        android:layout_width="match_parent"
        android:layout_height="1sp"
        android:layout_marginLeft="14dp"
        android:layout_marginRight="14dp"
        android:background="@color/fbsdk_color_splite_line"
        android:layout_alignParentBottom="true"/>-->
</RelativeLayout>