Files
NutritionMaster/app/src/main/res/layout/dish_result_item.xml
ScorpioMiku 5db14fcf04 result
2018-10-05 14:25:49 +08:00

62 lines
2.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<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="match_parent"
android:layout_height="80dp"
android:layout_margin="5dp"
app:cardCornerRadius="10dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#40b985"
android:gravity="center_vertical"
android:orientation="horizontal">
<LinearLayout
android:layout_width="150dp"
android:layout_height="60dp"
android:gravity="center"
android:orientation="horizontal">
<android.support.v7.widget.CardView
android:alpha="0.8"
android:layout_width="60dp"
android:layout_height="60dp"
app:cardCornerRadius="30dp">
<ImageView
android:id="@+id/image"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"
tools:src="@drawable/food_test" />
</android.support.v7.widget.CardView>
<TextView
android:id="@+id/name"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center"
android:paddingLeft="15dp"
android:textColor="#fff"
tools:text="麻婆豆腐" />
</LinearLayout>
<android.support.v7.widget.RecyclerView
android:id="@+id/picker"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:clipToPadding="false">
</android.support.v7.widget.RecyclerView>
</LinearLayout>
</android.support.v7.widget.CardView>