Launcher3 icon indicating copy to clipboard operation
Launcher3 copied to clipboard

Please add an option to disable search bar.

Open MaYuandong opened this issue 6 years ago • 28 comments

for none google users.

MaYuandong avatar Dec 31 '18 11:12 MaYuandong

+1 from me.

karlitos avatar Jan 02 '19 06:01 karlitos

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

    <!--<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

    + hotseatBarTopPaddingPx /*+ hotseatBarBottomPaddingPx*/;
    /*- hotseatBarBottomPaddingPx*/);
    /*hotseatBarBottomPaddingPx +*/ mInsets.bottom + cellLayoutBottomPaddingPx);
    /*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

    // 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

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

Yonezpt avatar Jan 05 '19 16:01 Yonezpt

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

Thank you

ll0r3nt3 avatar Jan 10 '19 02:01 ll0r3nt3

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

ngdinhtoan avatar Jan 10 '19 02:01 ngdinhtoan

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

Carbon-Zero avatar Jan 11 '19 07:01 Carbon-Zero

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

@ngdinhtoan this is great, thank you! 👍😄

orschiro avatar Feb 24 '19 17:02 orschiro

@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 avatar Sep 02 '19 21:09 Recaust

@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.

Recaust avatar Sep 02 '19 21:09 Recaust

+1

password123123123 avatar Oct 10 '19 08:10 password123123123

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

timea-techgirl avatar Nov 29 '19 10:11 timea-techgirl

@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.

MarkCyberSecDev93 avatar Dec 21 '19 13:12 MarkCyberSecDev93

@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

sudomain avatar Jul 05 '20 19:07 sudomain

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"

ouija avatar Nov 04 '20 01:11 ouija

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?

timea-techgirl avatar Nov 04 '20 14:11 timea-techgirl

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?

Here: immagine

ThoriumTextile avatar May 08 '21 16:05 ThoriumTextile

@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.

It seems like you forgot to add back in the option to blacklist/whitelist apps from the app drawer

ThoriumTextile avatar May 08 '21 16:05 ThoriumTextile

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?

Sorry for the delay, I went to try this out again today on a different device and same issue (won't install); Error via adb: adb: failed to install .\Launcher3_BlackBG_Search_Removed.apk: Failure [INSTALL_PARSE_FAILED_NOT_APK: Failed to parse /data/app/vmdl338845290.tmp/base.apk]

ouija avatar May 16 '21 07:05 ouija

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?

Sorry for the delay, I went to try this out again today on a different device and same issue (won't install); Error via adb: adb: failed to install .\Launcher3_BlackBG_Search_Removed.apk: Failure [INSTALL_PARSE_FAILED_NOT_APK: Failed to parse /data/app/vmdl338845290.tmp/base.apk]

Sorry, my uploaded file was corrupted. I have updated the file in the same post, you can download again. :)

timea-techgirl avatar May 16 '21 09:05 timea-techgirl

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?

Sorry for the delay, I went to try this out again today on a different device and same issue (won't install); Error via adb: adb: failed to install .\Launcher3_BlackBG_Search_Removed.apk: Failure [INSTALL_PARSE_FAILED_NOT_APK: Failed to parse /data/app/vmdl338845290.tmp/base.apk]

Sorry, my uploaded file was corrupted. I have updated the file in the same post, you can download again. :)

It still fails to install with the following error: adb: failed to install /home/user/Downloads/Launcher3_BlackBG_Search_Removed.apk: Failure [INSTALL_PARSE_FAILED_NOT_APK: Failed to parse /data/app/vmdl1927466071.tmp/base.apk]

ThoriumTextile avatar May 30 '21 18:05 ThoriumTextile

@ThoriumTextile You downloaded the older apk. This is the newer one. https://github.com/amirzaidi/Launcher3/files/6489146/Launcher3_BlackBG_Search_Removed.zip

timea-techgirl avatar May 30 '21 18:05 timea-techgirl

@ThoriumTextile You downloaded the older apk. This is the newer one. https://github.com/amirzaidi/Launcher3/files/6489146/Launcher3_BlackBG_Search_Removed.zip

Sorry for the very late reply but this still doesn't install and returns the following error:

Performing Streamed Install
adb: failed to install Downloads/Launcher3_BlackBG_Search_Removed.apk: Failure [INSTALL_FAILED_VERSION_DOWNGRADE]

ThoriumTextile avatar Aug 31 '21 08:08 ThoriumTextile

Sorry for the very late reply but this still doesn't install and returns the following error:

Performing Streamed Install
adb: failed to install Downloads/Launcher3_BlackBG_Search_Removed.apk: Failure [INSTALL_FAILED_VERSION_DOWNGRADE]

Try, adb install -r path-to-apk If it doesn't work, uninstall the previous version first and install this version.

timea-techgirl avatar Aug 31 '21 15:08 timea-techgirl

Sorry for the very late reply but this still doesn't install and returns the following error:

Performing Streamed Install
adb: failed to install Downloads/Launcher3_BlackBG_Search_Removed.apk: Failure [INSTALL_FAILED_VERSION_DOWNGRADE]

Try, adb install -r path-to-apk If it doesn't work, uninstall the previous version first and install this version.

Nope, even with the -r flag it's giving me the same error. BTW this is on a fresh LineageOS install that i never installed Rootless pixel launcher on.

ThoriumTextile avatar Sep 01 '21 20:09 ThoriumTextile

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

Who ever disliked this comment is stupid.

ghost avatar Jan 28 '22 12:01 ghost

[Launcher3/res/layout/hotseat.xml]

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

not avalable in GSI android 12.1 launcher how to edit remove search bar and adjusted padding

navinkhatasana avatar May 07 '22 04:05 navinkhatasana

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

Who ever disliked this comment is stupid.

Good point, actually. Use Lawnchair instead. The constant back-and-forth of arguing here on a practically dead project says a lot about it's author.

ThoriumTextile avatar May 14 '22 16:05 ThoriumTextile

lawnchair is not a free app, plus it's not maintained, so it's not a viable alternative

hydrargyrum avatar Feb 18 '23 12:02 hydrargyrum

lawnchair is not a free app, plus it's not maintained, so it's not a viable alternative

https://github.com/LawnchairLauncher/lawnchair/releases The f-droid release is decadent, however it's still very much alive. You can also use Neo Launcher if you prefer

ThoriumTextile avatar Feb 21 '23 21:02 ThoriumTextile