私はアンドロイドでこれを達成する必要があります。私はどのように私はアンドロイドでこれを達成することができますか分かりません。私はすでにthisをチェックしていますが、画像とすべてのフルスクリーンスライダーです。私はちょうどフルスクリーンではなく、画面の中央にいくつかのスライドとシンプルなテキストスライダーが必要です。Androidでのページ設定を含むTextViewスライダ
私はすでにiOSアプリであることを行っているが、私はまた、Androidのアプリでそれを行うことができる場合、私は疑問に思って。どうすればいいのか教えてください。チュートリアルやコードスニペットは大きな助けになります。ありがとう
ここまでは私のコードです。 onCreateメソッドで :
//Set the pager with an adapter
ViewPager pager = (ViewPager)findViewById(R.id.pager);
List<Integer> objects = Arrays.asList(Color.BLUE, Color.GREEN, Color.RED);
pager.setAdapter(new ViewPagerCustomAdapter(objects));
//Bind the title indicator to the adapter
ViewPagerWithIndicator viewPagerWithIndicator = (ViewPagerWithIndicator)findViewById(R.id.viewPagerWithIndicator);
viewPagerWithIndicator.setViewPager(pager);
とxml
<com.kassisdion.library.ViewPagerWithIndicator
app:arrow.enable="true"
app:arrow.width="50dip"
app:arrow.height="50dip"
app:left_arrow.drawable="@drawable/ic_action_arrow_left"
app:right_arrow.drawable="@drawable/ic_action_arrow_right"
app:round.enable="true"
app:round.size="15dip"
app:round.drawable="@drawable/background_rounded"
app:round.color.default="@android:color/white"
app:round.color.selected="@android:color/holo_blue_light"
android:id="@+id/viewPagerWithIndicator"
android:layout_width="match_parent"
android:layout_height="wrap_content">
</com.kassisdion.library.ViewPagerWithIndicator>
Googleで検索すると、簡単です。あなたはデモを入手することができます。 –
どのような例外がありますか? –
「タイプViewPagerWithIndicatorはタイプに解決できません」タイプ「ViewPagerCustomAdapterタイプに解決できません」 –