博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
a very good tutorial let me understand basic UI...
阅读量:6924 次
发布时间:2019-06-27

本文共 1058 字,大约阅读时间需要 3 分钟。

hot3.png

 

9. Your first Android project

由於版本原因,

範列裡的

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

<LinearLayout xmlns:android=""
 android:orientation="vertical" android:layout_width="fill_parent"
 android:layout_height="fill_parent">
 
 <EditText android:layout_height="wrap_content" android:id="@+id/editText1"
  android:layout_width="match_parent" android:text="EditText"></EditText>
  
 <RadioGroup android:layout_height="wrap_content" android:id="@+id/radioGroup1"
  android:layout_width="match_parent">
  <RadioButton android:text="RadioButton"
   android:layout_width="wrap_content" android:id="@+id/radio0"
   android:layout_height="wrap_content" android:checked="true"></RadioButton>
  <RadioButton android:text="RadioButton"
   android:layout_width="wrap_content" android:id="@+id/radio1"
   android:layout_height="wrap_content"></RadioButton>
 </RadioGroup>
 <Button android:text="Button" android:id="@+id/button1"
  android:layout_width="wrap_content" android:layout_height="wrap_content"></Button>
</LinearLayout>
會報錯,

將match_parent改為fill_parent才可以

 

转载于:https://my.oschina.net/u/238776/blog/40956

你可能感兴趣的文章
一致性 Hash 算法的实际应用
查看>>
聊聊flink的BlobWriter
查看>>
vue 动态渲染多个不同的组件
查看>>
Bootstrap 4 gulp 配置
查看>>
【译】如何撰写精彩的技术博客文章
查看>>
CS-CDN-CDN技术详解-ch2-CDN技术概述
查看>>
手机分辨率和网页中的px是一回事吗?
查看>>
python 实现各种排序算法
查看>>
区块链技术工坊 - 线下区块链技术分享
查看>>
LeetCode 389——找不同
查看>>
Maven配置
查看>>
曾经面试踩过的坑,都在这里了~
查看>>
Java中解析日志
查看>>
Money 20/20 | 未来金融数字化转型:数字化半径与全栈式战略观
查看>>
分布式架构优缺点一览
查看>>
[LeetCode] Binary Search [Beat 100%]
查看>>
CORS跨域与Nginx反向代理跨域优劣对比
查看>>
一款基于vue好用的富文本编辑器Froala WYSIWYG Editor
查看>>
React+mongodb 使用(配置)
查看>>
一、docker安装笔记
查看>>