mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 17:36:49 +00:00
Merge "Set the all apps nav bar to black. b/29998559" into ub-launcher3-calgary
This commit is contained in:
committed by
Android (Google) Code Review
commit
968eeebadc
@@ -99,4 +99,13 @@
|
||||
</LinearLayout>
|
||||
|
||||
</com.android.launcher3.allapps.AllAppsRecyclerViewContainerView>
|
||||
<View
|
||||
android:id="@+id/nav_bar_bg"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_gravity="bottom"
|
||||
android:background="@android:color/black"
|
||||
android:elevation="16dp"
|
||||
android:focusable="false"
|
||||
android:visibility="invisible" />
|
||||
</com.android.launcher3.allapps.AllAppsContainerView>
|
||||
@@ -31,6 +31,7 @@ import android.view.LayoutInflater;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.View;
|
||||
import android.view.ViewConfiguration;
|
||||
import android.view.ViewGroup;
|
||||
import android.view.inputmethod.InputMethodManager;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.LinearLayout;
|
||||
@@ -529,6 +530,12 @@ public class AllAppsContainerView extends BaseContainerView implements DragSourc
|
||||
mSearchIcon.setLayoutParams(llp);
|
||||
|
||||
lp.height = height;
|
||||
|
||||
View navBarBg = findViewById(R.id.nav_bar_bg);
|
||||
ViewGroup.LayoutParams params = navBarBg.getLayoutParams();
|
||||
params.height = insets.bottom;
|
||||
navBarBg.setLayoutParams(params);
|
||||
navBarBg.setVisibility(View.VISIBLE);
|
||||
}
|
||||
}
|
||||
mSearchContainer.setLayoutParams(lp);
|
||||
|
||||
Reference in New Issue
Block a user