Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
理想的には、ナビゲーション ドロワーからいくつかのアイテムが押されたら閉じる必要がありますが、自動的には行われません。どうやってするの ?ありがとう!
とった!
private DrawerLayout mDrawerLayout; mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout); mDrawerLayout.closeDrawers();
完全に正常に動作しています。
私にとってこれはうまくいきました-
mDrawerLayout.closeDrawer(Gravity.START, false);