Analog timepicker inside scrollView not displaying time chooser <p>So, in portrait mode is displayed correctly, no matter if timePicker is in scrollView or not.</p> <p><a href="https://i.stack.imgur.com/KPYVu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KPYVu.png" alt="enter image description here"></a></p> <p>Landscape mode when is inside scroolView.</p> <p><a href="https://i.stack.imgur.com/c4Tti.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/c4Tti.png" alt="enter image description here"></a></p> <p>Landscape mode when there is no scroolView.</p> <p><a href="https://i.stack.imgur.com/BM3eU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BM3eU.png" alt="enter image description here"></a></p> <p>[Edit] Code:</p> <pre><code>&lt;RelativeLayout 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" tools:context="com.aapps.groupalarmclock.NewAlarmActivity"&gt; &lt;ImageView android:layout_width="match_parent" android:layout_height="match_parent" android:scaleType="centerCrop" android:src="@drawable/background" android:alpha="@dimen/background_transparency" android:layout_centerHorizontal="true" /&gt; &lt;LinearLayout android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="@dimen/toolbar_height" android:layout_alignParentTop="true" android:weightSum="2" android:background="@color/colorToolbar" android:gravity="center_vertical" android:id="@+id/linearLayout"&gt; &lt;RelativeLayout android:layout_width="0dp" android:layout_height="match_parent" android:id="@+id/rl_cancle" android:layout_weight="1" android:background="@drawable/click_effect" android:gravity="center"&gt; &lt;ImageView android:layout_width="@dimen/toolbar_icon_size" android:layout_height="@dimen/toolbar_icon_size" android:id="@+id/iv_cancel" android:src="@drawable/cancel" android:layout_centerVertical="true" android:layout_centerHorizontal="true" android:layout_marginRight="@dimen/cancel_done_right_margin" android:layout_marginEnd="@dimen/cancel_done_right_margin"/&gt; &lt;TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textAppearance="?android:attr/textAppearanceMedium" android:textColor="@color/colorText" android:id="@+id/tv_cancel" android:layout_centerVertical="true" android:layout_toRightOf="@+id/iv_cancel" android:layout_toEndOf="@+id/iv_cancel" /&gt; &lt;/RelativeLayout&gt; &lt;View android:layout_width="1dp" android:layout_height="@dimen/separator_height" android:background="@color/colorLineSeparator" android:id="@+id/v_cancel_done"&gt; &lt;/View&gt; &lt;RelativeLayout android:layout_width="0dp" android:layout_height="match_parent" android:id="@+id/rl_done" android:layout_weight="1" android:background="@drawable/click_effect" android:gravity="center"&gt; &lt;ImageView android:layout_width="@dimen/toolbar_icon_size" android:layout_height="@dimen/toolbar_icon_size" android:id="@+id/iv_done" android:src="@drawable/done" android:layout_centerVertical="true" android:layout_centerHorizontal="true" android:layout_marginRight="@dimen/cancel_done_right_margin" android:layout_marginEnd="@dimen/cancel_done_right_margin"/&gt; &lt;TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textAppearance="?android:attr/textAppearanceMedium" android:textColor="@color/colorText" android:id="@+id/tv_done" android:layout_centerVertical="true" android:layout_toRightOf="@+id/iv_done" android:layout_toEndOf="@+id/iv_done" /&gt; &lt;/RelativeLayout&gt; &lt;/LinearLayout&gt; &lt;ScrollView android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/scrollView" android:layout_below="@+id/linearLayout" android:layout_centerHorizontal="true" android:fillViewport="true"&gt; &lt;RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/lltp"&gt; &lt;TimePicker tools:targetApi="23" android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/timePicker" android:timePickerMode="clock" android:background="#80FFFFFF"/&gt; &lt;/RelativeLayout&gt; &lt;/ScrollView&gt; </code></pre> <p></p> <p>Anyone know what is wrong?</p>