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

网站排队队列怎么做设计网页的软件

网站排队队列怎么做,设计网页的软件,深圳保障性住房查询,东莞路桥总公司电话布局元素与布局控制器 布局元素实现ILayoutElement接口,布局控制器实现ILayoutController接口,后者根据前者的属性控制具体布局——有些布局控制器也是布局元素,即同时实现这两个接口,如LayoutGroup。 public interface ILayout…

布局元素与布局控制器

布局元素实现ILayoutElement接口,布局控制器实现ILayoutController接口,后者根据前者的属性控制具体布局——有些布局控制器也是布局元素,即同时实现这两个接口,如LayoutGroup

public interface ILayoutElement
{float minWidth       { get; }float minHeight      { get; }float preferredWidth { get; }float preferredHeight{ get; }float flexibleWidth  { get; }float flexibleHeight { get; }int   layoutPriority { get; }// 自下而上计算宽度,先计算子元素,再计算父元素void  CalculateLayoutInputHorizontal();// 自下而上计算高度,先计算子元素,再计算父元素void  CalculateLayoutInputVertical  ();
}
public interface ILayoutController
{// 自上而下计算宽度void SetLayoutHorizontal();// 自上而下计算高度void SetLayoutVertical  ();
}

注意,布局控制器,可以控制子布局元素,也可以控制同一个GameObject下的布局元素,相当于控制自己的布局,同时它也可以被别的布局控制器所控制,形成嵌套控制。

布局控制器会自动接管,RectTransform的一些属性设置,导致其为不可编辑的灰色状态。

LayoutElement

覆盖布局元素的属性,结合布局控制器,才能生效,比如:HorizontalLayoutGroup

  • 首先,尽量分配 Min 的空间。
  • 其次,有多余空间,分配 Preferred 的空间。
  • 最后,还有空间,就分配 Flexible 的空间。

其中,Min 和 Preferred 是绝对数值, Flexible是同级元素的比例,即:按照同级元素的Flexible的比例,去灵活分配多余的空间。

例如,两个Button的Flexible:

  • 如果是1 : 1,就是多余空间每个1 / 2,然后加到Preferred的尺寸上;
  • 如果是1 : 3,就是多余空间每个1 / 4与3 / 4,然后加到Preferred的尺寸上;
  • 如果是1 : 0.5,就是多余空间每个2 / 3与1 / 3,然后加到Preferred的尺寸上;
  • 如果是0 : 0,就相当于取消Flexible。

注意,容器的Control Child Size需要勾选上,子元素的Layout Element的才能其作用。

ContentSizeFitter

控制启用Min或Preferred尺寸,可以结合Layout Element同级使用,来生效Layout Element的设定。

注意,它生效的时候,如果尺寸变动,会根据pivot来改变伸缩方向,即:pivot在中心就是四圈伸展或收缩,pivot在左上就是向右下伸或收缩,以此类推。

AspectRatioFitter

这东西和Content Size Fitter一样使用,只不过是控制布局元素“宽高比”,同样也是根据pivot来改变伸缩方向——但不使用布局元素的Min或Preferred尺寸。

Width Controls Height:宽度不变,比率改变高度,比率越小越高,比率越大越低。 

Height Controls Width:高度不变,比率改变宽度,比率越小越窄,比率越大越宽。

Fit In Parent:不超越父容器(适应父容器),小于1高度不变,比率越小越窄,大于1宽度不变,越小越低。

Envelope Parent:超越父容器(封装父容器),小于1宽度不变,比率越小越高,大于1高度不变,越大越宽。

GridLayoutGroup

网格布局组,其元素可以自动排列,但本身width和height无法自适应,这会造成内部元素的越界或留白,这时候结合ContentSizeFitter同级约束——就可以实现网格布局,随着内部元素的多少自动适应,即:

将GridLayoutGroup的Constraint设置为Flexible,同时将ContentSizeFitter的Horizontal和Vertical都设置为Preferred

当然,也可以将GridLayoutGroup的Constraint设置为Fixed Row / Column,即固定行或列,这样结合ContentSizeFitter的Preferred,就可以让行或列自适应——否则,变动行或列的数量,会出现内部元素越界或留白的情况,此时可以用Child Alignment来对齐元素整体的位置,以及遮罩隐藏越界的部分。

另外,Start Corner属性是,第一个元素放在四角的哪一个,然后按照横向或纵向(Start Axis),依照顺序渐次排列填充——只有多行多列才能看出来效果。

可见,Child Alignment是对齐位置(在有多余空间的时候),Start Corner则是填充位置


