[Android Apps and Games] azakosath:
How to get rid of the google search bar

Hi guys,

first of all many thanks to [MENTION=6018897]paphonb[/MENTION] for this cool mod!! As many others here, I don't want to have the google search bar and it would be nice if there was a toggle to hide it. But, since this is not happening, I decided to remove it (hide it more like) myself. So, if you have basic skills with apktool and 3' of your time here is what you have to do:

Decompile the apk and find the file res/values/dimens.xml, open it with a text editor and change the values of the lines 36 and 167-177 to 0.0dip

<dimen name="dynamic_grid_hotseat_bottom_padding">50.0dip</dimen>

<dimen name="qsb_overlap_margin">-50.0dip</dimen>
<dimen name="qsb_button_height">56.0dip</dimen>
<dimen name="qsb_min_width_with_mic">124.0dip</dimen>
<dimen name="qsb_button_elevation">3.0dip</dimen>
<dimen name="qsb_touch_extension">20.0dip</dimen>
<dimen name="qsb_shadow_blur_radius">1.0dip</dimen>
<dimen name="qsb_key_shadow_offset">1.0dip</dimen>
<dimen name="hotseat_qsb_scroll_shadow_blur_radius">1.5dip</dimen>
<dimen name="hotseat_qsb_scroll_key_shadow_offset">2.0dip</dimen>
<dimen name="qsb_shadow_margin">6.0dip</dimen>
<dimen name="qsb_widget_height">56.0dip</dimen>

if you don't use the google app to see the weather or/and you don't need 'At a glance' or the date there or you just want the extra space on your homescreen, you can set the lines 179, 180 to 0.0dip too.

<dimen name="smartspace_title_size">24.0dip</dimen>
<dimen name="smartspace_horizontal_padding">56.0dip</dimen>

Now, if you don't like the pixel blue as accent color, you can change it to whatever color you want in the file res/values/styles.xml, the lines are 9, 60 and 154

EDIT: and line 6 in file res/values-v23/styles.xml or you can just delete them.

<item name="android:colorAccent">#ff4286f5</item>

I changed it to #ff00796b (nougat teal).

Recompile the apk, sign it and you are done.

P.S. I used apktool 2.3.1 and framework-res.apk from LineageOS 14.1 and I got an error while recompiling, so I had to change line 4 in the file res/layout-v22/smartspace_singleline.xml (delete the attributes in red)

from:

<com.google.android.apps.nexuslauncher.graphics.IcuDateTextView android:textSize="@dimen/smartspace_title_size" android:textColor="?workspaceTextColor" android:gravity="center" android:layout_gravity="center" android:id="@id/clock" android:background="@drawable/bg_smartspace" android:paddingLeft="10.0dip" android:paddingRight="10.0dip" android:clickable="true" android:layout_width="wrap_content" android:layout_height="fill_parent" android:maxLines="1" android:layout_weight="1.0"[COLOR="red"][B] android:autoSizeTextType="1" android:autoSizeMinTextSize="14.0dip" android:autoSizeMaxTextSize="@dimen/smartspace_title_size" [/B][/COLOR]launcher:ambientShadowColor="?workspaceAmbientShadowColor" launcher:ambientShadowBlur="3.0dip" launcher:keyShadowColor="?workspaceKeyShadowColor" launcher:keyShadowBlur="2.0dip" launcher:keyShadowOffset="0.5dip" style="@style/TextTitle" />

to:

<com.google.android.apps.nexuslauncher.graphics.IcuDateTextView android:textSize="@dimen/smartspace_title_size" android:textColor="?workspaceTextColor" android:gravity="center" android:layout_gravity="center" android:id="@id/clock" android:background="@drawable/bg_smartspace" android:paddingLeft="10.0dip" android:paddingRight="10.0dip" android:clickable="true" android:layout_width="wrap_content" android:layout_height="fill_parent" android:maxLines="1" android:layout_weight="1.0" launcher:ambientShadowColor="?workspaceAmbientShadowColor" launcher:ambientShadowBlur="3.0dip" launcher:keyShadowColor="?workspaceKeyShadowColor" [COLOR="Red"][/COLOR]launcher:keyShadowBlur="2.0dip" launcher:keyShadowOffset="0.5dip" style="@style/TextTitle" />

EDIT: look in the section about accent color