• 第二次作业


    <?xml version="1.0" encoding="utf-8"?>

    <RelativeLayout xmlns:android="http://schema<?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:background="@drawable/bg"

        android:padding="16dp"

        android:orientation="vertical">

        <LinearLayout

            android:layout_marginTop="130dp"

            android:layout_width="match_parent"

            android:layout_height="wrap_content">

            <TextView

                android:layout_width="wrap_content"

                android:layout_height="wrap_content"

                android:text="姓 名 :"

                android:textSize="18sp" />

            <EditText

                android:id="@+id/et_name"

                android:layout_width="match_parent"

                android:layout_height="wrap_content"

                android:hint="请输入姓名"

                android:textSize="16sp" />

        </LinearLayout>

        <LinearLayout

            android:layout_width="match_parent"

            android:layout_height="wrap_content"

            android:layout_marginBottom="10dp">

            <TextView

                android:layout_width="wrap_content"

                android:layout_height="wrap_content"

                android:text="年 龄:"

                android:textSize="18sp" />

            <EditText

                android:id="@+id/et_age"

                android:layout_width="match_parent"

                android:layout_height="wrap_content"

                android:hint="输入年龄"

                android:textSize="16sp" />

        </LinearLayout>

        <LinearLayout

            android:layout_width="match_parent"

            android:layout_height="wrap_content">

            <Button

                android:id="@+id/btn_add"

                android:layout_width="0dp"

                android:layout_height="wrap_content"

                android:layout_marginRight="2dp"

                android:layout_weight="1"

                android:background="#B9B9FF"

                android:text="添加"

                android:textSize="18sp"

                android:onClick="add" />

            <Button

                android:id="@+id/btn_query"

                android:layout_width="0dp"

                android:layout_height="wrap_content"

                android:layout_marginRight="2dp"

                android:layout_weight="1"

                android:background="#DCB5FF"

                android:text="查询"

                android:textSize="18sp"

                android:onClick="serch"/>

            <Button

                android:id="@+id/btn_update"

                android:layout_width="0dp"

                android:layout_height="wrap_content"

                android:layout_marginRight="2dp"

                android:layout_weight="1"

                android:background="#E6CAFF"

                android:text="修改"

                android:textSize="18sp"

                android:onClick="update"/>

            <Button

                android:id="@+id/btn_delete"

                android:layout_width="0dp"

                android:layout_height="wrap_content"

                android:layout_weight="1"

                android:background="#ACD6FF"

                android:text="删除"

                android:textSize="18sp"

                android:onClick="delete" />

        </LinearLayout>

        <TextView

            android:id="@+id/tv_show"

            android:layout_width="match_parent"

            android:layout_height="wrap_content"

            android:layout_marginTop="25dp"

            android:textSize="20sp" />

    </LinearLayout>

  • 相关阅读:
    Appium Android Bootstrap源码分析之控件AndroidElement
    Appium Android Bootstrap源码分析之简介
    monkey源码分析之事件注入方法变化
    安卓Monkey源码分析之运行流程
    adb概览及协议参考
    MAC中在eclipse luna上搭建移动平台自动化测试框架(UIAutomator/Appium/Robotium/MonkeyRunner)关键点记录
    MonkeyImage API 实践全记录
    Structs 2 session 学习
    The First
    用例图
  • 原文地址:https://www.cnblogs.com/www111/p/14523293.html
Copyright © 2020-2023  润新知