当前位置: 首页 > news >正文

网站目录结构怎么做网站域名怎么写好

网站目录结构怎么做,网站域名怎么写好,哪里有网站开发公司,开一个建筑公司容易吗1.概述 在12.0 产品定制化开发中 由产品需求Launcher3 页面布局的原因#xff0c;要求Launcher3 需要去掉Hotseat 不显示Hotseat下面几个图标#xff0c;而做满屏app的显示#xff0c;从而达到美观的效果#xff0c;下面就来分析去掉Hotseat从而实现这个功能 2.Launcher3 …1.概述 在12.0 产品定制化开发中 由产品需求Launcher3 页面布局的原因要求Launcher3 需要去掉Hotseat 不显示Hotseat下面几个图标而做满屏app的显示从而达到美观的效果下面就来分析去掉Hotseat从而实现这个功能 2.Launcher3 去掉Hotseat的核心类 packages/apps/Launcher3/res/layout/launcher.xml packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java3.Launcher3 去掉Hotseat的核心功能分析和实现 在Launcher3中主页面就是launcher.xml只布局hotseat布局也在这里面所以隐藏hotseat可以从这里先看launcher.xml的布局。 首先看下launcher.xml的布局 3.1 launcher.xml  hotseat布局 com.android.launcher3.LauncherRootView xmlns:androidhttp://schemas.android.com/apk/res/android xmlns:launcherhttp://schemas.android.com/apk/res-auto android:idid/launcher android:layout_widthmatch_parent android:layout_heightmatch_parent android:fitsSystemWindowstrue com.android.launcher3.dragndrop.DragLayerandroid:idid/drag_layerandroid:layout_widthmatch_parentandroid:layout_heightmatch_parentandroid:clipChildrenfalseandroid:clipToPaddingfalseandroid:importantForAccessibilityno!-- The workspace contains 5 screens of cells --!-- DO NOT CHANGE THE ID --com.android.launcher3.Workspaceandroid:idid/workspaceandroid:layout_widthmatch_parentandroid:layout_heightmatch_parentandroid:layout_gravitycenterandroid:themestyle/HomeScreenElementThemelauncher:pageIndicatorid/page_indicator /include layoutlayout/memoryinfo_ext /!-- DO NOT CHANGE THE ID --includeandroid:idid/hotseatlayoutlayout/hotseat /includeandroid:idid/overview_panellayoutlayout/overview_panelandroid:visibilitygone /!-- Keep these behind the workspace so that they are not visible whenwe go into AllApps --com.sprd.ext.pageindicators.WorkspacePageIndicatorLineandroid:idid/page_indicatorandroid:layout_widthmatch_parentandroid:layout_heightdimen/vertical_drag_handle_sizeandroid:layout_gravitybottomandroid:themestyle/HomeScreenElementTheme /includeandroid:idid/page_indicator_customizelayoutlayout/page_indicator_customize /includeandroid:idid/drop_target_barlayoutlayout/drop_target_bar /includeandroid:idid/scrim_viewlayoutlayout/scrim_view /includeandroid:idid/apps_viewlayoutlayout/all_appsandroid:layout_widthmatch_parentandroid:layout_heightmatch_parent //com.android.launcher3.dragndrop.DragLayer/com.android.launcher3.LauncherRootView从布局中可以看到android:idid/hotseat就是hotseat布局所以隐藏hotseat就是需要设置属性为gone。 includeandroid:idid/hotseatlayoutlayout/hotseatandroid:visibilitygone /3.2 DeviceProfile.java 关于hotseat高度的修改 public DeviceProfile(Context context, InvariantDeviceProfile inv, Point minSize, Point maxSize, int width, int height, boolean isLandscape, boolean isMultiWindowMode) {this.inv inv;this.isLandscape isLandscape;this.isMultiWindowMode isMultiWindowMode;// Determine sizes.widthPx width;heightPx height;if (isLandscape) {availableWidthPx maxSize.x;availableHeightPx minSize.y;} else {availableWidthPx minSize.x;availableHeightPx maxSize.y;}Resources res context.getResources();DisplayMetrics dm res.getDisplayMetrics();// Constants from resourcesisTablet res.getBoolean(R.bool.is_tablet);isLargeTablet res.getBoolean(R.bool.is_large_tablet);isPhone !isTablet !isLargeTablet;aspectRatio ((float) Math.max(widthPx, heightPx)) / Math.min(widthPx, heightPx);boolean isTallDevice Float.compare(aspectRatio, TALL_DEVICE_ASPECT_RATIO_THRESHOLD) 0;// Some more constantstransposeLayoutWithOrientation res.getBoolean(R.bool.hotseat_transpose_layout_with_orientation);context getContext(context, isVerticalBarLayout()? Configuration.ORIENTATION_LANDSCAPE: Configuration.ORIENTATION_PORTRAIT);res context.getResources();edgeMarginPx res.getDimensionPixelSize(R.dimen.dynamic_grid_edge_margin);desiredWorkspaceLeftRightMarginPx isVerticalBarLayout() ? 0 : edgeMarginPx;int cellLayoutPaddingLeftRightMultiplier !isVerticalBarLayout() isTablet? PORTRAIT_TABLET_LEFT_RIGHT_PADDING_MULTIPLIER : 1;int cellLayoutPadding res.getDimensionPixelSize(R.dimen.dynamic_grid_cell_layout_padding);if (isLandscape) {cellLayoutPaddingLeftRightPx 0;cellLayoutBottomPaddingPx cellLayoutPadding;} else {cellLayoutPaddingLeftRightPx cellLayoutPaddingLeftRightMultiplier * cellLayoutPadding;cellLayoutBottomPaddingPx 0;}verticalDragHandleSizePx res.getDimensionPixelSize(R.dimen.vertical_drag_handle_size);verticalDragHandleOverlapWorkspace res.getDimensionPixelSize(R.dimen.vertical_drag_handle_overlap_workspace);IconLabelController ilc LauncherAppMonitor.getInstance(context).getIconLabelController();maxIconLabelLines ilc ! null ?ilc.getIconLabelLine() : IconLabelController.MIN_ICON_LABEL_LINE;iconDrawablePaddingOriginalPx res.getDimensionPixelSize(R.dimen.dynamic_grid_icon_drawable_padding);dropTargetBarSizePx res.getDimensionPixelSize(R.dimen.dynamic_grid_drop_target_size);workspaceSpringLoadedBottomSpace res.getDimensionPixelSize(R.dimen.dynamic_grid_min_spring_loaded_space);workspaceCellPaddingXPx res.getDimensionPixelSize(R.dimen.dynamic_grid_cell_padding_x);hotseatBarTopPaddingPx res.getDimensionPixelSize(R.dimen.dynamic_grid_hotseat_top_padding);hotseatBarBottomPaddingPx (isTallDevice ? 0: res.getDimensionPixelSize(R.dimen.dynamic_grid_hotseat_bottom_non_tall_padding)) res.getDimensionPixelSize(R.dimen.dynamic_grid_hotseat_bottom_padding);hotseatBarSidePaddingEndPx res.getDimensionPixelSize(R.dimen.dynamic_grid_hotseat_side_padding);// Add a bit of space between nav bar and hotseat in vertical bar layout.hotseatBarSidePaddingStartPx isVerticalBarLayout() ? verticalDragHandleSizePx : 0;hotseatBarSizePx ResourceUtils.pxFromDp(inv.iconSize, dm) (isVerticalBarLayout()? (hotseatBarSidePaddingStartPx hotseatBarSidePaddingEndPx): (res.getDimensionPixelSize(R.dimen.dynamic_grid_hotseat_extra_vertical_size) hotseatBarTopPaddingPx hotseatBarBottomPaddingPx));....}在DeviceProile构造函数中的hotseatBarSizePx 就是设置的导航栏高度在这里构建hotseat布局的时候可以通过设置这个高度了布后hotseatBarSizePx就是hotseat的高度 直接设为0即可 修改如下: hotseatBarSizePx 0/*ResourceUtils.pxFromDp(inv.iconSize, dm) (isVerticalBarLayout()? (hotseatBarSidePaddingStartPx hotseatBarSidePaddingEndPx): (res.getDimensionPixelSize(R.dimen.dynamic_grid_hotseat_extra_vertical_size) hotseatBarTopPaddingPx hotseatBarBottomPaddingPx))*/;
http://www.tj-hxxt.cn/news/230665.html

