zoukankan      html  css  js  c++  java
  • 记账本APP2

    在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>
    复制代码
  • 相关阅读:
    统计nginx日志里访问次数最多的前十个IP
    while 格式化输出 运算符 字符编码
    Python 软件安装
    Python 基础
    Typora 基础的使用方法
    Django ORM (四) annotate,F,Q 查询
    Django 惰性机制
    Django ORM (三) 查询,删除,更新操作
    Django ORM (二) 增加操作
    Django ORM (一) 创建数据库和模型常用的字段类型参数及Field 重要参数介绍
  • 原文地址:https://www.cnblogs.com/hanmy/p/14875738.html
Copyright © 2011-2022 走看看