Loading res/layout/hotseat.xml +10 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,16 @@ android:theme="@style/HomeScreenElementTheme" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:launcher="http://schemas.android.com/apk/res-auto"> <ImageView android:id="@+id/drag_indicator" android:layout_width="@dimen/hotseat_drag_indicator_height" android:layout_height="@dimen/hotseat_drag_indicator_height" android:src="@drawable/ic_drag_indicator" android:tint="?attr/workspaceTextColor" android:scaleType="centerInside" android:layout_gravity="top|center_horizontal"/> <com.android.launcher3.CellLayout android:id="@+id/layout" android:layout_width="wrap_content" Loading res/values/dimens.xml +1 −0 Original line number Diff line number Diff line Loading @@ -37,6 +37,7 @@ <dimen name="dynamic_grid_hotseat_bottom_padding">2dp</dimen> <dimen name="dynamic_grid_hotseat_size">80dp</dimen> <dimen name="dynamic_grid_hotseat_side_padding">0dp</dimen> <dimen name="hotseat_drag_indicator_height">24dp</dimen> <!-- Hotseat/all-apps scrim --> <dimen name="all_apps_scrim_radius">8dp</dimen> Loading src_ui_overrides/com/android/launcher3/uioverrides/UiFactory.java +4 −1 Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ import android.view.View.AccessibilityDelegate; import com.android.launcher3.Hotseat; import com.android.launcher3.Launcher; import com.android.launcher3.LauncherStateManager.StateHandler; import com.android.launcher3.R; import com.android.launcher3.util.TouchController; public class UiFactory { Loading Loading @@ -49,6 +50,8 @@ public class UiFactory { public static void onTrimMemory(Launcher launcher, int level) { } public static View[] getHotseatExtraContent(Hotseat hotseat) { return new View[0]; return new View[] { hotseat.findViewById(R.id.drag_indicator), }; } } Loading
res/layout/hotseat.xml +10 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,16 @@ android:theme="@style/HomeScreenElementTheme" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:launcher="http://schemas.android.com/apk/res-auto"> <ImageView android:id="@+id/drag_indicator" android:layout_width="@dimen/hotseat_drag_indicator_height" android:layout_height="@dimen/hotseat_drag_indicator_height" android:src="@drawable/ic_drag_indicator" android:tint="?attr/workspaceTextColor" android:scaleType="centerInside" android:layout_gravity="top|center_horizontal"/> <com.android.launcher3.CellLayout android:id="@+id/layout" android:layout_width="wrap_content" Loading
res/values/dimens.xml +1 −0 Original line number Diff line number Diff line Loading @@ -37,6 +37,7 @@ <dimen name="dynamic_grid_hotseat_bottom_padding">2dp</dimen> <dimen name="dynamic_grid_hotseat_size">80dp</dimen> <dimen name="dynamic_grid_hotseat_side_padding">0dp</dimen> <dimen name="hotseat_drag_indicator_height">24dp</dimen> <!-- Hotseat/all-apps scrim --> <dimen name="all_apps_scrim_radius">8dp</dimen> Loading
src_ui_overrides/com/android/launcher3/uioverrides/UiFactory.java +4 −1 Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ import android.view.View.AccessibilityDelegate; import com.android.launcher3.Hotseat; import com.android.launcher3.Launcher; import com.android.launcher3.LauncherStateManager.StateHandler; import com.android.launcher3.R; import com.android.launcher3.util.TouchController; public class UiFactory { Loading Loading @@ -49,6 +50,8 @@ public class UiFactory { public static void onTrimMemory(Launcher launcher, int level) { } public static View[] getHotseatExtraContent(Hotseat hotseat) { return new View[0]; return new View[] { hotseat.findViewById(R.id.drag_indicator), }; } }