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>
  • 相关阅读:
    POJ3041Asteroids(最小点覆盖+有点小抽象)
    POJ 2240Arbitrage(Floyd)
    POJ1860Currency Exchange(Bellman + 正权回路)
    POJ3259Wormholes(判断是否存在负回路)
    TCL V7300A-3D升级教程
    “一生所爱“一首一听就很想落泪的歌曲
    一生所爱 怀念那段旧时光~
    文艺小青年
    又是一年中秋节
    luogu1080 国王游戏(贪心+高精度)
  • 原文地址:https://www.cnblogs.com/miao-com/p/14406877.html
Copyright © 2011-2022 走看看