카테고리 없음

[기계적 인조 인간] Android ViewPager, 탭과 조각 사이의 콘텐츠

행복을전해요 2021. 2. 17. 07:12

활동 xml에서 viewpager 위에 진행률 표시 줄을 추가해야합니다.

-------------------

내 솔루션 :

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
        android:layout_width="match_parent"
            android:layout_height="match_parent"
                android:orientation="vertical"
                    tools:context=".MainActivity" >
                    
                        <TextView
                                android:layout_width="wrap_content"
                                        android:layout_height="wrap_content"
                                                android:text="huhu" />
                                                
                                                    <android.support.v4.view.ViewPager
                                                            android:id="@+id/pager"
                                                                    android:layout_width="match_parent"
                                                                            android:layout_height="match_parent" />
                                                                            
                                                                            </LinearLayout>
                                                                            

이제 TextView가 탭과 조각 사이에 표시됩니다.



출처
https://stackoverflow.com/questions/22079810