
安卓入门
我爱阿狸
这个作者很懒,什么都没留下…
展开
-
安卓入门1:监听按钮点击事件的3种方式
布局文件 //Demo1\app\src\main\res\layout\activity_main.xml<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_wid...原创 2018-06-08 11:16:25 · 656 阅读 · 0 评论 -
安卓入门2:AutoCompleteTextView与MultiAutoCompleteTextView
AutoCompleteTextView功能:动态匹配输入的内容 android:completionThreshold=”3” 设置输入3个字符时开始自动匹配 MultiAutoCompleteTextView功能:动态匹配输入的内容,支持选择多个值,分别用分隔符分开 //MarqueeTextView\app\src\main\res\layout\activity_main.x...原创 2018-06-08 14:42:40 · 323 阅读 · 0 评论 -
安卓入门3:toggleButton
ToggleButton有两种状态:选中和未选中,可以为不同的状态设置不同的文本 android:checked=”false” 设置按钮未选中 android:textOff=”暗” 未选中状态显示的文字 android:textOn=”亮” 选中状态显示的文字<LinearLayout xmlns:android="http://schemas.andro...原创 2018-06-08 15:33:57 · 586 阅读 · 0 评论 -
安卓入门4:CheckBox
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"&gt; &lt;CheckBox原创 2018-06-08 16:07:26 · 155 阅读 · 0 评论 -
安卓入门5:RadioGroup与RadioButton
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <RadioGroup android...原创 2018-06-08 16:27:04 · 188 阅读 · 0 评论