zoukankan      html  css  js  c++  java
  • 寒假每日日报41(开发家庭记账本APP——进度二)

    在layout文件夹里新建一个文件item.xml

           

    效果如下:

    代码如下:

     1 <?xml version="1.0" encoding="utf-8"?>
     2 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
     3     android:layout_width="match_parent" android:layout_height="wrap_content"
     4     android:padding="10dp"
     5     android:layout_margin="10dp"
     6     android:background="@color/white">
     7 
     8     <LinearLayout
     9         android:layout_width="wrap_content"
    10         android:layout_height="wrap_content"
    11         android:orientation="vertical">
    12 
    13         <TextView
    14             android:id="@+id/item_mainlv_tv_title"
    15             android:layout_width="wrap_content"
    16             android:layout_height="wrap_content"
    17             android:text="购物"
    18             android:textStyle="bold"
    19             android:textSize="16sp"/>
    20         <TextView
    21             android:id="@+id/item_mainlv_tv_beizhu"
    22             android:layout_width="wrap_content"
    23             android:layout_height="wrap_content"
    24             android:text="奶茶"
    25             android:layout_marginTop="5dp"
    26             android:textSize="12sp"/>
    27     </LinearLayout>
    28     <LinearLayout
    29         android:layout_width="wrap_content"
    30         android:layout_height="wrap_content"
    31         android:layout_alignParentRight="true"
    32         android:orientation="vertical">
    33 
    34         <TextView
    35             android:id="@+id/item_mainlv_tv_money"
    36             android:layout_width="wrap_content"
    37             android:layout_height="wrap_content"
    38             android:text="¥25.0"
    39             android:textStyle="bold"/>
    40         <TextView
    41             android:id="@+id/item_mainlv_tv_time"
    42             android:layout_width="wrap_content"
    43             android:layout_height="wrap_content"
    44             android:text="今天15:44"
    45             android:layout_marginTop="5dp"/>
    46     </LinearLayout>
    47 
    48 </RelativeLayout>
  • 相关阅读:
    理解 Redis(3)
    理解 Redis(2)
    理解 Redis(1)
    git 的基本命令
    使用python实现计算器功能
    python函数说明内容格式错误
    python的小基础
    python去除读取文件中多余的空行
    数论-下属不可以和上司顶嘴!(可能是总结)
    其他-一大堆记录 (20 Dec
  • 原文地址:https://www.cnblogs.com/miao-com/p/14406877.html
Copyright © 2011-2022 走看看