6.17 10

七安。發表於2024-06-17
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
                xmlns:tools="http://schemas.android.com/tools"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:orientation="vertical"
                android:background="@color/gray_f3f3f3">
    <RelativeLayout
            android:id="@+id/main_top_layout"
            android:layout_width="match_parent"
            android:layout_height="50dp" tools:ignore="UselessParent">
        <TextView
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:text="@string/app_name"
                android:gravity="center"
                android:padding="10dp"
                android:textStyle="bold"
                android:textSize="18sp"
                android:textColor="@color/black"/>
        <ImageView
                android:id="@+id/main_iv_search"
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:src="@mipmap/search"
                android:onClick="onClick"
                android:layout_alignParentEnd="true"
                android:padding="10dp"/>
    </RelativeLayout>
    <ListView
            android:id="@+id/main_lv"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_below="@+id/main_top_layout"
            android:padding="10dp"
            android:divider="@null"
            android:dividerHeight="6dp"
            android:scrollbars="none"
            android:background="@color/gray_f3f3f3"
            tools:ignore="AdapterViewChildren"/>
    <ImageButton
            android:id="@+id/main_btn_more"
            android:layout_width="50dp"
            android:layout_height="50dp"
            android:src="@mipmap/more"
            android:layout_alignParentEnd="true"
            android:onClick="onClick"
            android:layout_alignParentBottom="true"
            android:background="@drawable/main_morebtn_bg"/>
    <Button
            android:id="@+id/main_btn_edit"
            android:layout_width="100dp"
            android:layout_height="50dp"
            android:layout_alignBottom="@id/main_btn_more"
            android:background="@drawable/main_recordbtn_bg"
            android:layout_toStartOf="@+id/main_btn_more"
            android:onClick="onClick"
            android:text="@string/record"
            android:gravity="center_vertical"/>

</RelativeLayout>

相關文章