
基本控件使用
濯君
求知,内敛,有趣,勤静
展开
-
RadioButton和CheckBox
原文RadioButton和CheckBox的区别:1、单个RadioButton在选中后,通过点击无法变为未选中 单个CheckBox在选中后,通过点击可以变为未选中2、一组RadioButton,只能同时选中一个 一组CheckBox,能同时选中多个3、RadioButton在大部分UI框架中默认都以圆形表示 Check转载 2016-10-23 16:32:20 · 361 阅读 · 0 评论 -
WebView的基本设置
一://设置打开的网页在webview里显示而不是调用手机浏览器显示 wv.setWebViewClient(new WebViewClient()); //若不设置为true,则webview无法加载图片 WebSettings webSettings = wv.getSettings(); webSettings.setJav原创 2016-10-20 19:36:51 · 388 阅读 · 0 评论 -
DrawerLayout的基本使用(Google官方例子)
一:MainActivitypackage com.example.kirito.myapplication.testdrawlayout;import android.app.Activity;import android.app.Fragment;import android.app.SearchManager;import android.content.Intent;import a原创 2016-12-17 17:17:58 · 915 阅读 · 0 评论 -
EditText Cursor(游标)放置问题
一:默认情况,当EditText高度比较大的时候,Cursor会放在中间位置,如下: 二:要想把Cursor放在编辑的横线的左边,如下设置 android:gravity=”bottom|left”<EditText android:id="@+id/edt" android:gravity="bottom|left" android:layout原创 2017-01-16 15:45:44 · 1382 阅读 · 0 评论 -
android时间对话框TimePickerDialog介绍
目前网上流行着很多对“时间对话框TimePickerDialog”的讲解文章,但感觉都不是很详细。所以浣熊在这里详细对该方面的知识进行介绍,旨在帮助初学者能够快速掌握该项技术。 首先要做的是声明一个日历类的对象: private Calendar c; 然后对其进行实例化: c = Calendar.getInstance();转载 2017-02-15 15:44:07 · 2560 阅读 · 0 评论