zoukankan      html  css  js  c++  java
  • 家庭记账本2

    今天完成了主界面的编写,代码与成果展示如下:

    <?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:background="@color/grey_f3f3f3">
    
        <RelativeLayout
            android:id="@+id/main_top_layout"
            android:layout_width="match_parent"
            android:layout_height="50dp">
            <TextView
                android:text="@string/app_name"
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                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:layout_alignParentRight="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/grey_f3f3f3"/>
        <Button
            android:id="@+id/main_btn_edit"
            android:layout_width="100dp"
            android:layout_height="50dp"
            android:layout_below="@id/main_top_layout"
            android:background="@drawable/main_recordbtn_bg"
            android:text="@string/editone"
            android:textStyle="bold"
            android:textColor="@color/white"
            android:drawableLeft="@mipmap/edit"
            android:gravity="center_vertical"/>
    </RelativeLayout>
  • 相关阅读:
    cookie
    手写Promise/Promise.all/promise.race
    Hbuilder如何真机调试?
    什么是深拷贝?什么是浅拷贝?如何实现深拷贝?
    Vue.set()?怎么用?
    vueRouter怎么用?
    Vue如何实现组件间通信?
    reduce()累加器
    filter()数组遍历
    map()数组遍历
  • 原文地址:https://www.cnblogs.com/mjhjl/p/14901812.html
Copyright © 2011-2022 走看看