一些問題和困難我已經實現了一個可滾動的標籤+刷卡,一切工作正常。 但是我有與當前PagerTabStrip一些問題:PagerTabStrip
我不能讓當前標題大膽
2.不能選擇默認選項卡我要顯示(如:與位置2)在呈現視圖時,像Google Play應用中的選項卡一樣
3.第一個和最後一個選項卡在左側和右側分別有一個邊距,我可以將其設置爲0dp ?
這是我能爲造型的標籤做:
的Java:
strip = (PagerTabStrip) findViewById(R.id.pager_tab_strip);
strip.setTabIndicatorColorResource(R.color.light_blue);
strip.setDrawFullUnderline(true);
佈局:
<android.support.v4.view.PagerTabStrip
android:id="@+id/pager_tab_strip"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="top"
android:background="@drawable/pagertitle_border_bottom"
android:paddingBottom="15dp"
android:paddingTop="15dp"
android:textColor="@color/light_blue" />
誰能幫助我的3分?謝謝。
沒有ü找到一個解決方案? –
@ CodePond.org:其實不,使用這個小部件。我發現的唯一解決方案是創建自己的傳呼機:標題可滾動視圖和滑動內容視圖監聽器... – Copernic
請考慮我提出的答案。 –