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>
    复制代码
  • 相关阅读:
    windows下编译及使用libevent
    安装和使用memcached
    BroadcastReceiver插件化解决方案
    Service插件化解决方案
    Activity插件化解决方案
    换肤-插件化
    资源的插件化
    startActivity进行Hook
    代理模式
    对反射的封装
  • 原文地址:https://www.cnblogs.com/hanmy/p/14875738.html
Copyright © 2011-2022 走看看