102 lines
4.5 KiB
XML
102 lines
4.5 KiB
XML
<?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:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
<androidx.cardview.widget.CardView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginHorizontal="@dimen/dp_5"
|
|
android:layout_marginTop="@dimen/dp_20"
|
|
android:layout_marginBottom="@dimen/dp_30"
|
|
app:cardCornerRadius="16dp"
|
|
app:cardElevation="4dp">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:padding="@dimen/dp_10">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:gravity="center_vertical">
|
|
<ImageView
|
|
android:layout_width="@dimen/dp_13"
|
|
android:layout_height="@dimen/dp_23"
|
|
android:src="@mipmap/icon_jianyi"/>
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/dp_5"
|
|
android:text="今日建议"
|
|
android:textColor="@color/color_zhu"
|
|
android:textSize="15sp"
|
|
android:textStyle="bold" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:gravity="center_vertical"
|
|
android:layout_marginTop="@dimen/dp_12">
|
|
<TextView
|
|
android:layout_width="@dimen/dp_28"
|
|
android:layout_height="@dimen/dp_28"
|
|
android:textSize="13sp"
|
|
android:textColor="@color/color_4FB153"
|
|
android:text="宜"
|
|
android:textStyle="bold"
|
|
android:gravity="center"
|
|
android:background="@drawable/shape_yunshijianyi_yi_bg"/>
|
|
<TextView
|
|
android:id="@+id/tv_positive"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/dp_12"
|
|
android:textColor="@color/color_zhu"
|
|
android:textSize="12sp"/>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:gravity="center_vertical"
|
|
android:layout_marginTop="@dimen/dp_12">
|
|
<TextView
|
|
android:layout_width="@dimen/dp_28"
|
|
android:layout_height="@dimen/dp_28"
|
|
android:textSize="13sp"
|
|
android:textColor="@color/color_FE5733"
|
|
android:text="忌"
|
|
android:textStyle="bold"
|
|
android:gravity="center"
|
|
android:background="@drawable/shape_yunshijianyi_ji_bg"/>
|
|
<TextView
|
|
android:id="@+id/tv_negative"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/dp_12"
|
|
android:textColor="@color/color_zhu"
|
|
android:textSize="12sp"/>
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1px"
|
|
android:layout_marginTop="@dimen/dp_14"
|
|
android:background="@color/color_A8AFBC" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_five"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/dp_12"
|
|
android:textColor="@color/color_666666"
|
|
android:textSize="12sp" />
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
</LinearLayout> |