<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"
android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity">
<EditText
android:layout_marginTop="5dp"
android:layout_width="match_parent"
android:layout_height="45dp"
android:background="@drawable/location_edittext"
android:id="@+id/locationEditext"
android:textSize="15sp"
android:textColor="#999"
android:paddingLeft="15dp"
android:text="Galli No 1, U Block, DLF Phase 3, Sector 24"
android:hint="Galli No 1, U Block, DLF Phase 3, Sector 24" />
<com.example.ravi_gupta.slider.ViewPagerCustomDuration
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/viewPager"
android:scrollbarStyle="outsideOverlay">
</com.example.ravi_gupta.slider.ViewPagerCustomDuration>
<EditText
android:layout_below="@+id/viewPager"
android:layout_marginTop="5dp"
android:layout_width="match_parent"
android:layout_height="45dp"
android:background="@drawable/location_edittext"
android:id="@+id/locationEditext9"
android:textSize="15sp"
android:textColor="#999"
android:paddingLeft="15dp"
android:text="Galli No 1, U Block, DLF Phase 3, Sector 24"
android:hint="Galli No 1, U Block, DLF Phase 3, Sector 24"/>
Android: EditText не показывает
Это моя линейная планировка, моя проблема заключается в том, что последний EditText не показывается, как мой взгляд пейджер занимает так много места и скрывается последним EditText я не знаю, почему?
Так что проблема в пользовательских ViewPager, особенно в onMeasure или OnLayout методов. Вы можете избежать этой проблемы, используя относительный макет. –
Я пробовал, но не могу достичь правильного решения. – Ravi