最新回答 / qq_杂草葰_0
<ViewFlipper android:id="@+id/flipper" android:layout_height="match_parent" android:layout_width="match_parent" > <view android:id="@+id/view1" android:layout_width="wrap_content" ...
2016-03-15
最赞回答 / soputasmile
你这个肯定报错啊,你不能在new datalist之前就使用它, simpleAdapter = new SimpleAdapter(this,getdata(),R.layout.item,new String[]{"pic","text"},new int[]{R.id.pic,R.id.text}); datalist = new ArrayList<Map<String,Object>>();这两句换个位置
2016-03-09
最新回答 / enviable
* button控件在fragment中 fragment在main2中 * 所以在调用main2的MainActivity2中可以直接找到button * 可是不能以相同的方法来定义调用TextView * Cannot refer to the non-final local variable textview defined in an enclosing scope 不能引用非最终的局部变量在外部作用域中定义的方法 * 解决:在...
2016-03-05
最新回答 / 柯文
ArrayAdpter的第二个参数表示,在整个适配器中每一项该配什么子布局,item是他自定义的子布局,不需要些多项,数据有多少项ArrayAdapter就有多长,item就有多少个。
2016-02-28