最赞回答 / Lealhom
好像又成功了。。。看来是刚才哪里出了问题。。。直接给每个item所在的relativelayout配置onclick事件,然后再MainActivity里面写一个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