界面完成
This commit is contained in:
@@ -0,0 +1,97 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/ingredientItemLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp12"
|
||||
android:background="@drawable/a_ingredient_item"
|
||||
android:padding="@dimen/dp12">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/line1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_toLeftOf="@id/checkImg"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/typeImg"
|
||||
android:layout_width="@dimen/dp18"
|
||||
android:layout_height="@dimen/dp18"
|
||||
android:src="@mipmap/icon_zc" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/nameTv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dp10"
|
||||
android:layout_weight="1"
|
||||
android:text="菜品名称"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/sp18" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/weightTv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:text="- kg"
|
||||
android:textColor="#6E6E82"
|
||||
android:textSize="@dimen/sp18" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/line1"
|
||||
android:layout_marginTop="@dimen/dp6"
|
||||
android:layout_toLeftOf="@id/checkImg"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@mipmap/icon_zc"
|
||||
android:visibility="invisible" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/calcWeightTv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dp10"
|
||||
android:layout_weight="1"
|
||||
android:text="计算量"
|
||||
android:textColor="#6E6E82"
|
||||
android:textSize="@dimen/sp14" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dp10"
|
||||
android:text="实际偏移量:"
|
||||
android:textColor="#6E6E82"
|
||||
android:textSize="@dimen/sp14" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/pctTv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:text="3%"
|
||||
android:textColor="#A9A9AB"
|
||||
android:textSize="@dimen/sp18" />
|
||||
</LinearLayout>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/checkImg"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginLeft="@dimen/dp24"
|
||||
android:src="@mipmap/img_checkbox_normal" />
|
||||
</RelativeLayout>
|
||||
Reference in New Issue
Block a user