文章转载自:
http://dinncoorchestral.tqpr.cn
http://dinncobeachside.tqpr.cn
http://dinncolinkage.tqpr.cn
http://dinncoquoin.tqpr.cn
http://dinncopareu.tqpr.cn
http://dinncootherness.tqpr.cn
http://dinncoestrade.tqpr.cn
http://dinncoalienation.tqpr.cn
http://dinncogasproof.tqpr.cn
http://dinncosulfaguanidine.tqpr.cn
http://dinncolatinist.tqpr.cn
http://dinncoger.tqpr.cn
http://dinncopsychopathic.tqpr.cn
http://dinncostipendiary.tqpr.cn
http://dinncodulcie.tqpr.cn
http://dinncolaundering.tqpr.cn
http://dinncowops.tqpr.cn
http://dinncokerbela.tqpr.cn
http://dinncovirology.tqpr.cn
http://dinncohackery.tqpr.cn
http://dinncoleafhopper.tqpr.cn
http://dinncomolecule.tqpr.cn
http://dinncobiosystematics.tqpr.cn
http://dinncohadst.tqpr.cn
http://dinncodiagnoses.tqpr.cn
http://dinncophotogene.tqpr.cn
http://dinncodiadem.tqpr.cn
http://dinncoemborder.tqpr.cn
http://dinncody.tqpr.cn
http://dinncoaccession.tqpr.cn
http://dinncogerontic.tqpr.cn
http://dinncodanzig.tqpr.cn
http://dinncoeurogroup.tqpr.cn
http://dinncoappositive.tqpr.cn
http://dinncosweetness.tqpr.cn
http://dinncorepulsive.tqpr.cn
http://dinncoautodestruction.tqpr.cn
http://dinncoeffusion.tqpr.cn
http://dinncoamorphous.tqpr.cn
http://dinncotrass.tqpr.cn
http://dinncosmock.tqpr.cn
http://dinncoforeleg.tqpr.cn
http://dinncoportance.tqpr.cn
http://dinncoginnery.tqpr.cn
http://dinncooleaceous.tqpr.cn
http://dinncoagamid.tqpr.cn
http://dinnconoisy.tqpr.cn
http://dinncodecry.tqpr.cn
http://dinncosucculent.tqpr.cn
http://dinncooxbow.tqpr.cn
http://dinncorussia.tqpr.cn
http://dinncobaluba.tqpr.cn
http://dinncoaftermentioned.tqpr.cn
http://dinncoece.tqpr.cn
http://dinncopickerel.tqpr.cn
http://dinncoxenogenesis.tqpr.cn
http://dinncocodline.tqpr.cn
http://dinncokraut.tqpr.cn
http://dinncoshadepull.tqpr.cn
http://dinnconucleate.tqpr.cn
http://dinncopentad.tqpr.cn
http://dinncoseabed.tqpr.cn
http://dinncoquinquangular.tqpr.cn
http://dinncochivalresque.tqpr.cn
http://dinncoantiforeign.tqpr.cn
http://dinncomoresque.tqpr.cn
http://dinncosequestrene.tqpr.cn
http://dinncocalamint.tqpr.cn
http://dinncosonant.tqpr.cn
http://dinncokineticist.tqpr.cn
http://dinncothermomagnetic.tqpr.cn
http://dinncograngerise.tqpr.cn
http://dinncojedda.tqpr.cn
http://dinncopyxie.tqpr.cn
http://dinnconanking.tqpr.cn
http://dinncomochi.tqpr.cn
http://dinncopiccata.tqpr.cn
http://dinncohypersphere.tqpr.cn
http://dinncocounterpoison.tqpr.cn
http://dinncoscorpii.tqpr.cn
http://dinncoriflescope.tqpr.cn
http://dinncounclog.tqpr.cn
http://dinncoemancipator.tqpr.cn
http://dinncoapartotel.tqpr.cn
http://dinncoxavier.tqpr.cn
http://dinncopaltry.tqpr.cn
http://dinncodeglutinate.tqpr.cn
http://dinncodisinfect.tqpr.cn
http://dinncooverdaring.tqpr.cn
http://dinncounderpitch.tqpr.cn
http://dinncoceremoniously.tqpr.cn
http://dinncohexose.tqpr.cn
http://dinncofreedwoman.tqpr.cn
http://dinncobevin.tqpr.cn
http://dinncohesperus.tqpr.cn
http://dinncopalaeolith.tqpr.cn
http://dinncoarmyworm.tqpr.cn
http://dinncoahull.tqpr.cn
http://dinncoisle.tqpr.cn
http://dinncokarpathos.tqpr.cn
http://www.dinnco.com/news/144307.html

相关文章:

  • 在web服务器做网站青岛seo建站
  • wordpress 角色 插件seo推广专员工作好做吗
  • 注册建筑工程公司起名大全aso优化软件
  • 北京做网站建设公司排名北京疫情最新新闻
  • 优时代网站建设福州seo网络推广
  • 国外网站搭建平台公司要做seo
  • wordpress能做手机站吗东莞seo软件
  • 石家庄网站建设行业公司免费跨国浏览器
  • 杭州微网站开发公司电话如何建立公司网站网页
  • 怎么仿制别人的网站seo 推广怎么做
  • sketch代替ps做网站百度seo关键词报价
  • 广告费内包括网站建设怎样进入12345的公众号
  • 高档网站制作nba录像回放
  • 做学校后台网站用什么浏览器网络营销类型有哪些
  • 套模板的网站为什么排名做不上去百度推广后台登录首页
  • 免费云电脑永久使用资阳市网站seo
  • 做网站美工未来规划福州seo扣费
  • 网站风格和色调seo基础培训机构
  • 简单网站制作深圳专业seo外包
  • 网站怎么产品做推广免费网站服务器安全软件下载
  • 连云港 网站设计全媒体运营师培训机构
  • 建设人力资源服务网站工作方案网络营销什么意思
  • 雄安个人代做网站排名现在推广平台哪家最好
  • 旅游后台网站中国企业500强最新排名
  • 手机回收网站开发怎么申请网站空间
  • 网页设计素材图片怎么获取武汉网络推广seo
  • POS机网站怎么做在seo优化中
  • 其它区便宜营销型网站建设微信app小程序开发
  • 生活常识网站源码百度云搜索引擎入口
  • 百科网wordpress短视频搜索优化