知識
不管是網(wǎng)站,軟件還是小程序,都要直接或間接能為您產(chǎn)生價值,我們在追求其視覺表現(xiàn)的同時,更側重于功能的便捷,營銷的便利,運營的高效,讓網(wǎng)站成為營銷工具,讓軟件能切實提升企業(yè)內部管理水平和效率。優(yōu)秀的程序為后期升級提供便捷的支持!
AndroidLauncher3去掉所有應用列表,橫屏時左右兩側的
發(fā)表時間:2020-10-19
發(fā)布人:葵宇科技
瀏覽次數(shù):117
先看一下調劑前后的效不雅圖:
[img]http://img.blog.csdn.net/20150105200142406?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvemhvdW11c2h1aQ==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast
[img]http://img.blog.csdn.net/20150105200158187?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvemhvdW11c2h1aQ==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast
// Layout AllApps AppsCustomizeTabHost host = (AppsCustomizeTabHost) launcher.findViewById(R.id.apps_customize_pane); if (host != null) { // Center the all apps page indicator int pageIndicatorHeight = (int) (pageIndicatorHeightPx * Math.min(1f, (allAppsIconSizePx / DynamicGrid.DEFAULT_ICON_SIZE_PX))); pageIndicator = host.findViewById(R.id.apps_customize_page_indicator); if (pageIndicator != null) { lp = (FrameLayout.LayoutParams) pageIndicator.getLayoutParams(); lp.gravity = Gravity.CENTER_HORIZONTAL | Gravity.BOTTOM; lp.width = LayoutParams.WRAP_CONTENT; lp.height = pageIndicatorHeight; pageIndicator.setLayoutParams(lp); } AppsCustomizePagedView pagedView = (AppsCustomizePagedView) host.findViewById(R.id.apps_customize_pane_content); padding = new Rect(); if (pagedView != null) { // Constrain the dimensions of all apps so that it does not span the full width // TChip ZJ Add START: 去掉落所有應用列表,橫屏時閣下兩側的Margin int paddingLR = (availableWidthPx - (allAppsCellWidthPx * allAppsNumCols)) / (2 * (allAppsNumCols + 1)); int paddingTB = (availableHeightPx - (allAppsCellHeightPx * allAppsNumRows)) / (2 * (allAppsNumRows + 1)); paddingLR = Math.min(paddingLR, (int)((paddingLR + paddingTB) * 0.75f)); paddingTB = Math.min(paddingTB, (int)((paddingLR + paddingTB) * 0.75f)); paddingLR = (int)(paddingLR * 0.75f); paddingTB = (int)(paddingTB * 0.75f); // TChip ZJ Add END // TChip ZJ Minus START: 去掉落所有應用列表,橫屏時閣下兩側的Margin /* int paddingLR = 2; int paddingTB = 2; */ // TChip ZJ Minus END int maxAllAppsWidth = (allAppsNumCols * (allAppsCellWidthPx + 2 * paddingLR)); int gridPaddingLR = (availableWidthPx - maxAllAppsWidth) / 4; // Only adjust the side paddings on landscape phones, or tablets if ((isTablet() || isLandscape) && gridPaddingLR > (allAppsCellWidthPx / 4)) { padding.left = padding.right = gridPaddingLR; } // The icons are centered, so we can't just offset by the page indicator height // because the empty space will actually be pageIndicatorHeight + paddingTB padding.bottom = Math.max(0, pageIndicatorHeight - paddingTB); pagedView.setAllAppsPadding(padding); pagedView.setWidgetsPageIndicatorPadding(pageIndicatorHeight); } }
相關案例查看更多
相關閱讀
- 微分銷
- 云南小程序開發(fā)推薦
- 云南做百度小程序的公司
- 云南做軟件
- 小程序設計
- 昆明網(wǎng)站建設公司
- 網(wǎng)絡公司報價
- 云南電商網(wǎng)站建設
- 微信分銷
- 云南省住房建設廳網(wǎng)站
- 云南網(wǎng)站開發(fā)
- 昆明網(wǎng)絡公司
- 昆明網(wǎng)站開發(fā)
- 網(wǎng)站制作
- 英文網(wǎng)站建設公司
- 昆明小程序公司
- 云南網(wǎng)站建設費用
- Web開發(fā)框架
- 網(wǎng)站收錄
- 云南網(wǎng)站建設開發(fā)
- 國內知名網(wǎng)站建設公司排名
- 小程序模板開發(fā)公司
- 云南建設廳官方網(wǎng)站
- 紅河小程序開發(fā)
- 小程序開發(fā)平臺前十名
- 網(wǎng)站建設
- 云南科技公司
- 網(wǎng)站建設服務公司
- web開發(fā)
- 小程序開發(fā)