python为自己自学的,现仍处于初级阶段,这学期开启的是javaEE和Android开发,所以今后可能会同时出现这些方面的总结内容。
这篇主要是之前遇到的一些问题及解决方案的总汇贴,由于初次接触,有些东西在大神眼中可能会显得有些幼稚。
程序主界面
① EditText
②RadioGroup+RadioButton
③CheckBox
④Button
1、单个RadioButton在选中后,通过点击无法变为未选中 单个CheckBox在选中后,通过点击可以变为未选中 2、一组RadioButton,只能同时选中一个 一组CheckBox,能同时选中多个 3、RadioButton在大部分UI框架中默认都以圆形表示 CheckBox在大部分UI框架中默认都以矩形表示
1、RadioButton表示单个圆形单选框,而RadioGroup是可以容纳多个RadioButton的容器 2、每个RadioGroup中的RadioButton同时只能有一个被选中 3、不同的RadioGroup中的RadioButton互不相干,即如果组A中有一个选中了,组B中依然可以有一个被选中 4、大部分场合下,一个RadioGroup中至少有2个RadioButton 5、大部分场合下,一个RadioGroup中的RadioButton默认会有一个被选中,并建议您将它放在RadioGroup中的起始位置
这个布局简单的说,就是所有控件都依次排序,谁也不会覆盖谁。线性布局需要定义一个方向,
横向
(android:orientation="horizontal")
或
纵向
(android:orientation="vertical")。
也就是说,控件要么就并排横向的排列,要么就纵向的笔直排列。
横向
纵向
问题现象
API20是针对Google Wear 手表开发使用的,一些API是不同的,建议将API换成19及以下会比较合适。另外在虚拟机里及真机里是可以运行的。 Android Wear is a wrist watch and you cannot type anything in it so you cannot use EditText on 4.4W. Change the API to 19 or less or change it to 4.4L which can be downloaded from SDK Manager. This is not a bug.
参考地址:https://stackoverflow.com/questions/24451490/exception-raised-during-rendering-java-lang-system-arraycopy. 这个打开比较慢,国内有较快的,只是忘记在哪里,当然这个也比较多,有兴趣的可以搜下O(∩_∩)O~
Android控件系列之RadioButton&RadioGroupAndroid布局详解之二:LinearLayout