Android開発におけるViewPagerとFragmentの活用
ViewPagerの実装
ViewPagerを使用して複数のビューをスライド表示する機能を実装します。
レイアウトファイルの作成
layout1.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:backgroun ...
6月5日 18:28 投稿