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

server2008部署网站网站设计文档

server2008部署网站,网站设计文档,网站建设 服务器主机配置,南昌县建设局网站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.hkea.cn/news/14586080/

相关文章:

  • 百度网站统计wordpress 插件开启
  • 制作介绍的网站模板免费下载上海外贸综合服务平台
  • 文明网站建设方案建设网站的准备工作
  • 深圳家装网站建设多少钱网站开发行业新闻
  • 网站建设 技术方案模板工程监理行业为什么做网站
  • 注册个人网站要钱吗用源码搭建网站
  • 网站建设 福田炫酷的企业网站
  • 佛山免费发布信息的网站官方微信公众号
  • 营销型网站是什么样的打开网站需要用户名密码
  • 旅游网站制作视频百度云wordpress签到系统
  • ipad可以做网站吗dz网站数据备份
  • 北京建设网站制作沈阳哪家公司网站做的好
  • 学设计常用的网站家具网站开发设计任务书与执行方案
  • 重庆的做网站公司网站建设淘宝属于什么类目
  • 企业网站需要什么功能合肥网站建设模板
  • 网站后台管理系统查询温州专业营销网站费用
  • mc做弊端网站建设信息网站
  • 旅游景区网站建设规划虚拟主机空间 配置 网站
  • 企业做网站排名黑龙江做网站的公司有哪些
  • 如何向雅虎提交网站行程卡微信小程序入口
  • 网站设计动图怎么建设西安的电商网站设计
  • 微信小程序建站中国城乡建设部证件查询网站
  • 页面设计排版网站wordpress 菜单管理
  • 网站建设兼职合同订阅号 wordpress
  • 做招聘网站赚钱么莆田专业网站建设公司价格
  • asp.net 4.0网站开发实例教程金融直播室网站建设
  • 网站建设平台协议书模板下载漯河网站建设xknt
  • 网站建设及维护 东营wordpress页面和自定义链接
  • 成都网站建设工资什么叫动漫设计与制作
  • 创意logo设计图片欣赏清远市企业网站seo联系方式