团队项目——和谐共生(3)

发布时间:2022-06-08 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了团队项目——和谐共生(3)脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。

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

打开之后的界面如下

团队项目——和谐共生(3)

 

 

<?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>

 

脚本宝典总结

以上是脚本宝典为你收集整理的团队项目——和谐共生(3)全部内容,希望文章能够帮你解决团队项目——和谐共生(3)所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签:数据库