add is ok

This commit is contained in:
ScorpioMiku
2018-09-07 17:23:09 +08:00
parent e486c07ad5
commit 0d8214d19b
4 changed files with 81 additions and 48 deletions

View File

@@ -1,10 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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:id="@+id/bottom_content"
android:layout_width="match_parent"
android:background="#334397"
android:layout_height="match_parent"
android:background="#e2eced"
tools:context="com.example.ninefourone.nutritionmaster.modules.addinformation.AddActivity">
@@ -22,4 +23,21 @@
android:layout_marginStart="10dp"
android:layout_marginTop="10dp"
android:src="@drawable/ic_back_button" />
<android.support.v7.widget.CardView
android:layout_width="300dp"
android:layout_height="450dp"
android:layout_centerInParent="true"
app:cardCornerRadius="20dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#31afc2">
</LinearLayout>
</android.support.v7.widget.CardView>
</RelativeLayout>

View File

@@ -3,7 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="300dp"
android:layout_height="400dp"
android:layout_height="450dp"
android:layout_gravity="center"
app:cardCornerRadius="20dp">
@@ -11,12 +11,13 @@
android:id="@+id/image"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_horizontal"
android:gravity="center"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="200dp"
android:layout_height="150dp"
android:layout_margin="20dp"
android:gravity="center"
android:orientation="vertical">
@@ -32,30 +33,33 @@
<Button
android:id="@+id/choose_first"
android:layout_width="200dp"
android:layout_width="150dp"
android:layout_height="50dp"
android:text=""
android:textSize="13sp">
android:text="测试"
android:textSize="13sp"
android:visibility="gone">
</Button>
<Button
android:id="@+id/choose_second"
android:layout_width="200dp"
android:layout_width="150dp"
android:layout_height="50dp"
android:layout_marginTop="20dp"
android:text=""
android:textSize="13sp">
android:text="测试"
android:textSize="13sp"
android:visibility="gone">
</Button>
<Button
android:id="@+id/choose_third"
android:layout_width="200dp"
android:layout_width="150dp"
android:layout_height="50dp"
android:layout_marginTop="20dp"
android:text=""
android:textSize="13sp">
android:text="测试"
android:textSize="13sp"
android:visibility="gone">
</Button>