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.
アクティビティが 3 つある場合、画面上の移動を水平方向 (左から右または右から左) にタッチすると、あるアクティビティから別のアクティビティに移動したいと考えています。画面をスライドさせるアクションにアクセスする方法と ?
これを試して:
try { Intent newIntent = new Intent(view.getContext(), NewActivity.class); startActivityForResult(newIntent, 0); overridePendingTransition(android.R.anim.slide_in_left, android.R.anim.slide_out_right); } catch(Exception ex) { }
http://android-developers.blogspot.in/2011/08/horizontal-view-swiping-with-viewpager.html
と
http://blog.velir.com/index.php/2010/11/17/android-snapping-horizontal-scroll/