N/M
请修改Launcher3/src/com/android/launcher3/Launcher.java的getOrCreateQsbBar()方法,直接return null。
放置到代码最前面才起效
KCM_REMOVE_GOOGLE_SEARCH_BAR = no
import android.os.SystemProperties;//added by kamari remove google search bar at 20160810
public View getOrCreateQsbBar() {
//added by kamari remove google search bar at 20160810
if(SystemProperties.get("ro.remove_google_search_bar").equals("1")){
return null;
}//add end
}
L1:
请修改Launcher3/src/com/android/launcher3/Launcher.java的getQsbBar()方法,直接return null。
L1:
请修改Launcher3/src/com/android/launcher3/Launcher.java的getQsbBar()方法,直接return null。
L0/KK:
1. 请修改Launcher3/res/layout-port/qsb.xml(
L0
)或者Launcher3/res/layout-port/search_bar.xml(
KK
),如下:
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/search_frame"
android:visibility="gone"
>
2. 请修改Launcher3/res/layout-port/launcher.xml,将voice_button_proxy这个view的clickable设置为false,并去掉
onClick="onClickVoiceButton"