每日总结 2.25
今天学习了andro studio的多个视图的设计。
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:background="@color/hui"> <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@color/white" android:padding="20dp"> <TextView android:id="@+id/item_mainlv_top_tv1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="本月支出"></TextView> <TextView android:id="@+id/item_mainlv_top_tv2_out" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/item_mainlv_top_tv1" android:layout_marginTop="10dp" android:layout_marginBottom="10dp" android:text="$ 0" android:textColor="@color/black" android:textSize="26sp" android:textStyle="bold"></TextView> <ImageView android:id="@+id/item_mainlv_top_iv_hide" android:layout_width="88dp" android:layout_height="wrap_content" android:layout_alignTop="@id/item_mainlv_top_tv2_out" android:layout_alignBottom="@id/item_mainlv_top_tv2_out" android:layout_alignParentRight="true" android:layout_marginTop="0dp" android:layout_marginRight="13dp" android:layout_marginBottom="5dp" android:src="@mipmap/eye"></ImageView> <TextView android:id="@+id/item_mainlv_top_tv2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/item_mainlv_top_tv2_out" android:text="@string/mouth_in"></TextView> <TextView android:id="@+id/item_mainlv_top_tv2_in" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/item_mainlv_top_tv2_out" android:layout_marginLeft="5dp" android:layout_toRightOf="@id/item_mainlv_top_tv2" android:text="$ 0" android:textColor="@color/black"></TextView> <TextView android:id="@+id/item_mainlv_top_tv2_budget" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignBottom="@id/item_mainlv_top_tv2" android:layout_alignParentRight="true" android:layout_marginLeft="5dp" android:text="$ 0" android:textColor="@color/black"></TextView> <TextView android:id="@+id/item_mainlv_top_tv3" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignBottom="@id/item_mainlv_top_tv2" android:layout_toLeftOf="@id/item_mainlv_top_tv2_budget" android:text="@string/budget"></TextView> <TextView android:id="@+id/item_mainlv_top_tv4" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/item_mainlv_top_tv2" android:layout_marginTop="39dp" android:layout_centerHorizontal="true" android:drawableLeft="@mipmap/zeng2" android:drawablePadding="10dp" android:text="@string/seeex" android:textColor="@color/green"></TextView> </RelativeLayout> <TextView android:id="@+id/item_mainlv_top_tvday" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="今日支出 $ 0 收入 $ 0" android:textStyle="bold" android:layout_marginTop="20dp" android:layout_marginBottom="10dp" ></TextView> </LinearLayout>
<?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="wrap_content" android:layout_margin="10dp" android:padding="10dp" android:background="@color/white"> <ImageView android:id="@+id/item_mainlv_iv" android:layout_width="45dp" android:layout_height="45dp" android:src="@mipmap/lql" ></ImageView> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toRightOf="@id/item_mainlv_iv" android:layout_marginLeft="10dp" android:orientation="vertical"> <TextView android:id="@+id/main_zj" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="每日总结" android:textStyle="bold" android:textSize="16sp"></TextView> <TextView android:id="@+id/main_zjbz" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="学习" android:layout_marginTop="5dp" android:textSize="12sp"></TextView> </LinearLayout> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:orientation="vertical"> <TextView android:id="@+id/main_zjdata" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="12月5日" android:textStyle="bold" ></TextView> <TextView android:id="@+id/main_zjtime" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="18:10" android:layout_marginTop="5dp"></TextView> </LinearLayout> </RelativeLayout>
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 别再用vector<bool>了!Google高级工程师:这可能是STL最大的设计失误
· 单元测试从入门到精通