问题现状:Android ListView getView()方法重复调用导致position错位解决办法:把ListView布局文件的layout_height属性改为fill_parent或者match_parent. 一下是原作者的解释:(转自:http://blog.csdn.net/...
分类:
移动开发 时间:
2015-07-09 21:11:12
阅读次数:
188
循环广告位也是一种非常常见的组件,网上有各种各样的实现,那天看了singwhatiwanna的一种实现,非常简单,然后结合之前见过的一种,稍微整理了一下。
先看下使用方式:
<com.xjs.demo.view.BannerView
android:id="@+id/bannerView"
android:layout_width="match_parent"
android:layou...
分类:
移动开发 时间:
2015-07-09 09:44:28
阅读次数:
158
Android - match_parent 和 fill_parent差异本文地址:http://blog.csdn.net/caroline_wendymatch_parent 和 fill_parent的使用方法同样,事实上是全然一样的.API版本号不同,推荐使用match_parent(AP...
分类:
移动开发 时间:
2015-07-08 12:22:14
阅读次数:
121
<?xml?version="1.0"?encoding="utf-8"?>
<RelativeLayout?xmlns:android="http://schemas.android.com/apk/res/android"
????android:layout_width="match_parent"
????android:layout_height="wrap...
分类:
其他好文 时间:
2015-07-06 18:16:48
阅读次数:
209
fill_parent&match_parent:在Android2.2及以上版本中,fill_parent与match_parent意思相同(其中fill_parent兼容低版本)。都是尽可能多的占用框架内的空间。wrap_content:在保证框内容不丢失的情况下,尽可能少的占用空间。示例1上面...
分类:
其他好文 时间:
2015-07-05 10:54:38
阅读次数:
100
写UI布局:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"...
分类:
移动开发 时间:
2015-07-05 01:00:23
阅读次数:
329
1. layout xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_...
分类:
其他好文 时间:
2015-07-04 19:49:02
阅读次数:
292
1. main layout:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layou...
分类:
其他好文 时间:
2015-07-04 16:45:14
阅读次数:
150
使用scrollview后,alignParentBottom不起效,布局不能完全拉伸,match_parent无效 设置scrollView的fillViewPort属性为true Romain Guy write a little info about a ScrollView attribut...
分类:
移动开发 时间:
2015-07-03 13:43:40
阅读次数:
130
一丶一个简单的访问服务器(访问网易新闻客户端)点击加载新闻:首页的布局文件<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..
分类:
其他好文 时间:
2015-07-02 01:16:49
阅读次数:
146