首页 > 其他分享 >3.9每日总结

3.9每日总结

时间:2023-03-09 19:45:04浏览次数:35  
标签:总结 layout 每日 height content wrap android id 3.9

   今天学习用android studio实现增删改查。

一个class用来创建数据库,建表,一个activity用来执行增删改查操作

//今天只实现界面,还不能完全运行

布局表信息(csdn上的)

<?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"
>
<LinearLayout
android:orientation="horizontal"
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="30sp"
/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="请输入姓名"
android:textSize="20sp"
android:id="@+id/name"
/>
</LinearLayout>
<LinearLayout

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="30sp"
/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="请输入年龄"
android:textSize="20sp"
android:id="@+id/age"
/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
>

<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:textSize="20sp"
android:text="插入"
android:id="@+id/btn_insert"
android:textAllCaps="false"
/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:textSize="20sp"
android:text="更新"
android:id="@+id/btn_update"
android:textAllCaps="false"
/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:textSize="20sp"
android:text="查询"
android:id="@+id/btn_search"
android:textAllCaps="false"
/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:textSize="20sp"
android:text="删除"
android:id="@+id/btn_delete"
android:textAllCaps="false"
/>


</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:id="@+id/tv_show"
android:textSize="20sp"
android:gravity="center_horizontal"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:id="@+id/tv_showAge"
android:textSize="20sp"
android:gravity="center_horizontal"
/>
</LinearLayout>


</LinearLayout>

标签:总结,layout,每日,height,content,wrap,android,id,3.9
From: https://www.cnblogs.com/ZRGUGUGU818/p/17197566.html

相关文章

  • 3.9笔记
    createdatabasenidaye;创建nidaye的数据库showdatabases;查看所有数据库usenidaye;使用你自己的数据库showtables#查看当前数据库下所有的表整数:int小数float日期......
  • 指针总结
    这篇博客是我在学习了一段时间的指针后,做的一些总结,如有错误请严厉指正。首先是我写的一篇关于指针的思维导图。当然除了这些之外还有一个不是指针但是和指针有关的就是函数......
  • 3月09日课后总结
    3/09课后总结贪婪匹配与非贪婪匹配""" 正则表达式都是默认贪婪匹配 如:字符串<abc>123<abc> 正则表达式<.*> 则会匹配到<abc>123<abc> 非贪婪匹配则是<.*?> 匹配到<......
  • 今日总结
    输入a,b班的名单,并进行如下统计。输入格式:第1行::a班名单,一串字符串,每个字符代表一个学生,无空格,可能有重复字符。第2行::b班名单,一串字符串,每个学生名称以1个或多个空格分......
  • 2023.3.9
    //*****JQuery平行查找-同级*****//返回全部同级的同级元素,不包含本身varelementobjlist=$(selector).siblings();//通过[n]引出的对象为Element对象,需要通过原......
  • 【学习总结】计算机组成原理
    参考笔记:CSDN:从前慢-计算机组成原理:B站王道考研视频下发现的CSDN:从前慢-操作系统END......
  • mvc-学习javaweb项目一后部分知识总结
    资料来源于:B站尚硅谷JavaWeb教程(全新技术栈,全程实战),本人才疏学浅,记录笔记以供日后回顾总体内容是P39-P45,这边只放了一个链接。视频链接知识点总述1.最初的做法......
  • 3月9日总结
    作为一枚合格的代码贡献者,时常需要跟踪自己或者团队代码的变更,那么就很有必要了解并掌握一些软件代码版本管理工具或者系统,比如Git、SVN、CVS、VSS等。版本管理工具比较......
  • 模拟总结2
    这回寄了,只拿了三分T1貌似做过啊,但是我往八个方向扩展貌似写挂了,前缀和也没想到qwqT2真心不会T3没有看明白规律...T4暴力写挂了T5部分分写挂了,没想到用堆T6还......
  • 3月08日课后总结
    3/08课后总结绝对导入和相对导入#程序中多个模块之间导入的时候始终以执行文件所在的路径作为基准1.绝对导入: #始终以执行文件所在的环境变量sys.path为基准2.相......