码迷,mamicode.com
首页 >  
搜索关键字:fragment listview    ( 8498个结果
Android学习路线(二十二)运用Fragment构建动态UI——构建一个灵活的UI
When designing your application to support a wide range of screen sizes, you can reuse your fragments in different layout configurations to optimize the user experience based on the available screen space. For example, on a handset device it might be appr...
分类:移动开发   时间:2014-08-15 01:33:26    阅读次数:344
Android学习路线(二十三)运用Fragment构建动态UI——Fragment间通讯
In order to reuse the Fragment UI components, you should build each as a completely self-contained, modular component that defines its own layout and behavior. Once you have defined these reusable Fragments, you can associate them with an Activity and conn...
分类:移动开发   时间:2014-08-15 01:33:16    阅读次数:333
理解用setTag 和 Viewholder 来优化listView
在说 setTag 和getTag之前,我们先说下 Viewholder,它不是Android 开发固定的API,而是谷歌Demo中推荐的设计方法。Viewholder对象它一般包括listview子项里所有的组件,convertView是空的,在Viewholder里存储对列表子项每个组件的id应用,通过setTag方法,把这个带有view引用的对象附加在View上,如此,当listView...
分类:其他好文   时间:2014-08-15 00:09:16    阅读次数:300
Android学习路线(二十)运用Fragment构建动态UI
要在Android系统上创建一个动态或者多面板的用户界面,你需要将UI组件以及activity行为封装成模块,让它能够在你的activity中灵活地切换显示与隐藏。你可以使用Fragment类来创建这些模块,它们能够表现得有些像嵌套的activity,它们定义着自己的布局,管理自己的生命周期。...
分类:移动开发   时间:2014-08-15 00:00:20    阅读次数:357
实现Android 动态加载APK(Fragment or Activity实现)
介绍了如何通过Fragment和Activity两种方式实现动态加载APK,从而可以减小应用程序的体积...
分类:移动开发   时间:2014-08-15 00:00:06    阅读次数:330
Android学习路线(二十一)运用Fragment构建动态UI——创建一个Fragment
你可以把fragment看成是activity的模块化部分,它拥有自己的生命周期,接受它自己的输入事件,你可以在activity运行时添加或者删除它(有点像是一个“子activity”,你可以在不同的activity中重用它)。本课将向你展示如何使用Support Libaray继承 Fragment 类来让你的应用能够兼容正在运行Android 1.6的设备。...
分类:移动开发   时间:2014-08-14 23:55:06    阅读次数:301
ListView属性整理
stackFromBottom属性,这只该属性之后你做好的列表就会显示你列表的最下面,值为true和falseandroid:stackFromBottom="true"第二是transciptMode属性,需要用ListView或者其它显示大量Items的控件实时跟踪或者查看信息,并且希望最新的条...
分类:其他好文   时间:2014-08-14 23:46:36    阅读次数:311
安卓实战
实战01.修改软件图标实战02.模拟器无法启动怎么解决实战03.点击按钮实现左右切换屏幕实战04.ViewPager实现左右滑动实战05.ListView下拉刷新实战06.服务器端的编写 -PHP数组 -Mysql -PHP中的json
分类:移动开发   时间:2014-08-14 23:26:36    阅读次数:229
Android设置ListView分隔线边距
Use 'inset'.....(list_divider.xml) and in your list view add like this...you can set the inset value as desired...via:http://stackoverflow.com...
分类:移动开发   时间:2014-08-14 23:06:16    阅读次数:231
android ScrollView 嵌套 ListView 不让listView滑动
1、重写listview的onMeasure()/** * 解决listview高度显示不正确 */ public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { int expandSpec = MeasureSpe...
分类:移动开发   时间:2014-08-14 20:26:09    阅读次数:188
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!