每日总结2023-04-14

今天对Android界面进行了优化,对与以前的代码略有改动

这是主界面,包括listView查看每日信息,补货按钮,more按钮:更多信息

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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="@mipmap/qw"
    android:orientation="vertical"
    tools:context=".www_user.mall_Activity">

    <TextView
        android:id="@+id/mel_tv_1"
        android:layout_width="wrap_content"
        android:layout_marginTop="20dp"
        android:layout_height="40dp"
        android:layout_marginLeft="30dp"
        android:gravity="center"
        android:text="用户名   :"
        android:textColor="@color/black"
        android:textSize="20dp" />

    <TextView
        android:id="@+id/mel_tv_2"
        android:layout_marginTop="20dp"
        android:layout_width="wrap_content"
        android:layout_height="40dp"
        android:layout_marginLeft="10dp"
        android:layout_toRightOf="@id/mel_tv_1"
        android:gravity="center"
        android:text="用户名" />

    <ListView
        android:id="@+id/mel_lv"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_marginTop="60dp"
        android:divider="@null"
        android:dividerHeight="6dp"
        android:padding="10dp"
        android:scrollbars="none" />

    <ImageButton
        android:id="@+id/mel_btn_more"
        android:layout_width="50dp"
        android:layout_height="50dp"
        android:layout_alignParentRight="true"
        android:layout_alignParentBottom="true"
        android:layout_marginStart="20dp"
        android:layout_marginTop="20dp"
        android:layout_marginEnd="20dp"
        android:layout_marginBottom="20dp"
        android:background="@drawable/mel_more"
        android:contentDescription="@string/app_name"
        android:src="@mipmap/more" />

    <Button
        android:id="@+id/mel_bu"
        android:layout_width="100dp"
        android:layout_height="50dp"
        android:layout_alignBottom="@id/mel_btn_more"
        android:layout_toLeftOf="@id/mel_btn_more"
        android:background="@drawable/button_1"
        android:onClick="bu"
        android:text="补货" />


</RelativeLayout>

 

posted @ 2023-04-14 22:04  花伤错零  阅读(19)  评论(0)    收藏  举报