<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"/>
这是我的线性布局,我的问题是,去年EDITTEXT没有显示我的观点寻呼机正在采取这么大的空间和隐藏最后的EditText我不知道为什么?
所以在您的自定义ViewPager,特别是在onMeasure或onLayout方法的问题。您可以使用相对布局避免此问题。 –
我已经尝试过,但无法在正确的解决方案中达到 – Ravi