首页、支付功能
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/main"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
@@ -19,18 +20,18 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginStart="32dp"
|
||||
android:layout_marginStart="28dp"
|
||||
android:textColor="#ff0a1428"
|
||||
android:textSize="30sp"
|
||||
android:textSize="26sp"
|
||||
android:textStyle="bold"
|
||||
tools:text="2025年11月11日 周二" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/ivSetting"
|
||||
android:layout_width="64dp"
|
||||
android:layout_height="64dp"
|
||||
android:layout_width="58dp"
|
||||
android:layout_height="58dp"
|
||||
android:layout_gravity="end|center_vertical"
|
||||
android:layout_marginEnd="22dp"
|
||||
android:layout_marginEnd="18dp"
|
||||
android:padding="10dp"
|
||||
android:src="@drawable/ic_setting"
|
||||
tools:ignore="ContentDescription" />
|
||||
@@ -55,19 +56,20 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_food_name"
|
||||
style="@style/text_title_blob"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="130dp"
|
||||
android:layout_marginTop="60dp"
|
||||
android:textStyle="bold"
|
||||
android:textSize="52sp"
|
||||
android:textColor="#FF0A1428"
|
||||
android:text="羊肉臊子荞面饸饹" />
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/foodDisplayLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="531dp"
|
||||
android:layout_marginHorizontal="60dp"
|
||||
android:layout_marginTop="110dp"
|
||||
android:layout_marginBottom="90dp"
|
||||
android:layout_height="500dp"
|
||||
android:layout_marginHorizontal="28dp"
|
||||
android:layout_marginTop="100dp"
|
||||
android:visibility="visible">
|
||||
|
||||
<androidx.camera.view.PreviewView
|
||||
@@ -86,7 +88,7 @@
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_margin="30dp"
|
||||
android:layout_margin="27dp"
|
||||
android:background="@drawable/preview_border" />
|
||||
</FrameLayout>
|
||||
|
||||
@@ -94,7 +96,12 @@
|
||||
android:id="@+id/recyclerview"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginHorizontal="60dp"
|
||||
app:spanCount="2"
|
||||
tools:itemCount="8"
|
||||
tools:listitem="@layout/list_item_search_food"
|
||||
app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
|
||||
android:layout_marginHorizontal="14dp"
|
||||
android:layout_marginTop="42dp"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<LinearLayout
|
||||
@@ -130,13 +137,14 @@
|
||||
android:id="@+id/tv_to_search"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="40dp"
|
||||
android:layout_marginBottom="60dp"
|
||||
android:layout_marginTop="38dp"
|
||||
android:layout_marginBottom="54dp"
|
||||
android:padding="10dp"
|
||||
android:text="以上都不是,手动搜索"
|
||||
android:textStyle="bold"
|
||||
android:textColor="#FFFF3232"
|
||||
android:textSize="36sp" />
|
||||
android:textSize="31sp"
|
||||
android:visibility="gone"/>
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/flPay"
|
||||
@@ -148,11 +156,11 @@
|
||||
<androidx.appcompat.widget.AppCompatButton
|
||||
android:id="@+id/btnPay"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_margin="32dp"
|
||||
android:layout_height="100dp"
|
||||
android:layout_margin="28dp"
|
||||
android:layout_height="87dp"
|
||||
android:textStyle="bold"
|
||||
android:text="去结算"
|
||||
android:textSize="40sp"
|
||||
android:textSize="35sp"
|
||||
android:background="@drawable/bg_btn_save"
|
||||
android:textColor="@color/white"/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user