zoukankan      html  css  js  c++  java
  • 结对项目——My note(二)

    备忘录显示笔记列表的界面代码

    <?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" >
         
        <EditText
            android:id="@+id/etName"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:ems="10"
            android:singleLine="true" >
             
            <requestFocus />
        </EditText>
         
        <EditText
            android:id="@+id/etContent"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:ems="10"
            android:gravity="top" />
         
        <ListView
            android:id="@android:id/list"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_weight="2" >
        </ListView>
         
        <LinearLayout
            android:layout_width="fill_parent"
            android:layout_height="wrap_content" >
             
            <Button
                android:id="@+id/btnSave"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:text="保存" />
             
            <Button
                android:id="@+id/btnCancel"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:text="取消" />
             
            <Button
                android:id="@+id/btnAddPhoto"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:text="拍照" />
             
            <Button
                android:id="@+id/btnAddVideo"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="录像"
                android:layout_weight="1" />
        </LinearLayout>
         
    </LinearLayout>

  • 相关阅读:
    C艹目录
    C艹重复输入小方法,for循环+while
    python with 语句妙用
    python with妙用
    Kali配置网卡静态信息
    Spring 之 注解详解
    html基础之 表单提交方法
    html 基础之 <link>标签
    android:padding和android:margin的区别
    css基础之 font的简写规则 以及 自定义 CSS3 @font-face详细用法
  • 原文地址:https://www.cnblogs.com/lixue1206/p/7019638.html
Copyright © 2011-2022 走看看