最贊回答 / Lealhom
好像又成功了。。??磥硎莿偛拍睦锍隽藛栴}。。。直接給每個(gè)item所在的relativelayout配置onclick事件,然后再M(fèi)ainActivity里面寫一個(gè)click方法即可。?<RelativeLayout??????????? android:onClick="click1"??????????? android:layout_width="fill_parent"??????????? android:layout_height="wrap_content" >public voi...
2015-06-13
最新回答 / 0791cerL
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"? ? xmlns:ling="http://schemas.android.com/apk/res/com.ling.sportandmusic"? ? android:layout_width="match_parent"? ? android:layout_height="match_parent"? ? android:orientation="ve...
2015-06-13
最新回答 / 蔡頭2015
public void toggleMenu(){ if(open){ this.smoothScrollTo((int) (screenWidth-right), 0); open=false; }else{ this.smoothScrollTo(0, 0); open=true; } }
2015-06-08