first
This commit is contained in:
511
app/src/main/res/layout/fragment_mine.xml
Normal file
511
app/src/main/res/layout/fragment_mine.xml
Normal file
@@ -0,0 +1,511 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.ck.ckcollar.app.widget.CKLinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/contentView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="?attr/mainBackground"
|
||||
android:fitsSystemWindows="false"
|
||||
android:gravity="center_horizontal"
|
||||
android:paddingTop="40dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<com.ck.ckcollar.app.widget.CKLinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:padding="20dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
<!-- item1 -->
|
||||
<com.ck.ckcollar.app.widget.CKLinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<com.ck.ckcollar.app.widget.CKRoundImageView
|
||||
android:id="@+id/imageUser"
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="60dp"
|
||||
app:isCircle="true"
|
||||
android:src="@mipmap/image_user_default"
|
||||
></com.ck.ckcollar.app.widget.CKRoundImageView>
|
||||
<com.ck.ckcollar.app.widget.CKLinearLayout
|
||||
android:id="@+id/btnUserInfo"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical"
|
||||
android:paddingLeft="10dp"
|
||||
android:paddingTop="5dp"
|
||||
>
|
||||
<com.ck.ckcollar.app.widget.CKTextView
|
||||
android:id="@+id/textNick"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="16sp"
|
||||
android:textColor="@color/textColor"
|
||||
android:textStyle="bold"
|
||||
android:text="这里是昵称"
|
||||
></com.ck.ckcollar.app.widget.CKTextView>
|
||||
<com.ck.ckcollar.app.widget.CKTextView
|
||||
android:id="@+id/textPhone"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="16sp"
|
||||
android:textColor="@color/textSecondColor"
|
||||
android:layout_marginTop="3dp"
|
||||
android:text="13580808080"
|
||||
></com.ck.ckcollar.app.widget.CKTextView>
|
||||
|
||||
</com.ck.ckcollar.app.widget.CKLinearLayout>
|
||||
<com.ck.ckcollar.app.widget.CKLinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
>
|
||||
<com.ck.ckcollar.app.widget.CKRelativeLayout
|
||||
android:id="@+id/btnMessage"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="wrap_content"
|
||||
>
|
||||
<com.ck.ckcollar.app.widget.CKImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="5dp"
|
||||
android:src="@mipmap/image_message"></com.ck.ckcollar.app.widget.CKImageView>
|
||||
<com.ck.ckcollar.app.widget.CKTextView
|
||||
android:id="@+id/textCount"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:textSize="10sp"
|
||||
android:gravity="center"
|
||||
android:textColor="@color/white"
|
||||
android:text="0"
|
||||
android:background="@mipmap/image_shop_alert"></com.ck.ckcollar.app.widget.CKTextView>
|
||||
</com.ck.ckcollar.app.widget.CKRelativeLayout>
|
||||
|
||||
<com.ck.ckcollar.app.widget.CKImageView
|
||||
android:id="@+id/btnSetting"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@mipmap/image_setting"
|
||||
android:layout_marginLeft="20dp"
|
||||
android:layout_marginTop="5dp"
|
||||
></com.ck.ckcollar.app.widget.CKImageView>
|
||||
|
||||
</com.ck.ckcollar.app.widget.CKLinearLayout>
|
||||
</com.ck.ckcollar.app.widget.CKLinearLayout>
|
||||
<!-- item2 -->
|
||||
<com.ck.ckcollar.app.widget.CKLinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="78dp"
|
||||
android:orientation="horizontal"
|
||||
android:background="@drawable/bg_view_yellow_radius_32"
|
||||
android:layout_marginTop="20dp"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingLeft="30dp"
|
||||
android:paddingRight="20dp"
|
||||
>
|
||||
|
||||
<com.ck.ckcollar.app.widget.CKLinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical"
|
||||
>
|
||||
<com.ck.ckcollar.app.widget.CKTextView
|
||||
android:id="@+id/textMemberTitle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/pet_member"
|
||||
android:textColor="@color/textColor"
|
||||
android:textSize="20sp"
|
||||
android:textStyle="bold"
|
||||
/>
|
||||
|
||||
<com.ck.ckcollar.app.widget.CKTextView
|
||||
android:id="@+id/textMemberDate"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/pet_member_rewards"
|
||||
android:textColor="@color/textColor"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
</com.ck.ckcollar.app.widget.CKLinearLayout>
|
||||
|
||||
<com.ck.ckcollar.app.widget.CKButton
|
||||
android:id="@+id/btnOpen"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="42dp"
|
||||
android:text="@string/pet_member_open_now"
|
||||
android:textColor="@color/textColor"
|
||||
android:textSize="16sp"
|
||||
android:background="@drawable/bg_open_button"
|
||||
>
|
||||
|
||||
</com.ck.ckcollar.app.widget.CKButton>
|
||||
</com.ck.ckcollar.app.widget.CKLinearLayout>
|
||||
<!-- item3 -->
|
||||
<com.ck.ckcollar.app.widget.CKLinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="90dp"
|
||||
android:orientation="horizontal"
|
||||
android:layout_marginTop="10dp"
|
||||
android:paddingHorizontal="40dp"
|
||||
android:gravity="center_vertical"
|
||||
android:background="@drawable/bg_view_white_radius_16"
|
||||
>
|
||||
|
||||
<com.ck.ckcollar.app.widget.CKLinearLayout
|
||||
android:id="@+id/contentBalance"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:gravity="center_horizontal"
|
||||
>
|
||||
<com.ck.ckcollar.app.widget.CKTextView
|
||||
android:id="@+id/textBalance"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="20dp"
|
||||
android:textColor="@color/textColor"
|
||||
android:textStyle="bold"
|
||||
android:text="0"
|
||||
></com.ck.ckcollar.app.widget.CKTextView>
|
||||
|
||||
<com.ck.ckcollar.app.widget.CKTextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="16dp"
|
||||
android:textColor="@color/textColor"
|
||||
android:text="@string/balance"
|
||||
android:layout_marginTop="10dp"
|
||||
></com.ck.ckcollar.app.widget.CKTextView>
|
||||
|
||||
</com.ck.ckcollar.app.widget.CKLinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"></View>
|
||||
<com.ck.ckcollar.app.widget.CKLinearLayout
|
||||
android:id="@+id/conetntPoints"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:gravity="center_horizontal"
|
||||
>
|
||||
<com.ck.ckcollar.app.widget.CKTextView
|
||||
android:id="@+id/textPoints"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="20dp"
|
||||
android:textColor="@color/textColor"
|
||||
android:textStyle="bold"
|
||||
android:text="0"
|
||||
></com.ck.ckcollar.app.widget.CKTextView>
|
||||
|
||||
<com.ck.ckcollar.app.widget.CKTextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="16dp"
|
||||
android:textColor="@color/textColor"
|
||||
android:text="@string/points2"
|
||||
android:layout_marginTop="10dp"
|
||||
></com.ck.ckcollar.app.widget.CKTextView>
|
||||
|
||||
</com.ck.ckcollar.app.widget.CKLinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"></View>
|
||||
<com.ck.ckcollar.app.widget.CKLinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:gravity="center_horizontal"
|
||||
>
|
||||
<com.ck.ckcollar.app.widget.CKTextView
|
||||
android:id="@+id/textDeposit"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="16dp"
|
||||
android:textColor="@color/textColor"
|
||||
android:textStyle="bold"
|
||||
android:text="免押"
|
||||
></com.ck.ckcollar.app.widget.CKTextView>
|
||||
|
||||
<com.ck.ckcollar.app.widget.CKTextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="16dp"
|
||||
android:textColor="@color/textColor"
|
||||
android:text="@string/deposit"
|
||||
android:layout_marginTop="10dp"
|
||||
></com.ck.ckcollar.app.widget.CKTextView>
|
||||
|
||||
</com.ck.ckcollar.app.widget.CKLinearLayout>
|
||||
</com.ck.ckcollar.app.widget.CKLinearLayout>
|
||||
<!-- item4 -->
|
||||
|
||||
<com.ck.ckcollar.app.widget.CKLinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:background="@drawable/bg_view_white_radius_16"
|
||||
android:layout_marginTop="10dp"
|
||||
android:paddingHorizontal="20dp"
|
||||
android:paddingTop="13dp"
|
||||
android:paddingBottom="23dp"
|
||||
>
|
||||
<com.ck.ckcollar.app.widget.CKLinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="center_vertical"
|
||||
>
|
||||
<com.ck.ckcollar.app.widget.CKTextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/textColor"
|
||||
android:textSize="16sp"
|
||||
android:text="@string/my_orders"
|
||||
></com.ck.ckcollar.app.widget.CKTextView>
|
||||
<com.ck.ckcollar.app.widget.CKLinearLayout
|
||||
android:id="@+id/btnAllOrder"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
<com.ck.ckcollar.app.widget.CKTextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="14sp"
|
||||
android:textColor="@color/textSecondColor"
|
||||
android:text="@string/all_orders"
|
||||
></com.ck.ckcollar.app.widget.CKTextView>
|
||||
<com.ck.ckcollar.app.widget.CKImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@mipmap/image_round_right3"
|
||||
android:layout_marginLeft="3dp"
|
||||
></com.ck.ckcollar.app.widget.CKImageView>
|
||||
</com.ck.ckcollar.app.widget.CKLinearLayout>
|
||||
|
||||
</com.ck.ckcollar.app.widget.CKLinearLayout>
|
||||
|
||||
<com.ck.ckcollar.app.widget.CKLinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:paddingTop="25dp"
|
||||
>
|
||||
|
||||
<com.ck.ckcollar.app.widget.CKLinearLayout
|
||||
android:id="@+id/btnOrderPayment"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:gravity="center"
|
||||
>
|
||||
<com.ck.ckcollar.app.widget.CKImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@mipmap/image_mine_order_item_1"
|
||||
android:scaleType="centerInside"
|
||||
></com.ck.ckcollar.app.widget.CKImageView>
|
||||
|
||||
<com.ck.ckcollar.app.widget.CKTextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/textColor"
|
||||
android:textSize="14sp"
|
||||
android:text="@string/pending_payment"
|
||||
android:layout_marginTop="6dp"
|
||||
></com.ck.ckcollar.app.widget.CKTextView>
|
||||
</com.ck.ckcollar.app.widget.CKLinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"></View>
|
||||
<com.ck.ckcollar.app.widget.CKLinearLayout
|
||||
android:id="@+id/btnOrderDelivery"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:gravity="center"
|
||||
>
|
||||
<com.ck.ckcollar.app.widget.CKImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@mipmap/image_mine_order_item_2"
|
||||
android:scaleType="centerInside"
|
||||
></com.ck.ckcollar.app.widget.CKImageView>
|
||||
|
||||
<com.ck.ckcollar.app.widget.CKTextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/textColor"
|
||||
android:textSize="14sp"
|
||||
android:text="@string/pending_delivery"
|
||||
android:layout_marginTop="6dp"
|
||||
></com.ck.ckcollar.app.widget.CKTextView>
|
||||
</com.ck.ckcollar.app.widget.CKLinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"></View>
|
||||
<com.ck.ckcollar.app.widget.CKLinearLayout
|
||||
android:id="@+id/btnOrderReceipt"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:gravity="center"
|
||||
>
|
||||
<com.ck.ckcollar.app.widget.CKImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@mipmap/image_mine_order_item_3"
|
||||
android:scaleType="centerInside"
|
||||
></com.ck.ckcollar.app.widget.CKImageView>
|
||||
|
||||
<com.ck.ckcollar.app.widget.CKTextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/textColor"
|
||||
android:textSize="14sp"
|
||||
android:text="@string/pending_receipt"
|
||||
android:layout_marginTop="6dp"
|
||||
></com.ck.ckcollar.app.widget.CKTextView>
|
||||
</com.ck.ckcollar.app.widget.CKLinearLayout>
|
||||
<View
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"></View>
|
||||
|
||||
<com.ck.ckcollar.app.widget.CKLinearLayout
|
||||
android:id="@+id/btnOrderAfterSales"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:gravity="center"
|
||||
>
|
||||
<com.ck.ckcollar.app.widget.CKImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@mipmap/image_mine_order_item_5"
|
||||
android:scaleType="centerInside"
|
||||
></com.ck.ckcollar.app.widget.CKImageView>
|
||||
|
||||
<com.ck.ckcollar.app.widget.CKTextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/textColor"
|
||||
android:textSize="14sp"
|
||||
android:text="@string/return_after_sales"
|
||||
android:layout_marginTop="6dp"
|
||||
></com.ck.ckcollar.app.widget.CKTextView>
|
||||
</com.ck.ckcollar.app.widget.CKLinearLayout>
|
||||
|
||||
|
||||
</com.ck.ckcollar.app.widget.CKLinearLayout>
|
||||
</com.ck.ckcollar.app.widget.CKLinearLayout>
|
||||
|
||||
<!-- item5 -->
|
||||
<com.ck.ckcollar.app.widget.CKLinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:background="@drawable/bg_view_white_radius_16"
|
||||
android:layout_marginTop="10dp"
|
||||
android:paddingHorizontal="20dp"
|
||||
>
|
||||
|
||||
<com.ck.ckcollar.app.widget.CKLinearLayout
|
||||
android:id="@+id/btnReturnDevice"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="52dp"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="center_vertical"
|
||||
>
|
||||
<com.ck.ckcollar.app.widget.CKTextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="16sp"
|
||||
android:textColor="@color/textColor"
|
||||
android:text="@string/device_return"
|
||||
></com.ck.ckcollar.app.widget.CKTextView>
|
||||
|
||||
<com.ck.ckcollar.app.widget.CKImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@mipmap/image_round_right"
|
||||
></com.ck.ckcollar.app.widget.CKImageView>
|
||||
|
||||
</com.ck.ckcollar.app.widget.CKLinearLayout>
|
||||
|
||||
<com.ck.ckcollar.app.widget.CKLinearLayout
|
||||
android:id="@+id/btnFeedback"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="52dp"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="center_vertical"
|
||||
>
|
||||
<com.ck.ckcollar.app.widget.CKTextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="16sp"
|
||||
android:textColor="@color/textColor"
|
||||
android:text="@string/feedback"
|
||||
></com.ck.ckcollar.app.widget.CKTextView>
|
||||
|
||||
<com.ck.ckcollar.app.widget.CKImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@mipmap/image_round_right"
|
||||
></com.ck.ckcollar.app.widget.CKImageView>
|
||||
|
||||
</com.ck.ckcollar.app.widget.CKLinearLayout>
|
||||
|
||||
<com.ck.ckcollar.app.widget.CKLinearLayout
|
||||
android:id="@+id/btnCustomerService"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="52dp"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="center_vertical"
|
||||
>
|
||||
<com.ck.ckcollar.app.widget.CKTextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="16sp"
|
||||
android:textColor="@color/textColor"
|
||||
android:text="@string/contact_service"
|
||||
></com.ck.ckcollar.app.widget.CKTextView>
|
||||
|
||||
<com.ck.ckcollar.app.widget.CKImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@mipmap/image_round_right"
|
||||
></com.ck.ckcollar.app.widget.CKImageView>
|
||||
|
||||
</com.ck.ckcollar.app.widget.CKLinearLayout>
|
||||
|
||||
|
||||
</com.ck.ckcollar.app.widget.CKLinearLayout>
|
||||
</com.ck.ckcollar.app.widget.CKLinearLayout>
|
||||
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
</com.ck.ckcollar.app.widget.CKLinearLayout>
|
||||
Reference in New Issue
Block a user