Launcher3: Please add an option to disable search bar.

Created on 31 Dec 2018  路  17Comments  路  Source: amirzaidi/Launcher3

for none google users.

Most helpful comment

You must understand the goal of this project is to stay as true as possible to the original launcher, so there will never be an option to remove the search bar unless Google adds it in its own Pixel launcher.

What you can do is tweak the project a little by yourself and get rid of the home screen search bar - which I assume is the only place you want it removed.

If that is the case then clone the project, open it in the Android Studio and make the following changes:

(Note: You can comment or remove the relevant code, there is no difference whatsoever)

Comment this line https://github.com/amirzaidi/Launcher3/blob/23203324e3e8ef2bc5ab7f2dedacbebc9672da2d/res/layout/hotseat.xml#L26

Like this

xml <!--<include layout="@layout/search_container_hotseat" />-->

Comment the usages of the variable hotseatBarBottomPaddingPx in the following locations

https://github.com/amirzaidi/Launcher3/blob/23203324e3e8ef2bc5ab7f2dedacbebc9672da2d/src/com/android/launcher3/DeviceProfile.java#L234

https://github.com/amirzaidi/Launcher3/blob/23203324e3e8ef2bc5ab7f2dedacbebc9672da2d/src/com/android/launcher3/DeviceProfile.java#L542

https://github.com/amirzaidi/Launcher3/blob/23203324e3e8ef2bc5ab7f2dedacbebc9672da2d/src/com/android/launcher3/DeviceProfile.java#L684

https://github.com/amirzaidi/Launcher3/blob/23203324e3e8ef2bc5ab7f2dedacbebc9672da2d/src/com/android/launcher3/DeviceProfile.java#L695

Like this

java + hotseatBarTopPaddingPx /*+ hotseatBarBottomPaddingPx*/;

java /*- hotseatBarBottomPaddingPx*/);

java /*hotseatBarBottomPaddingPx +*/ mInsets.bottom + cellLayoutBottomPaddingPx);

java /*hotseatBarBottomPaddingPx +*/ mInsets.bottom + cellLayoutBottomPaddingPx);

Connect your device to your computer and run the app through the Android Studio.

If you did everything correctly your launcher should look like this:

ss1

If you want a bit less height for the hot seat icons you can do so by commenting the following lines:

https://github.com/amirzaidi/Launcher3/blob/23203324e3e8ef2bc5ab7f2dedacbebc9672da2d/src/com/android/launcher3/DeviceProfile.java#L264-L265

Like this

java // int extraSpace = getCellSize().y - iconSizePx - iconDrawablePaddingPx; // hotseatBarSizePx += extraSpace - pageIndicatorSizePx;

Which will cause the following height reduction:

ss2

To prevent the page indicator (white arrow) from peeking at the top behind the status bar when the app drawer is open (if it is happening to you, otherwise this is unnecessary), change this line:

https://github.com/amirzaidi/Launcher3/blob/23203324e3e8ef2bc5ab7f2dedacbebc9672da2d/src/com/android/launcher3/allapps/AllAppsCaretController.java#L84

Into this

java if (mLauncher.useVerticalBarLayout()) { animateCaretToProgress(CaretDrawable.PROGRESS_CARET_POINTING_DOWN); }

All 17 comments

+1 from me.

You must understand the goal of this project is to stay as true as possible to the original launcher, so there will never be an option to remove the search bar unless Google adds it in its own Pixel launcher.

What you can do is tweak the project a little by yourself and get rid of the home screen search bar - which I assume is the only place you want it removed.

If that is the case then clone the project, open it in the Android Studio and make the following changes:

(Note: You can comment or remove the relevant code, there is no difference whatsoever)

Comment this line https://github.com/amirzaidi/Launcher3/blob/23203324e3e8ef2bc5ab7f2dedacbebc9672da2d/res/layout/hotseat.xml#L26

Like this

xml <!--<include layout="@layout/search_container_hotseat" />-->

Comment the usages of the variable hotseatBarBottomPaddingPx in the following locations

https://github.com/amirzaidi/Launcher3/blob/23203324e3e8ef2bc5ab7f2dedacbebc9672da2d/src/com/android/launcher3/DeviceProfile.java#L234

https://github.com/amirzaidi/Launcher3/blob/23203324e3e8ef2bc5ab7f2dedacbebc9672da2d/src/com/android/launcher3/DeviceProfile.java#L542

https://github.com/amirzaidi/Launcher3/blob/23203324e3e8ef2bc5ab7f2dedacbebc9672da2d/src/com/android/launcher3/DeviceProfile.java#L684

https://github.com/amirzaidi/Launcher3/blob/23203324e3e8ef2bc5ab7f2dedacbebc9672da2d/src/com/android/launcher3/DeviceProfile.java#L695

Like this

java + hotseatBarTopPaddingPx /*+ hotseatBarBottomPaddingPx*/;

