首页 > 其他分享 >2024.4.13

2024.4.13

时间:2024-04-17 20:00:26浏览次数:17  
标签:13 layout height width 2024.4 android id match

<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/textViewTime"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="20sp"
android:textColor="#000000"
android:layout_marginTop="16dp"
android:text="当前时间: "
android:layout_gravity="center_horizontal" />
<!-- 插入图片 -->
<ImageView
android:layout_width="match_parent"
android:layout_height="300dp"
android:scaleType="centerCrop"
android:src="@drawable/subway" />

<!-- 按钮布局 -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"

android:orientation="vertical">

<!-- 第一个按钮 -->
<Button
android:id="@+id/a1"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_gravity="center_horizontal"
android:background="@drawable/a2"

android:onClick="line"
android:text="线路查询" />

<!-- 第二个按钮 -->
<Button
android:id="@+id/a2"
android:layout_width="match_parent"
android:layout_height="50dp"
android:text="站点查询"
android:onClick="site"
android:background="@drawable/a2"
android:layout_gravity="center_horizontal" />

<!-- 第三个按钮 -->
<Button
android:id="@+id/a3"
android:layout_width="match_parent"
android:layout_height="50dp"
android:text="起点—终点查询"
android:onClick="start"
android:background="@drawable/a2"
android:layout_gravity="center_horizontal" />

</LinearLayout>

<!-- 其他内容布局 -->

</LinearLayout>

</ScrollView>

标签:13,layout,height,width,2024.4,android,id,match
From: https://www.cnblogs.com/luoqingci/p/18141631

相关文章

  • 2024.4.5 软工日报
    packagecom.example.sub_find;importandroid.content.Intent;importandroid.os.Bundle;importandroid.view.View;importandroid.widget.Button;importandroid.widget.TextView;importandroid.widget.Toast;importandroidx.appcompat.app.AppCompatActivity;importand......
  • 2024.4.17python复习
    非0整数(正数、负数)进行bool转换,均为true。0的强制类型转换为bool为falsebool强制类型,如果为float转bool,如果a!=0.0,则为true,否则为true;如果为str转bool,若str='',str中为空,则bool(str)的内容为false,否则为true,空格也一样;只要列表中有数据那么强制类型转换为bool的时候就返回True;......
  • LeetCode 1315. Sum of Nodes with Even-Valued Grandparent
    原题链接在这里:https://leetcode.com/problems/sum-of-nodes-with-even-valued-grandparent/description/题目:Giventhe root ofabinarytree,return thesumofvaluesofnodeswithan even-valuedgrandparent.Iftherearenonodeswithan even-valuedgrandpar......
  • MapReduce:简化集群上的大数据处理.18139822
    本文是论文《MapReduce:SimplifiedDataProcessingonLargeClusters》的翻译。原作者:JeffreyDeanandSanjayGhemawat@Google,Inc.为了刷MIT6.8242021,分布式系统课程,可以去B站看下,也有Lab可以刷概述MapReduce是一个针对处理大数据集的编程模型以及关联实现。用户......
  • P6864 [RC-03] 记忆 题解(评分:8.1)(2023.12.13)
    前言这下又不是官解了吧?模拟赛题,在一个月后又出现在了数据结构讲稿上,令人忍俊不禁。Solution官方解法是用线段树加矩阵,不过赛时的我显然没这么聪明,是想不到的。赛时我就只知道先发掘一些答案的性质。一、一些性质首先,发现这个撤销操作比较棘手,考虑没有撤销操作的情况下,每一......
  • 2024.4.16python基础学习
    基本数据类型numberintmoney=6600floatdiscount=1.2boolenisok=trueisok=falsestrings='sssss's="ssssss"ps:单引号与双引号成对出现,不可以混合使用可以单引号嵌套双引号,互相嵌套list(列表)my_list=['足球','篮球']tuple(元组)my_tuple=(12,123,1234)dict(字典)......
  • 4.13
    ValueError:xandymusthavesamefirstdimension,buthaveshapes(525,)and(501,) 这个错误提示意味着x轴数据和y轴数据的长度不相等。在这个例子中,x轴数据的长度是1599,而y轴数据的长度是1908。这个错误通常发生在以下情况:1.没有正确地指定x轴和y轴数据。在使用Matp......
  • 20240413
    T1TopcoderSRM567div1Medium-StringGame首先字母表定了之后两个人一定都会把字符串按字母表排序。对于这样的两个字符串,只需要数出两个串中每种字母分别有多少个,然后对着计数数组按字母表顺序比过去,在第一个不一样处更大的字典序小。因此先数一数每个字符串中每个字符出现......
  • JAVA语言学习-Day13
    参考教学视频:秦疆JVM概述JVM位置:操作系统之上JVM的体系结构.java->ClassFile->类加载器Classloader<-->运行时数据区RuntimeDataArea<-->本地方法接口<-本地方法库运行时数据区RuntimeDataArea<-->执行引擎方法区:MethodAreaJava栈:Stack本地方......
  • 4月13日每日总结
    SpringBoot与容器化今天我学习了如何将SpringBoot应用容器化,以便在不同的环境中部署和运行。我首先了解了Docker容器化技术的基本概念和原理,包括镜像、容器、Dockerfile等重要概念。随后,我学习了如何编写Dockerfile来定义SpringBoot应用的容器镜像,以及如何使用Docker命令来构......