使屏幕填充gridlayout(Make screen fill gridlayout)
<?xml version="1.0" encoding="utf-8"?> <GridLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:columnCount="1" android:rowCount="3" android:verticalSpacing="1px" > <ImageButton android:id="@+id/AlertBtn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_column="0" android:layout_gravity="fill_horizontal" android:layout_row="1" android:src="@drawable/mylocation" /> <ImageButton android:id="@+id/myLocationBtn" android:layout_width="306dp" android:layout_height="wrap_content" android:layout_column="0" android:layout_gravity="fill_horizontal" android:layout_row="2" android:src="@drawable/proximity" /> <ImageView android:id="@+id/imageView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_column="0" android:layout_gravity="fill_horizontal" android:layout_row="0" android:src="@drawable/title" /> </GridLayout>
我想让这3个项目完全填满scren,如果可能的话,每个项目之间没有空格。 我一直在玩gridlayout,但由于它是新的,我没有太多的编程经验,我无法得到我想要的东西。
任何帮助,将不胜感激。
<?xml version="1.0" encoding="utf-8"?> <GridLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:columnCount="1" android:rowCount="3" android:verticalSpacing="1px" > <ImageButton android:id="@+id/AlertBtn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_column="0" android:layout_gravity="fill_horizontal" android:layout_row="1" android:src="@drawable/mylocation" /> <ImageButton android:id="@+id/myLocationBtn" android:layout_width="306dp" android:layout_height="wrap_content" android:layout_column="0" android:layout_gravity="fill_horizontal" android:layout_row="2" android:src="@drawable/proximity" /> <ImageView android:id="@+id/imageView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_column="0" android:layout_gravity="fill_horizontal" android:layout_row="0" android:src="@drawable/title" /> </GridLayout>
I want to make these 3 items completely fill the scren and if is possible no white space between each item. I have been playing with the gridlayout but since it's new and I don't have much experience in programming, I can't get what I want.
Any help would be appreciated.
原文:https://stackoverflow.com/questions/21670487
更新时间:2023-06-07 14:06
最满意答案
相关问答
更多-
普通网络公司不需要前置审批的那种 经营范围怎么填?还有前置审批有多难?怎么办?[2023-11-22]
-
注册公司 需要扩大经营范围[2023-10-28]
-
怎么注册计算机公司经营范围[2022-02-23]
经营范围:电子计算机及配件,电子仪器,复印机,打字,油印机械,家用电器,电脑系统工程开发及技术服务与维修 这样够不够,如果你想还做什么,再添加进去. -
关于数码科技公司经营范围的界定[2022-03-08]
你好。你可以把经营范围改成;网站建设与维护(不含互联网上网服务);计算机网络工程、智能化系统工程设计、施工;销售计算机软件及辅助设备、电子产品、办公设备、通讯产品。 -
怎么注册计算机公司经营范围[2022-04-14]
经营范围:电子计算机及 配件, 电子仪器, 复印机,打字,油印 机械,家用电器,电脑系统工程开发及技术服务与维修 这样够不够,如果你想还做什么,再添加进去. -
网络公司主要从事网络技术开发及产品销售,另外,也可以从事其它产品销售或咨询服务。以注册上海网络公司为例,其经营范围相关要求与规定如下: 一、网络公司经营范围要求 1. 内资网络公司经营范围 内资网络公司除了从事网络技术、信息技术、电子产品等领域内的技术开发、技术服务、技术咨询、技术转让,还可以经营电子产品、电脑产品及配件等产品的销售,以及从事企业管理咨询等咨询服务类业务。 如果网络公司从事进出口业务,外贸部分的经营范围只写一句话就可以了,“从事货物及技术的进出口业务”。 2. 外资网络公司经营范围 主要经营 ...
-
我要注册一个网络公司,经营范围怎么填?[2022-11-27]
软件设计与开发、游戏开发、系统集成、网络工程、企业信息化、网站设计与开发、网页制作、电子商务、通信系统开发集成、自动化控制系统开发与集成、自动化工程、软件销售、技术支持、技术服务、技术培训