2

I am facing issue in Date Picker. View is cutting from bottom.

enter image description here

Here is my code -

 <!-- Layout that will hold the content of the Tabs -->
            <ScrollView
            android:layout_width="match_parent"
            android:layout_height="match_parent">

            <FrameLayout
                android:id="@android:id/tabcontent"
                android:layout_width="match_parent"
                android:layout_height="match_parent">

                <!-- Layout for the DatePicker -->
                <LinearLayout
                    android:id="@+id/date_content"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:orientation="vertical">

                    <DatePicker
                        android:id="@+id/date_picker"
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"

                        android:calendarViewShown="false" />

                </LinearLayout>

                <!-- Layout for the TimePicker -->
                <LinearLayout
                    android:id="@+id/time_content"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:orientation="vertical">

                    <TimePicker
                        android:id="@+id/time_picker"
                        android:layout_width="match_parent"
                        android:layout_height="match_parent" />

                </LinearLayout>

            </FrameLayout>

        </ScrollView>

Please help me out.

NOTE : Facing this issue in Lollipop and Marshmallow.

Thanks in advance.

Harshad Pansuriya
  • 20,189
  • 8
  • 67
  • 95
Shoeb Siddique
  • 2,805
  • 1
  • 22
  • 42

0 Answers0