最贊回答 / 不是離騷的騷
有的,float scale = l * 1.0f / menuWidth;//1~0 menu.setTranslationX(menuWidth * scale );menu為上面綁定的左側(cè)的菜單,設(shè)置他寬度的那個這樣就可以不用兼容3.0一下的版本了
2015-06-27
最贊回答 / 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