团队——和谐共生(4)

和谐共生(4

今天在逐步实现我的任务中的最后一个界面,这个涉及到的知识有界面、适配器、数据库、页面跳转

打开之后的界面如下

 

 

 

<?xml version="1.0" encoding="utf-8"?>

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"

    android:layout_width="match_parent"

    android:layout_height="match_parent"

    android:orientation="vertical">

 

    <!--    首页标题-->

    <RelativeLayout

        android:layout_width="match_parent"

        android:layout_height="45dp"

        android:id="@+id/push_title"

        android:background="@color/colorPrimary"

        android:gravity="center_vertical"

        android:orientation="horizontal"

        android:padding="3dp">

        <TextView

            android:layout_width="wrap_content"

            android:layout_height="45dp"

            android:id="@+id/push_textView"

            android:layout_centerInParent="true"

            android:layout_marginLeft="7dp"

            android:gravity="center"

            android:textColor="#ffffff"

            android:text="@string/push_title"

            android:textSize="18sp"/>

    </RelativeLayout>

    <View

        android:layout_width="match_parent"

        android:layout_height="0.5dp"

        android:background="#dbdbdb"/>

    <EditText

        android:layout_width="match_parent"

        android:layout_height="wrap_content"

        android:id="@+id/et_content"

        android:layout_below="@id/push_title"

        android:gravity="left|top"

        android:hint="@string/push_edit_hint"

        android:maxLines="6"

        android:minLines="5"

        android:padding="15dp"

        android:textSize="16sp"/>

    <View

        android:layout_width="match_parent"

        android:layout_height="2dp"

        android:id="@+id/view_gad"

        android:layout_below="@id/et_content"/>

    <ImageButton

        android:layout_width="wrap_content"

        android:layout_height="wrap_content"

        android:id="@+id/push_addphoto"

        android:background="@drawable/addphoto"

        android:layout_below="@id/et_content"

        android:layout_margin="10dp"/>

    <TextView

        android:layout_width="match_parent"

        android:layout_height="wrap_content"

        android:id="@+id/tv_publish"

        android:layout_alignParentBottom="true"

        android:background="@drawable/selector_push"

        android:textSize="25sp"

        android:text="@string/push_tijiao"

        android:gravity="center"

        android:textColor="@color/white"/>

 

</RelativeLayout>

 

posted @ 2022-06-14 20:48  献出头发  阅读(16)  评论(0编辑  收藏  举报