须要注意的是SwipeRefreshLayout以下仅仅能够有一个直接子节点。 布局文件例如以下。 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.
分类:
移动开发 时间:
2016-03-14 12:16:48
阅读次数:
168
WebView可以使得网页轻松的内嵌到app里,还可以直接跟js相互调用。 webview有两个方法:setWebChromeClient 和 setWebClient setWebClient:主要处理解析,渲染网页等浏览器做的事情 setWebChromeClient:辅助WebView处理Ja
分类:
移动开发 时间:
2016-03-12 21:22:06
阅读次数:
368
ProgressBar是进度条,是比较常用的控件。它有一个抽象的子类——AbsSeekBar,AbsSeekBar有两个比较常用子类,SeekBar、RatingBar。 1、ProgressBar,继承自View ProgressBar是进度条,它的style属性用于设置进度条的呈现方式:水平进度
分类:
移动开发 时间:
2016-03-12 00:07:22
阅读次数:
218
AdapterView这一类控件的最大特点,在绝大多数的情况下,它们的数据都由Adapter的子类提供(有时可以在控件的entries属性上直接设置显示的数据)。 调用AdapterView的setAdapter(Adapter)将控件与数据关联。 一、概述 AdapterView是一个抽象类,她继
分类:
移动开发 时间:
2016-03-10 00:06:32
阅读次数:
259
控件:RadioButton CheckedBox RatingBar ProgressBar 下拉列表:ListView Spinner 1 <!-- 单选按钮必须放在单选按钮组当中才能生效 ,并且需要为每一个控件指定id 2 (html:<input name="sex"/>男 <input n
分类:
移动开发 时间:
2016-03-07 22:25:03
阅读次数:
264
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:
分类:
移动开发 时间:
2016-02-29 16:36:22
阅读次数:
146
控件属性:
android属性
Android功能强大,界面华丽,但是众多的布局属性就害苦了开发者,下面这篇文章结合了网上不少资料,
第一类:属性值为true或false
android:layout_centerHrizontal 水平居中
android:layout_centerVertical 垂直居中
android:layout_centerInparent 相...
分类:
移动开发 时间:
2016-02-19 12:42:15
阅读次数:
254
ListView是一个经常要用到的android控件,现总结遇到过的一些美化的小细节。 1、listview在拖动的时候背景图片消失变成黑色背景,等到拖动完毕我们自己的背景图片才显示出来 这个问题是我遇到的 有两种可能性 listview缓冲时背景是黑色 也有可能是 我选择的主题是黑色 解决:在XM
分类:
其他好文 时间:
2016-02-14 00:31:42
阅读次数:
379
1.Android控件之TextView探究2.Android控件之EditView探究3.Android控件之CheckBox、RadioButton探究4.Android控件之ImageView探究5.Android控件之GridView探究6.Android控件之ListView探究一7.An...
分类:
移动开发 时间:
2016-01-19 19:11:45
阅读次数:
188
前言:edittext的addTextChangedListener监听事件用于监听edittext的输入文本的变化,他都用于密码框,或者那种检测用户输入过程中的变化。1.使用方式①为edittext添加监听器1 mEtPassword = (EditText) findViewById(R.id....
分类:
移动开发 时间:
2016-01-17 11:01:21
阅读次数:
284