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

每日总结 2.25

时间:2023-02-26 17:11:39浏览次数:32  
标签:总结 xml 每日 2.25 绘制 页面

今天学习了其他页面的绘制,以下为实现的xml文件。

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/hui" >

    <RelativeLayout
        android:id="@+id/frag_record_top"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@color/white"
        android:padding="10dp">
        <ImageView
            android:id="@+id/frag_record_iv"
            android:layout_width="30dp"
            android:layout_height="30dp"
            android:src="@mipmap/sandian"
            ></ImageView>
        <TextView
            android:id="@+id/frag_record_tv_type"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="其他"
            android:layout_toRightOf="@id/frag_record_iv"
            android:layout_centerVertical="true"
            android:textSize="16sp"
            android:textStyle="bold"
            android:layout_marginLeft="10dp"

            ></TextView>
        <EditText
            android:id="@+id/frag_record_et_money"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:layout_centerVertical="true"
            android:inputType="number"
            android:background="@color/white"
            ></EditText>

    </RelativeLayout>
<View
    android:id="@+id/frag_record_line1"
    android:layout_width="match_parent"
    android:layout_height="1dp"
    android:layout_below="@id/frag_record_top"
    android:background="@color/grey7d"
    ></View>
    <GridView
        android:id="@+id/frag_record_gv"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@id/frag_record_line1"
        android:background="@color/white"
        android:numColumns="5"
        android:paddingTop="5dp"
        android:paddingBottom="5dp"
        ></GridView>

    <!--自定义软键盘-->
    <android.inputmethodservice.KeyboardView
        android:id="@+id/frag_record_keybord"
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:keyBackground="@color/hui"
        android:keyTextColor="@color/black"
        android:focusable="true"
        android:focusableInTouchMode="true"
        android:paddingTop="1dp"
        android:layout_alignParentBottom="true"
        android:shadowColor="@color/white"
        android:shadowRadius="0.0"

></android.inputmethodservice.KeyboardView>
    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@color/white"
        android:layout_above="@id/frag_record_keybord"
        >
        <TextView
            android:id="@+id/frag_record_tv_time"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="2020年10月30日 18:49"
            android:layout_alignParentRight="true"
            android:padding="10dp"
            ></TextView>
        <TextView
            android:id="@+id/frag_record_tv_beizhu"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="添加备注"
            android:layout_toLeftOf="@id/frag_record_tv_time"
            android:padding="10dp"
            ></TextView>
    </RelativeLayout>
</RelativeLayout>

 

标签:总结,xml,每日,2.25,绘制,页面
From: https://www.cnblogs.com/syhxx/p/17157069.html

相关文章

  • React组件之间的通信方式总结(下)
    一、写一个时钟用react写一个每秒都可以更新一次的时钟importReactfrom'react'importReactDOMfrom'react-dom'functiontick(){letele=<h1>{ne......
  • React组件之间的通信方式总结(上)
    先来几个术语:官方我的说法对应代码ReactelementReact元素letelement=<span>A爆了</span>Component组件classAppextendsReact.Component{}无Ap......
  • java——spring boot集成RabbitMQ——高级特效——可靠性投递总结——topic——路由模
    可靠性在3个方面:   1、发送到到rmq——confirm机制; 2、交换机到队列——return机制; 3、队列到消费者——自动ack改为手动ack;         ......
  • [leetcode每日一题]2.26
    ​​1255.得分最高的单词集合​​难度困难98你将会得到一份单词表 ​​words​​,一个字母表 ​​letters​​ (可能会有重复字母),以及每个字母对应的得分情况表 ​​scor......
  • Java刷题常用的数据结构总结
    (Java刷题常用的数据结构总结)1.基础运算//int型相关操作Integer.INT_MAX;//int型最大值Integer.INT_MIN;//int型最小值longname;//注意:没有c语言里面的longlong(i......
  • 4.0-接口测试--接口自动化篇总结
    一、requests库requests内容:1,封装了get、post等;2、以关键字参数的方式,封装了各类请求参数,params、data、headers、token、cookie等;3,封装了响应内容,status_code、json(......
  • 2.0-接口测试--postman总结篇
    Postman基础用法1、请求中常见的数据传递格式​ form表单数据示意图:案例1:提交字符串数据需求:1.访问TPshop搜索商品的接口,通过查询字符串的方式传递搜索的关键字i......
  • 3.0-接口测试--pymysql操作数据库篇总结
    一、数据库基本操作1、安装安装:pipinstallPyMySQL验证:pipshowPyMySQL2、操作流程(重点)创建连接获取游标执行sql查询操作(select)非......
  • Java刷题常用的数据结构总结
    目录1.基础运算2.字符串类3.数组类与链表4.栈和队列5.字典类6.树1.基础运算//int型相关操作Integer.INT_MAX;//int型最大值Integer.INT_MIN;//int型最小值long......
  • Hadoop阶段-学习总结
    Hadoop阶段学习总结第一部分:HDFS相关问题一、描述一下HDFS的数据写入流程​ 首先由客户端想NameNode服务发起写数据请求,NameNode接收到请求后会进行基本验证,验证内容包......