• 对话框


     1 <?xml version="1.0" encoding="utf-8"?>
     2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     3     android:layout_width="match_parent"
     4     android:layout_height="match_parent"
     5     android:orientation="horizontal"
     6     android:padding="15dp">
     7       
     8     <ImageView
     9         android:layout_width="100dp"
    10         android:layout_height="100dp"
    11         android:scaleType="fitXY"
    12         android:background="@drawable/xiaohuli"/>
    13     <LinearLayout
    14         android:layout_width="match_parent"
    15         android:layout_height="wrap_content"
    16         android:orientation="vertical">
    17         <TextView
    18             android:id="@+id/tv_title"
    19             android:layout_width="match_parent"
    20             android:layout_height="wrap_content"
    21             android:text="用户你好"
    22             android:gravity="center"
    23             android:textSize="30dp"
    24             android:textColor="#000000"
    25             android:layout_marginLeft="15dp"/>
    26         <TextView
    27             android:id="@+id/tv_time"
    28             android:layout_width="wrap_content"
    29             android:layout_height="wrap_content"
    30             android:layout_marginLeft="15dp"
    31             android:text="现在时间为:2000-11-5"
    32             android:textSize="26dp"
    33             />
    34         <TextView
    35             android:id="@+id/tv_wupin"
    36             android:layout_width="wrap_content"
    37             android:layout_height="wrap_content"
    38             android:layout_marginLeft="15dp"
    39             android:gravity="center"
    40             android:text="请选择你喜爱的物品"
    41             android:textSize="26dp"
    42             />
    43           
    44     </LinearLayout>
    45   
    46 </LinearLayout>
    47 XML代码
    48 <?xml version="1.0" encoding="utf-8"?>
    49 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    50     android:layout_width="match_parent"
    51     android:layout_height="match_parent"
    52     android:orientation="vertical"
    53     android:padding="10dp"
    54    >
    55     <Button
    56         android:id="@+id/dialog1"
    57         android:layout_width="match_parent"
    58         android:layout_height="wrap_content"
    59         android:text="对话框常用标准"
    60         android:textAllCaps="false"/>
    61     <Button
    62         android:id="@+id/dialog2"
    63         android:layout_marginTop="20dp"
    64         android:layout_width="match_parent"
    65         android:layout_height="wrap_content"
    66         android:text="列表对话框"
    67         android:textAllCaps="false"/>
    68     <Button
    69         android:id="@+id/dialog3"
    70         android:layout_marginTop="20dp"
    71         android:layout_width="match_parent"
    72         android:layout_height="wrap_content"
    73         android:text="列表对话框带按钮方式"
    74         android:textAllCaps="false"/>
    75     <Button
    76         android:id="@+id/dialog4"
    77         android:layout_marginTop="20dp"
    78         android:layout_width="match_parent"
    79         android:layout_height="wrap_content"
    80         android:text="多选对话框(最常用)"
    81         android:textAllCaps="false"/>
    82 </LinearLayout>
  • 相关阅读:
    HTTP响应状态码整理
    Python通用爬虫,聚焦爬虫概念理解
    HTTP无状态协议理解
    会话与事务知识点总结
    并发一致性知识点整理
    使用隔离级别read committed隐式解决并发冲突
    多并发笔记整理
    git基本使用
    Docker其他
    Docker Bind Mount 与 Volume
  • 原文地址:https://www.cnblogs.com/reddead/p/14164006.html
Copyright © 2020-2023  润新知