Loading res/layout/live_preview_widget_cell.xml +4 −2 Original line number Diff line number Diff line Loading @@ -15,8 +15,10 @@ --> <com.android.launcher3.dragndrop.LivePreviewWidgetCell xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_width="0dp" android:layout_height="wrap_content" android:paddingHorizontal="@dimen/widget_cell_horizontal_padding" android:paddingVertical="@dimen/widget_cell_vertical_padding" android:layout_weight="1" android:orientation="vertical" android:focusable="true" Loading res/layout/widget_cell.xml +3 −1 Original line number Diff line number Diff line Loading @@ -15,8 +15,10 @@ --> <com.android.launcher3.widget.WidgetCell xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_width="0dp" android:layout_height="wrap_content" android:paddingHorizontal="@dimen/widget_cell_horizontal_padding" android:paddingVertical="@dimen/widget_cell_vertical_padding" android:layout_weight="1" android:orientation="vertical" android:focusable="true" Loading res/layout/widget_cell_content.xml +28 −38 Original line number Diff line number Diff line Loading @@ -17,24 +17,23 @@ android:layout_width="wrap_content" android:layout_height="wrap_content"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingTop="@dimen/widget_preview_label_vertical_padding" android:paddingBottom="@dimen/widget_preview_label_vertical_padding" android:paddingLeft="@dimen/widget_preview_label_horizontal_padding" android:paddingRight="@dimen/widget_preview_label_horizontal_padding" android:orientation="horizontal"> <!-- The image of the widget. This view does not support padding. Any placement adjustment should be done using margins. --> <com.android.launcher3.widget.WidgetImageView android:id="@+id/widget_preview" android:layout_width="wrap_content" android:layout_height="0dp" android:layout_weight="1" android:layout_marginVertical="8dp" /> <!-- The name of the widget. --> <TextView android:id="@+id/widget_name" android:layout_width="0dp" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" android:ellipsize="end" android:fadingEdge="horizontal" android:gravity="start" android:gravity="center_horizontal" android:singleLine="true" android:maxLines="1" android:textColor="?android:attr/textColorSecondary" Loading @@ -44,20 +43,11 @@ style. --> <TextView android:id="@+id/widget_dims" android:layout_width="wrap_content" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginStart="5dp" android:layout_marginLeft="5dp" android:gravity="center_horizontal" android:textColor="?android:attr/textColorSecondary" android:textSize="14sp" android:alpha="0.8" /> </LinearLayout> <!-- The image of the widget. This view does not support padding. Any placement adjustment should be done using margins. --> <com.android.launcher3.widget.WidgetImageView android:id="@+id/widget_preview" android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1" /> </merge> No newline at end of file res/layout/widgets_bottom_sheet.xml +11 −6 Original line number Diff line number Diff line Loading @@ -44,11 +44,16 @@ android:textSize="14sp" android:text="@string/long_press_widget_to_add"/> <include layout="@layout/widgets_scroll_container" android:id="@+id/widgets" android:layout_width="wrap_content" <ScrollView android:id="@+id/widgets_table_scroll_view" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="45dp" android:layout_marginBottom="40dp"/> android:layout_marginBottom="40dp"> <include layout="@layout/widgets_table_container" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" /> </ScrollView> </com.android.launcher3.widget.WidgetsBottomSheet> No newline at end of file res/layout/widgets_table_container.xml +1 −0 Original line number Diff line number Diff line Loading @@ -18,4 +18,5 @@ android:id="@+id/widgets_table" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginHorizontal="8dp" android:background="?android:attr/colorPrimaryDark" /> Loading
res/layout/live_preview_widget_cell.xml +4 −2 Original line number Diff line number Diff line Loading @@ -15,8 +15,10 @@ --> <com.android.launcher3.dragndrop.LivePreviewWidgetCell xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_width="0dp" android:layout_height="wrap_content" android:paddingHorizontal="@dimen/widget_cell_horizontal_padding" android:paddingVertical="@dimen/widget_cell_vertical_padding" android:layout_weight="1" android:orientation="vertical" android:focusable="true" Loading
res/layout/widget_cell.xml +3 −1 Original line number Diff line number Diff line Loading @@ -15,8 +15,10 @@ --> <com.android.launcher3.widget.WidgetCell xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_width="0dp" android:layout_height="wrap_content" android:paddingHorizontal="@dimen/widget_cell_horizontal_padding" android:paddingVertical="@dimen/widget_cell_vertical_padding" android:layout_weight="1" android:orientation="vertical" android:focusable="true" Loading
res/layout/widget_cell_content.xml +28 −38 Original line number Diff line number Diff line Loading @@ -17,24 +17,23 @@ android:layout_width="wrap_content" android:layout_height="wrap_content"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingTop="@dimen/widget_preview_label_vertical_padding" android:paddingBottom="@dimen/widget_preview_label_vertical_padding" android:paddingLeft="@dimen/widget_preview_label_horizontal_padding" android:paddingRight="@dimen/widget_preview_label_horizontal_padding" android:orientation="horizontal"> <!-- The image of the widget. This view does not support padding. Any placement adjustment should be done using margins. --> <com.android.launcher3.widget.WidgetImageView android:id="@+id/widget_preview" android:layout_width="wrap_content" android:layout_height="0dp" android:layout_weight="1" android:layout_marginVertical="8dp" /> <!-- The name of the widget. --> <TextView android:id="@+id/widget_name" android:layout_width="0dp" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" android:ellipsize="end" android:fadingEdge="horizontal" android:gravity="start" android:gravity="center_horizontal" android:singleLine="true" android:maxLines="1" android:textColor="?android:attr/textColorSecondary" Loading @@ -44,20 +43,11 @@ style. --> <TextView android:id="@+id/widget_dims" android:layout_width="wrap_content" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginStart="5dp" android:layout_marginLeft="5dp" android:gravity="center_horizontal" android:textColor="?android:attr/textColorSecondary" android:textSize="14sp" android:alpha="0.8" /> </LinearLayout> <!-- The image of the widget. This view does not support padding. Any placement adjustment should be done using margins. --> <com.android.launcher3.widget.WidgetImageView android:id="@+id/widget_preview" android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1" /> </merge> No newline at end of file
res/layout/widgets_bottom_sheet.xml +11 −6 Original line number Diff line number Diff line Loading @@ -44,11 +44,16 @@ android:textSize="14sp" android:text="@string/long_press_widget_to_add"/> <include layout="@layout/widgets_scroll_container" android:id="@+id/widgets" android:layout_width="wrap_content" <ScrollView android:id="@+id/widgets_table_scroll_view" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="45dp" android:layout_marginBottom="40dp"/> android:layout_marginBottom="40dp"> <include layout="@layout/widgets_table_container" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" /> </ScrollView> </com.android.launcher3.widget.WidgetsBottomSheet> No newline at end of file
res/layout/widgets_table_container.xml +1 −0 Original line number Diff line number Diff line Loading @@ -18,4 +18,5 @@ android:id="@+id/widgets_table" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginHorizontal="8dp" android:background="?android:attr/colorPrimaryDark" />