标签:list 知识 als sha bar this item listener his
1 ======================================按下水波纹效果 2 <?xml version="1.0" encoding="utf-8"?> 3 <!--波纹效果背景--> 4 <!--android:color="@color/dark_brown" 按下时的效果--> 5 <ripple xmlns:android="http://schemas.android.com/apk/res/android" 6 android:color="?attr/colorPrimary"> 7 8 <!--正常显示的颜色--> 9 <item> 10 <shape> 11 <!--背景颜色--> 12 <solid android:color="@color/white"/> 13 </shape> 14 </item> 15 </ripple> 16 =========================Toolbar和侧滑视图结合====================== 17 toolbar = findView(R.id.toolbar_id); 18 drawerLayout = (DrawerLayout) findViewById(R.id.drawer_id); 19 ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(this,drawerLayout,toolbar,R.string.kai,R.string.guan){ 20 //在菜单关闭的时候执行 21 @Override 22 public void onDrawerClosed(View drawerView) { 23 if(itemdianji){ 24 sowHort(); 25 itemdianji = false; 26 } 27 } 28 }; 29 drawerLayout.setDrawerListener(toggle);
标签:list 知识 als sha bar this item listener his
原文地址:http://www.cnblogs.com/langfei8818/p/6129063.html