java /*- hotseatBarBottomPaddingPx*/);

java /*hotseatBarBottomPaddingPx +*/ mInsets.bottom + cellLayoutBottomPaddingPx);

java /*hotseatBarBottomPaddingPx +*/ mInsets.bottom + cellLayoutBottomPaddingPx);

Connect your device to your computer and run the app through the Android Studio.

If you did everything correctly your launcher should look like this:

ss1

If you want a bit less height for the hot seat icons you can do so by commenting the following lines:

https://github.com/amirzaidi/Launcher3/blob/23203324e3e8ef2bc5ab7f2dedacbebc9672da2d/src/com/android/launcher3/DeviceProfile.java#L264-L265

Like this

java // int extraSpace = getCellSize().y - iconSizePx - iconDrawablePaddingPx; // hotseatBarSizePx += extraSpace - pageIndicatorSizePx;

Which will cause the following height reduction:

ss2

To prevent the page indicator (white arrow) from peeking at the top behind the status bar when the app drawer is open (if it is happening to you, otherwise this is unnecessary), change this line:

https://github.com/amirzaidi/Launcher3/blob/23203324e3e8ef2bc5ab7f2dedacbebc9672da2d/src/com/android/launcher3/allapps/AllAppsCaretController.java#L84

Into this

java if (mLauncher.useVerticalBarLayout()) { animateCaretToProgress(CaretDrawable.PROGRESS_CARET_POINTING_DOWN); }

someone can upload the "go" version without the search bar (following the instructions of @Yonezpt

Thank you

@ll0r3nt3 I have made one for you, you can download here.

It's a stupid request. If you don't want it to be like the Pixel launcher, use a different launcher.

@ll0r3nt3 I have made one for you, you can download here.

@ngdinhtoan this is great, thank you! 馃憤馃槃

@ll0r3nt3 I have made one for you, you can download here.
Can you also please make the normal version? because the go version doesn't have full widget support. Thanks!

@ll0r3nt3 I have made one for you, you can download here.

Can you also please make the normal version? because the go version doesn't have full widget support. Thanks!

I have a custom aosp build here.

@Recaust Do you have any idea how to change the background to dark in the original Launcher3 apk? I'm using an old device. This is my only problem. Rootless Launcher takes 100 MB of RAM while my original Launcher3 takes just 40 MB. If I just could change the white background, I'd appreciate it. Would you be able to do it if I sent my apk or if you could tell me which value to change. Thanks!

@Recaust Do you have any idea how to change the background to dark in the original Launcher3 apk? I'm using an old device. This is my only problem. Rootless Launcher takes 100 MB of RAM while my original Launcher3 takes just 40 MB. If I just could change the white background, I'd appreciate it. Would you be able to do it if I sent my apk or if you could tell me which value to change. Thanks!

Sorry i do not. I followed the information from @Yonezpt above to make my build.

@Yonezpt Do you know how to remove the white background? :)

+1

For anyone who needs it, original Launcher3 with transparent background and search bar removed.
Launcher3_BlackBG_Search_Removed.zip

@ll0r3nt3 I have made one for you, you can download here.

Can you also please make the normal version? because the go version doesn't have full widget support. Thanks!

I have a custom aosp build here.

Can you make Google search bar in the dock into a different widget like for example DuckDuckGo or etc? Thnx. Also apk link for it. Sorry for the interruption and late reply.

@amirzaidi I understand this is your project and that your vision for this project is to stay as close to AOSP as possible. I appreciate the efforts of you and the community members to accommodate requests like this. I'd personally like an official release on F-Droid that has this change and it seems there are two ways to accomplish this:

  1. Request an alternate release of the same app with a different version name on F-Droid
  2. A fork of this project

I'm not familiar enough with F-Droid procedures to know if #1 is even possible. A fork would also allow you to forward people that are requesting new features to the fork, considering the README states:

Bug reports go above all else, and almost every feature request will be denied

Are you opposed to me creating a new project that'll use Launcher3 as an upstream? If you're not opposed, can you please point me to a branch or commit that is the source of your Launcher3_BlackBG_Search_Removed.zip apk that is linked to here

For anyone who needs it, original Launcher3 with transparent background and search bar removed.
Launcher3_BlackBG_Search_Removed.zip

This doesn't install -> _"There was an problem parsing this package"_

For anyone who needs it, original Launcher3 with transparent background and search bar removed.
Launcher3_BlackBG_Search_Removed.zip

This doesn't install -> _"There was an problem parsing this package"_

Can you install via ADB with "adb install file.apk" and tell me what error you get?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  8Comments

Ayushtwentysix picture Ayushtwentysix  路  7Comments

Pinzauti picture Pinzauti  路  7Comments

benzeyf picture benzeyf  路  4Comments

vishnudevk picture vishnudevk  路  9Comments