Merge "Only show collapse handle when the bottom widgets picker is scrollable" into sc-dev
This commit is contained in:
@@ -15,10 +15,12 @@
|
||||
-->
|
||||
<merge xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<View
|
||||
android:id="@+id/collapse_handle"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="2dp"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:visibility="gone"
|
||||
android:background="?android:attr/textColorSecondary"/>
|
||||
<TextView
|
||||
style="@style/TextHeadline"
|
||||
|
||||
@@ -118,6 +118,7 @@ public class WidgetsBottomSheet extends BaseWidgetSheet implements Insettable {
|
||||
ViewGroup.LayoutParams layoutParams = widgetsTableScrollView.getLayoutParams();
|
||||
layoutParams.height = mMaxTableHeight;
|
||||
widgetsTableScrollView.setLayoutParams(layoutParams);
|
||||
findViewById(R.id.collapse_handle).setVisibility(VISIBLE);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user