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>
|
</LinearLayout>
|
||||||
|
|
||||||
</com.android.launcher3.allapps.AllAppsRecyclerViewContainerView>
|
</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>
|
</com.android.launcher3.allapps.AllAppsContainerView>
|
||||||
@@ -31,6 +31,7 @@ import android.view.LayoutInflater;
|
|||||||
import android.view.MotionEvent;
|
import android.view.MotionEvent;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.ViewConfiguration;
|
import android.view.ViewConfiguration;
|
||||||
|
import android.view.ViewGroup;
|
||||||
import android.view.inputmethod.InputMethodManager;
|
import android.view.inputmethod.InputMethodManager;
|
||||||
import android.widget.ImageView;
|
import android.widget.ImageView;
|
||||||
import android.widget.LinearLayout;
|
import android.widget.LinearLayout;
|
||||||
@@ -529,6 +530,12 @@ public class AllAppsContainerView extends BaseContainerView implements DragSourc
|
|||||||
mSearchIcon.setLayoutParams(llp);
|
mSearchIcon.setLayoutParams(llp);
|
||||||
|
|
||||||
lp.height = height;
|
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);
|
mSearchContainer.setLayoutParams(lp);
|
||||||
|
|||||||
Reference in New Issue
Block a user