提交 15c6e54c 编写于 作者: 陈杰

添加留言板,注册页面,留言板详情

上级 c8a63c28
......@@ -8,11 +8,18 @@
android:layout_width="match_parent"
android:orientation="vertical"
android:layout_height="match_parent">
<ImageView
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="240dp"
></ImageView>
app:cardCornerRadius="15dp"
>
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="fitXY"
app:srcCompat="@drawable/there_is_a_bee"></ImageView>
</androidx.cardview.widget.CardView>
<TextView
android:layout_width="300dp"
......@@ -62,5 +69,23 @@
android:textColor="@color/white"
android:textSize="20sp" />
</androidx.cardview.widget.CardView>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="170dp"
android:layout_marginTop="20dp"
android:text="忘记密码"
android:textColor="@color/label_text"
android:textSize="16sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="140dp"
android:layout_marginTop="20dp"
android:text="没有账号?去注册"
android:textColor="#4589D6"
android:textSize="16sp" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app ="http://schemas.android.com/apk/res-auto">
xmlns:app ="http://schemas.android.com/apk/res-auto"
<LinearLayout
android:layout_width="match_parent"
android:orientation="vertical"
android:layout_height="match_parent">
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="240dp"
app:cardCornerRadius="15dp"
>
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="fitXY"
app:srcCompat="@drawable/there_is_a_bee"></ImageView>
</androidx.cardview.widget.CardView>
<TextView
android:layout_width="300dp"
android:layout_height="35dp"
android:layout_marginTop="40dp"
android:layout_marginLeft="50dp"
android:text="CAMPUS DRIFTING BOTTLE"
android:textSize="24dp"
/>
<EditText
android:layout_width="300dp"
android:layout_height="35dp"
android:background="#00FFFFFF"
android:layout_marginTop="40dp"
android:layout_marginLeft="50dp"
android:textColor="@color/label_text"
android:hint="请输入账号"></EditText>
<EditText
android:layout_width="300dp"
android:layout_height="35dp"
android:background="#00FFFFFF"
android:layout_marginTop="30dp"
android:layout_marginLeft="50dp"
android:textColor="@color/label_text"
android:hint="请输入昵称"></EditText>
<EditText
android:layout_width="300dp"
android:layout_height="35dp"
android:background="#00FFFFFF"
android:layout_marginTop="30dp"
android:layout_marginLeft="50dp"
android:textColor="@color/label_text"
android:hint="请输入密码"></EditText>
<EditText
android:layout_width="300dp"
android:layout_height="35dp"
android:background="#00FFFFFF"
android:layout_marginTop="30dp"
android:layout_marginLeft="50dp"
android:textColor="@color/label_text"
android:hint="请再次输入密码"></EditText>
<androidx.cardview.widget.CardView
android:layout_width="340dp"
android:layout_height="50dp"
android:layout_marginTop="15dp"
android:layout_marginLeft="40dp"
app:cardCornerRadius="15dp">
<Button
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/colorPrimary"
android:text="完成"
android:textColor="@color/white"
android:textSize="20sp" />
</androidx.cardview.widget.CardView>
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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:background="@color/fragment_background"
android:layout_width="match_parent"
android:layout_height="match_parent">
<include
android:id="@+id/include"
layout="@layout/appbar"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<androidx.cardview.widget.CardView
android:layout_width="340dp"
android:layout_height="45dp"
android:layout_marginTop="75dp"
android:layout_marginLeft="40dp"
app:cardCornerRadius="15dp">
<EditText
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#00FFFFFF"
android:textColor="@color/label_text"
android:hint="标题"></EditText>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:layout_width="110dp"
android:layout_height="wrap_content"
android:layout_marginLeft="40dp"
android:layout_marginTop="15dp"
app:cardCornerRadius="15dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginTop="10dp"
android:text="投放位置"
android:textColor="@color/label_text"
android:textSize="16sp" />
</androidx.cardview.widget.CardView>
<ImageView
android:layout_width="340dp"
android:layout_height="160dp"
android:layout_marginLeft="40dp"
android:layout_marginTop="10dp"
></ImageView>
<androidx.cardview.widget.CardView
android:layout_width="340dp"
android:layout_height="45dp"
android:layout_marginLeft="40dp"
android:layout_marginTop="15dp"
app:cardCornerRadius="15dp">
<Spinner
android:layout_width="match_parent"
android:layout_height="match_parent"
android:entries="@array/addressArray"
android:spinnerMode="dropdown" />
</androidx.cardview.widget.CardView>
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<androidx.cardview.widget.CardView
android:layout_width="110dp"
android:layout_height="45dp"
android:layout_marginLeft="40dp"
android:layout_marginTop="15dp"
app:cardCornerRadius="15dp">
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:textSize="16sp"
android:layout_marginTop="10dp"
android:layout_marginLeft="10dp"
android:textColor="@color/label_text"
android:text="投放内容" />
</androidx.cardview.widget.CardView>
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<Switch
android:id="@+id/switchMsg"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="190dp"
android:layout_marginTop="15dp"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="16sp"
android:layout_marginLeft="190dp"
android:layout_marginTop="5dp"
android:textColor="@color/label_text"
android:text="匿名" />
</LinearLayout>
</LinearLayout>
<androidx.cardview.widget.CardView
android:layout_width="340dp"
android:layout_height="140dp"
android:layout_marginTop="15dp"
android:layout_marginLeft="40dp"
app:cardCornerRadius="15dp">
<EditText
android:layout_width="match_parent"
android:layout_height="match_parent"
android:enabled="true"
android:gravity="top"
android:inputType="textMultiLine"
android:minLines="8"
android:maxLines="10"
android:scrollbars="vertical"
android:background="#00FFFFFF"
android:textColor="@color/label_text" />
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:layout_width="340dp"
android:layout_height="50dp"
android:layout_marginTop="15dp"
android:layout_marginLeft="40dp"
app:cardCornerRadius="15dp">
<Button
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/colorPrimary"
android:text="完成"
android:textColor="@color/white"
android:textSize="20sp" />
</androidx.cardview.widget.CardView>
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
......@@ -62,7 +62,7 @@
android:layout_height="160dp"
android:layout_marginLeft="40dp"
android:layout_marginTop="10dp"
></ImageView>
/>
<androidx.cardview.widget.CardView
android:layout_width="340dp"
......@@ -71,51 +71,51 @@
android:layout_marginTop="15dp"
app:cardCornerRadius="15dp">
<Spinner
android:layout_width="match_parent"
android:layout_height="match_parent"
android:entries="@array/addressArray"
android:spinnerMode="dropdown" />
android:layout_width="match_parent"
android:layout_height="match_parent"
android:entries="@array/addressArray"
android:spinnerMode="dropdown" />
</androidx.cardview.widget.CardView>
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<androidx.cardview.widget.CardView
android:layout_width="110dp"
android:layout_height="45dp"
android:layout_marginLeft="40dp"
android:layout_marginTop="15dp"
app:cardCornerRadius="15dp">
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:textSize="16sp"
android:layout_marginTop="10dp"
android:layout_marginLeft="10dp"
android:textColor="@color/label_text"
android:text="投放内容" />
</androidx.cardview.widget.CardView>
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<androidx.cardview.widget.CardView
android:layout_width="110dp"
android:layout_height="45dp"
android:layout_marginLeft="40dp"
android:layout_marginTop="15dp"
app:cardCornerRadius="15dp">
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:textSize="16sp"
android:layout_marginTop="10dp"
android:layout_marginLeft="10dp"
android:textColor="@color/label_text"
android:text="留言板描述" />
</androidx.cardview.widget.CardView>
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<Switch
android:id="@+id/switchMsg"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="190dp"
android:layout_marginTop="15dp"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="16sp"
android:layout_marginLeft="190dp"
android:layout_marginTop="5dp"
android:textColor="@color/label_text"
android:text="匿名" />
<Switch
android:id="@+id/switchMsg"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="190dp"
android:layout_marginTop="15dp"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="16sp"
android:layout_marginLeft="190dp"
android:layout_marginTop="5dp"
android:textColor="@color/label_text"
android:text="匿名" />
</LinearLayout>
</LinearLayout>
......
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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:background="@color/fragment_background"
android:layout_width="match_parent"
android:layout_height="match_parent">
<include
android:id="@+id/include"
layout="@layout/appbar"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<androidx.cardview.widget.CardView
android:layout_width="340dp"
android:layout_height="45dp"
android:layout_marginTop="90dp"
android:layout_marginLeft="40dp"
app:cardCornerRadius="15dp">
<EditText
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#00FFFFFF"
android:textColor="@color/label_text"
android:hint="标题"></EditText>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:layout_width="110dp"
android:layout_height="wrap_content"
android:layout_marginLeft="40dp"
android:layout_marginTop="30dp"
app:cardCornerRadius="15dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginTop="10dp"
android:text="投放位置"
android:textColor="@color/label_text"
android:textSize="16sp" />
</androidx.cardview.widget.CardView>
<ImageView
android:layout_width="340dp"
android:layout_height="160dp"
android:layout_marginLeft="40dp"
android:layout_marginTop="30dp"
/>
<androidx.cardview.widget.CardView
android:layout_width="340dp"
android:layout_height="200dp"
android:layout_marginTop="15dp"
android:layout_marginLeft="40dp"
app:cardCornerRadius="15dp">
<EditText
android:layout_width="match_parent"
android:layout_height="match_parent"
android:enabled="true"
android:gravity="top"
android:inputType="textMultiLine"
android:minLines="8"
android:maxLines="10"
android:scrollbars="vertical"
android:background="#00FFFFFF"
android:textColor="@color/label_text" />
</androidx.cardview.widget.CardView>
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册