摘要:
fragment、ListFragment使用ListView及自定义Listview等初始化操作1.先说一下 从官方api中说fragment碎片中使用Listview有专门的 ListView碎片-> ListFragment 而不能继承Fragment官方api相关连接:http://deve... 阅读全文
posted @ 2015-08-27 18:45
星辰之力
阅读(1214)
评论(0)
推荐(0)
摘要:
中// listview点击 ,高度wrap_content改成fill_prarent 阅读全文
posted @ 2015-08-27 16:12
星辰之力
阅读(757)
评论(0)
推荐(0)
摘要:
public class LeftFragment extends Fragment{private ListView listView;@Overridepublic View onCreateView(LayoutInflater inflater, ViewGroup container,Bu... 阅读全文
posted @ 2015-08-27 13:28
星辰之力
阅读(867)
评论(0)
推荐(0)
摘要:
在使用ListFragment时,发现一个奇怪的问题,就是getListView().setOnItemClickListener(new OnItemClickListener...)不起作用。在stackoverflow查了一下,都说是重写一下OnListItemClick函数就 好了。一番研究... 阅读全文
posted @ 2015-08-27 11:35
星辰之力
阅读(942)
评论(0)
推荐(0)
摘要:
如果ListView中的单个Item的view中存在checkbox,button等view,会导致ListView.setOnItemClickListener无效,事件会被子View捕获到,ListView无法捕获处理该事件.解决方法:在checkbox、button对应的view处加andro... 阅读全文
posted @ 2015-08-27 11:13
星辰之力
阅读(452)
评论(0)
推荐(0)
摘要:
package com.wps.android; import java.util.ArrayList;import android.app.Activity;import android.content.Intent;import android.os.Bundle;import android.... 阅读全文
posted @ 2015-08-27 10:47
星辰之力
阅读(419)
评论(0)
推荐(0)
浙公网安备 33010602011771号