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.
の状態を削除したいのフラグメントを追加しているfragment.iのアクティビティでオーバーライドしている の状態を削除したい.viewpager fragmentActivityviewpageronBackPressedfragmentfragment
fragment
viewpager
fragmentActivity
onBackPressed
フラグメント内で話しているバックスタックを操作する方法を簡単に説明している次の記事を参照できます。
バックスタックからフラグメントを削除する
onBackPressed()この種のコンポーネントは、Android アクティビティ内の機能をオーバーライドすることで実現できます。
onBackPressed()