recommend

This commit is contained in:
ScorpioMiku
2018-09-04 15:38:01 +08:00
parent c5157f9a02
commit ee8dfcf1b3
6 changed files with 29 additions and 12 deletions

View File

@@ -18,16 +18,13 @@
<android.support.design.widget.CoordinatorLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true">
android:layout_height="match_parent">
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">

View File

@@ -31,7 +31,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:textSize="20sp"
android:textSize="15sp"
android:textStyle="bold"
tools:text="红烧肉" />

View File

@@ -2,7 +2,7 @@
<android.support.v7.widget.CardView 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:layout_width="170dp"
android:layout_width="160dp"
android:layout_height="@dimen/recommend_item_default_hight"
android:layout_margin="@dimen/recommend_margin"
android:layout_weight="1"

View File

@@ -3,6 +3,6 @@
<string-array name="sections">
<item>一周定制</item>
<item>今日信息</item>
<item>page3</item>
<item>推荐菜谱</item>
</string-array>
</resources>

View File

@@ -20,9 +20,9 @@
<dimen name="icon_size">20dp</dimen>
<dimen name="recommend_item_default_hight">130dp</dimen>
<dimen name="recommend_item_big_height">250dp</dimen>
<dimen name="recommend_margin">10dp</dimen>
<dimen name="recommend_item_default_hight">100dp</dimen>
<dimen name="recommend_item_big_height">180dp</dimen>
<dimen name="recommend_margin">5dp</dimen>
</resources>