2017-06-14 48 views
1

How to add custom view in android's JellyBean Launcher 根據以上所述在上面的鏈接,我已經將左頁添加到現有的android AOSP launcher3代碼,它看起來像截圖。如何從Aosp launcher3的左頁刪除Qbs容器

但始終在第一個屏幕中搜索容器(Qbs容器),我如何在第一個屏幕中刪除並將其放置在主屏幕中。 enter image description here

+1

我也嘗試添加左滑動式屏幕launcher3,能夠添加屏幕,但是該屏幕不允許向左或向右刷卡。你有沒有遇到這個問題? – Vivz

回答

1

從第一屏幕刪除搜索容器,

FrameLayout gBar = (FrameLayout) findViewById(R.id.g_bar); 
gBar.setVisibility(View.INVISIBLE);