订单添加与数据库学习
<?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" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <TextView android:id="@+id/textView10" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="外卖中心" android:textColor="#fff" android:gravity="center" android:textSize="25sp" android:background="@color/black" /> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" android:layout_margin="10dp"> <Button android:id="@+id/buttonShop_Inside" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="#ff0033" android:text="我要点外卖" android:textSize="20sp" android:textColor="#fff"/> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal"> <TextView android:id="@+id/textView11" android:layout_width="80dp" android:layout_height="50dp" android:text="订单总览" android:gravity="center" android:textSize="15sp" android:background="#f83" android:layout_marginTop="10dp" android:layout_marginLeft="50dp"/> <androidx.appcompat.widget.AppCompatSpinner android:layout_width="80dp" android:layout_height="50dp" android:layout_marginLeft="100dp" android:layout_marginTop="10dp" android:id="@+id/spinner_shop" > </androidx.appcompat.widget.AppCompatSpinner> </LinearLayout> </LinearLayout> <ListView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="5dp" android:id="@+id/listView_shop" ></ListView> </LinearLayout>