相关文章:

  • 网络营销跟网站推广有啥区别精准客源 获客
  • 怎么做一个盈利网站wordpress新建html5
  • 专业的集团网站开发开发买房子平台
  • 最好的开发网站建设大连公共资源交易平台官网
  • 做心悦腾龙光环的网站是什么湘阴网站建设
  • 怎么建网站赚钱秦皇岛市属于哪个省份
  • 网站代码 上传 wordpress 空间各地农业信息网站的建设
  • 美团招聘网站开发杭州久邦电力建设有限公司网站
  • 广州网站设计与制作公司技术支持 深圳网站建设贝尔利
  • 免费服务器搭建网站详细教程看设计比较好的网站
  • 什么是静态网站网站制作好如何上线
  • 化妆品销售网站开发与设计域名查询中国万网
  • 厦门 网站建设 网站开发 未来网络然后搭建网站
  • 常州模板建站哪家好怎么做58同城网站吗
  • 个人cms网站wordpress怎么上传pdf
  • php网站开发专业是做什么的wordpress打开图片预览代码
  • seo网站的锚文本怎么写网站建设论文答辩题目
  • 教育培训机构有关的网站做网站的外包公司可以进吗
  • 潍坊网站优化排名一个人做网站要多久
  • 深圳网站开发电话网页设计师多少钱一个月
  • 网站开发过程总结电脑打开做的网站总显示404
  • html网站留言板代码网站开发报价人天
  • 深圳网站优化排名公司狠狠做网站改成什么了
  • 微信小店可以做分类网站网站内链代码
  • 免费购物网站源码做网站购买域名
  • 做网站包头货运公司网站源码
  • 烟台网站推广排名中文域名指向同一个网站
  • 广东网站建设企业wordpress阿里巴巴图标
  • 上海住房建设部官方网站京东云免费建wordpress
  • 做网站需要人员wordpress 多条件