Loading res/layout/fragment_clock_settings.xml +35 −12 Original line number Diff line number Diff line Loading @@ -102,14 +102,22 @@ android:orientation="vertical" android:clipChildren="false"> <FrameLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:clipChildren="false"> <HorizontalScrollView android:id="@+id/color_options_scroll_view" android:layout_width="match_parent" android:layout_height="wrap_content" android:clipChildren="false" android:scrollbars="none"> <LinearLayout android:id="@+id/color_options" android:clipToPadding="false" android:clipChildren="false" android:paddingHorizontal="16dp" android:layout_marginBottom="16dp" android:layout_width="wrap_content" Loading @@ -119,6 +127,21 @@ android:showDividers="middle" /> </HorizontalScrollView> <!-- This is just an invisible placeholder put in place so that the parent keeps its height stable as the RecyclerView updates from 0 items to N items. Keeping it stable allows the layout logic to keep the size of the preview container stable as well, which bodes well for setting up the SurfaceView for remote rendering without changing its size after the content is loaded into the RecyclerView. --> <include layout="@layout/clock_color_option" android:layout_width="wrap_content" android:layout_height="wrap_content" android:visibility="invisible" /> </FrameLayout> <SeekBar android:id="@+id/slider" android:layout_width="match_parent" Loading Loading
res/layout/fragment_clock_settings.xml +35 −12 Original line number Diff line number Diff line Loading @@ -102,14 +102,22 @@ android:orientation="vertical" android:clipChildren="false"> <FrameLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:clipChildren="false"> <HorizontalScrollView android:id="@+id/color_options_scroll_view" android:layout_width="match_parent" android:layout_height="wrap_content" android:clipChildren="false" android:scrollbars="none"> <LinearLayout android:id="@+id/color_options" android:clipToPadding="false" android:clipChildren="false" android:paddingHorizontal="16dp" android:layout_marginBottom="16dp" android:layout_width="wrap_content" Loading @@ -119,6 +127,21 @@ android:showDividers="middle" /> </HorizontalScrollView> <!-- This is just an invisible placeholder put in place so that the parent keeps its height stable as the RecyclerView updates from 0 items to N items. Keeping it stable allows the layout logic to keep the size of the preview container stable as well, which bodes well for setting up the SurfaceView for remote rendering without changing its size after the content is loaded into the RecyclerView. --> <include layout="@layout/clock_color_option" android:layout_width="wrap_content" android:layout_height="wrap_content" android:visibility="invisible" /> </FrameLayout> <SeekBar android:id="@+id/slider" android:layout_width="match_parent" Loading