是目录耶!!
一、齐心抗疫界面
ServiceSpireActivity.xml:
<?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"
android:background="@color/purple_700"
tools:context="service.ServiceKidsActivity">
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
>
<!--嵌套在ScrollView下面的LinearLayout 的布局 -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
>
<!-- 请输入自己的抗疫积极向上的句子-->
<LinearLayout
android:id="@+id/lin_mine_spire"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginTop="20dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:background="@drawable/lin_white_drawable"
>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="20sp"
android:layout_marginTop="10dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginBottom="10dp"
android:textColor="@color/black"
android:hint="请输入你的热血澎湃。"
android:drawableLeft="@drawable/input_pic"
/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="15sp"
android:layout_marginTop="5dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="20dp"
android:layout_marginBottom="10dp"
android:textColor="@color/black"
android:gravity="right"
android:hint="--来自XXX的投稿"
/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginTop="20dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:background="@drawable/lin_white_drawable"
>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="20sp"
android:layout_marginTop="10dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginBottom="10dp"
android:textColor="@color/black"
android:text="\t\t\t\t路不险则无以知马之良,任不重则无以知人之德。”疫情是一场大考,检验着每一个人。越是危难时刻,越是重任在肩,越需要我们保持战斗状态,坚决打赢疫情防阻击战。"
/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="15sp"
android:layout_marginTop="5dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="20dp"
android:layout_marginBottom="10dp"
android:textColor="@color/black"
android:gravity="right"
android:text="--来自湖北张太阳的投稿"
/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginTop="20dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:background="@drawable/lin_white_drawable"
>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="20sp"
android:layout_marginTop="10dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginBottom="10dp"
android:textColor="@color/black"
android:text="\t\t\t\t越是危难时刻,越是重任在肩,越需要我们保持战斗状态,坚决打赢疫情防阻击战。"
/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="15sp"
android:layout_marginTop="5dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="20dp"
android:layout_marginBottom="10dp"
android:textColor="@color/black"
android:gravity="right"
android:text="--来自新疆赵一二的投稿"
/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginTop="20dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:background="@drawable/lin_white_drawable"
>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="20sp"
android:layout_marginTop="10dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginBottom="10dp"
android:textColor="@color/black"
android:text="\t\t\t\t路不险则无以知马之良,任不重则无以知人之德。”疫情是一场大考,检验着每一个人。越是危难时刻,越是重任在肩,越需要我们保持战斗状态,坚决打赢疫情防阻击战。"
/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="15sp"
android:layout_marginTop="5dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="20dp"
android:layout_marginBottom="10dp"
android:textColor="@color/black"
android:gravity="right"
android:text="--来自湖北张太阳的投稿"
/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginTop="20dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:background="@drawable/lin_white_drawable"
>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="20sp"
android:layout_marginTop="10dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginBottom="10dp"
android:textColor="@color/black"
android:text="\t\t\t\t路不险则无以知马之良,任不重则无以知人之德。”疫情是一场大考,检验着每一个人。越是危难时刻,越是重任在肩,越需要我们保持战斗状态,坚决打赢疫情防阻击战。"
/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="15sp"
android:layout_marginTop="5dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="20dp"
android:layout_marginBottom="10dp"
android:textColor="@color/black"
android:gravity="right"
android:text="--来自湖北张太阳的投稿"
/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginTop="20dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:background="@drawable/lin_white_drawable"
>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="20sp"
android:layout_marginTop="10dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginBottom="10dp"
android:textColor="@color/black"
android:text="\t\t\t\t路不险则无以知马之良,任不重则无以知人之德。”疫情是一场大考,检验着每一个人。越是危难时刻,越是重任在肩,越需要我们保持战斗状态,坚决打赢疫情防阻击战。"
/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="15sp"
android:layout_marginTop="5dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="20dp"
android:layout_marginBottom="10dp"
android:textColor="@color/black"
android:gravity="right"
android:text="--来自湖北张太阳的投稿"
/>
</LinearLayout>
</LinearLayout>
</ScrollView>
</LinearLayout>
二、上传反馈信息界面
ServiceSuggestionActivity.xml :
<?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:background="@color/purple_700"
android:orientation="vertical"
tools:context="service.ServiceKidsActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginTop="20dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:background="@drawable/lin_white_drawable"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="关于您的宝贵意见:"
android:textSize="30sp"
android:layout_marginTop="5dp"
android:layout_marginLeft="5dp"
/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:lines="5"
android:maxLines="5"
android:textSize="25sp"
android:layout_gravity="center"
android:layout_marginTop="10dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_marginBottom="20dp"
/>
</LinearLayout>
<Button
android:id="@+id/but_sug_ok"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/button_white_drawable"
android:text="提交"
android:textSize="20dp"
android:paddingLeft="50dp"
android:paddingRight="50dp"
android:textColor="@color/purple_700"
android:layout_marginTop="30dp"
android:layout_gravity="center"
/>
</LinearLayout>