<?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"
|
xmlns:tools="http://schemas.android.com/tools"
|
android:orientation="vertical"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:background="@android:color/white">
|
|
<com.runt.open.mvvm.widgets.TitleBarView
|
android:id="@+id/title_bar"
|
style="@style/titlebar"
|
android:background="@color/transparent"
|
app:leftDrawable="@mipmap/icon_white_back"
|
app:leftTint="@color/black"
|
app:titleText="签到"
|
/>
|
|
<ScrollView
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:scrollbars="vertical">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical">
|
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:background="@color/theme"
|
android:gravity="center_horizontal"
|
android:orientation="vertical"
|
android:paddingTop="30dp"
|
android:layout_height="210dp">
|
|
<TextView
|
android:id="@+id/txt_signs"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="天数"
|
android:textColor="@color/white"
|
android:textStyle="bold"
|
android:textSize="26sp"/>
|
<TextView
|
android:id="@+id/txt_tip"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="连续签到赠送金币丰厚"
|
android:layout_marginTop="10dp"
|
android:textColor="@color/cut_off_line"
|
android:textSize="16sp"/>
|
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="-80dp"
|
android:layout_marginLeft="15dp"
|
android:layout_marginRight="15dp"
|
android:background="@drawable/bg_white_corner"
|
android:orientation="vertical"
|
android:elevation="5dp">
|
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:padding="10dp"
|
android:layout_gravity="center"
|
android:layout_marginTop="10dp"
|
android:gravity="center_vertical"
|
android:orientation="horizontal">
|
|
<ImageView
|
android:id="@+id/last_month"
|
android:layout_width="wrap_content"
|
android:layout_height="16dp"
|
android:adjustViewBounds="true"
|
android:src="@drawable/calender_last"/>
|
|
<TextView
|
android:id="@+id/txt_calendar_title"
|
android:layout_width="130dp"
|
android:layout_height="wrap_content"
|
android:text="2017年7月"
|
android:textColor="@color/txt_normal"
|
android:textSize="20sp"
|
android:gravity="center" />
|
<ImageView
|
android:id="@+id/next_month"
|
android:layout_width="wrap_content"
|
android:layout_height="16dp"
|
android:adjustViewBounds="true"
|
android:src="@drawable/calender_next"/>
|
</LinearLayout>
|
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="10dp"
|
android:layout_marginBottom="10dp"
|
android:orientation="horizontal">
|
|
<TextView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:gravity="center"
|
android:layout_weight="1"
|
android:textSize="@dimen/sign_text_size"
|
android:text="日"/>
|
<TextView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:gravity="center"
|
android:layout_weight="1"
|
android:textSize="@dimen/sign_text_size"
|
android:text="一"/>
|
<TextView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:gravity="center"
|
android:layout_weight="1"
|
android:textSize="@dimen/sign_text_size"
|
android:text="二"/>
|
<TextView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:gravity="center"
|
android:layout_weight="1"
|
android:textSize="@dimen/sign_text_size"
|
android:text="三"/>
|
<TextView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:gravity="center"
|
android:layout_weight="1"
|
android:textSize="@dimen/sign_text_size"
|
android:text="四"/>
|
<TextView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:gravity="center"
|
android:layout_weight="1"
|
android:textSize="@dimen/sign_text_size"
|
android:text="五"/>
|
<TextView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:gravity="center"
|
android:layout_weight="1"
|
android:textSize="@dimen/sign_text_size"
|
android:text="六"/>
|
|
</LinearLayout>
|
|
<androidx.recyclerview.widget.RecyclerView
|
android:id="@+id/recycler"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
tools:listitem="@layout/item_calendar_day"
|
app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
|
app:spanCount="7"
|
tools:itemCount="24">
|
|
</androidx.recyclerview.widget.RecyclerView>
|
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:gravity="center_vertical"
|
android:padding="15dp"
|
android:orientation="horizontal">
|
|
|
<View
|
android:layout_width="7dp"
|
android:layout_height="7dp"
|
android:background="@drawable/bg_blue_circle" />
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="5dp"
|
android:textSize="@dimen/sign_text_size"
|
android:text="已签到"
|
android:gravity="center" />
|
<View
|
android:layout_width="7dp"
|
android:layout_height="7dp"
|
android:layout_marginLeft="@dimen/sign_text_margin"
|
android:background="@drawable/bg_enable_circle" />
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="5dp"
|
android:textSize="@dimen/sign_text_size"
|
android:text="未签到"
|
android:gravity="center" />
|
<View
|
android:layout_width="7dp"
|
android:layout_height="7dp"
|
android:layout_marginLeft="@dimen/sign_text_margin"
|
android:background="@drawable/bg_red_border_circle" />
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="5dp"
|
android:textSize="@dimen/sign_text_size"
|
android:text="今日"
|
android:gravity="center" />
|
<View
|
android:layout_width="7dp"
|
android:layout_height="7dp"
|
android:layout_marginLeft="@dimen/sign_text_margin"
|
android:background="@drawable/bg_red_circle" />
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="5dp"
|
android:textSize="@dimen/sign_text_size"
|
android:text="今日已签"
|
android:gravity="center" />
|
</LinearLayout>
|
|
</LinearLayout>
|
|
<Button
|
android:id="@+id/btn_sign"
|
style="@style/btn_normal"
|
android:layout_marginTop="50dp"
|
android:layout_marginBottom="50dp"
|
android:layout_marginLeft="@dimen/default_margin_lr"
|
android:layout_marginRight="@dimen/default_margin_lr"
|
android:text="签到"/>
|
</LinearLayout>
|
|
</ScrollView>
|
|
</LinearLayout>
|