主显示布局以及代码:activity_main.xml:<RelativeLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"android:layout_height="match_parent"><ListViewandroid:i..
分类:
移动开发 时间:
2014-12-07 06:48:35
阅读次数:
309
activity_main.xml:<RelativeLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"android:layout_height="match_parent"android:paddingBottom="@dimen/activity_vertic..
分类:
移动开发 时间:
2014-12-07 06:48:35
阅读次数:
286
主显示布局以及代码:activity_main.xml:<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"android:layout_height="match_parent"android:orientation="vertic..
分类:
编程语言 时间:
2014-12-07 06:47:07
阅读次数:
182
android:layout_height="wrap_content"android:layout_width="0dip"android:layout_weight="1"/>权重//全局变量的快捷ctr+1提示快捷键alt+/复制快捷键ctrl+alt+↓移动alt+↓发短信(最后要授权permission.SEND_SMS)publicvoidonClick(Viewv){switch(v.getId()){caseR.id.bt..
分类:
其他好文 时间:
2014-12-01 06:40:10
阅读次数:
203
今天给大家带来一个显示gif动态图片的类库,使用方法很简单,只需三步。
1.把GifView.jar加入你的项目。
2.在布局xml中这样写:
<com.ant.liao.GifView android:id="@+id/gif1"
android:layout_height="wrap_content" android:layout_width="wrap_content"
andro...
分类:
移动开发 时间:
2014-11-30 16:56:49
阅读次数:
201
文本再XML里面编辑android:text="@string/xihu"文本在Activlty中编辑获取TextView对象再进行setText(“”)<!--日期--><DatePickerandroid:id="@+id/dp_date"android:layout_height="wrap_content"android:layout_width="wrap_content"/><!--时间--><Tim..
分类:
其他好文 时间:
2014-11-30 00:58:47
阅读次数:
167
实现效果:
在布局中声明spinner
<Spinner
android:id="@+id/sp_kc_term"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:animationCache="t...
分类:
其他好文 时间:
2014-11-27 14:31:48
阅读次数:
256
<?xml?version="1.0"?encoding="utf-8"?>
<LinearLayout?xmlns:android="http://schemas.android.com/apk/res/android"
????android:layout_width="match_parent"
????android:layout_height="40dp"
...
分类:
微信 时间:
2014-11-26 21:03:49
阅读次数:
407
本质是通过复用控件达到性能优化。
1、通过
被复用控件:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:o...
分类:
移动开发 时间:
2014-11-24 15:29:28
阅读次数:
232
Android广播类似QT中的信号和槽~~~界面文件activity_main.xml<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/hello_world"/>
<Button
android:id="@+id/send1"
android:la..
分类:
移动开发 时间:
2014-11-23 16:07:58
阅读次数:
196