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

单位门户网站是什么怎么在服务器上装WordPress

单位门户网站是什么,怎么在服务器上装WordPress,p2p网站开发 源代码,.net网站开发过程在学习的路上我们不能只是停留在对理论知识的理解#xff0c;还应该将理论和实战进行结合#xff0c;这样才有利于我们能够更有深度的掌握知识#xff0c;最终形成自己的知识体系结构。我们在实战的时候#xff0c;不仅可以巩固我们的理论知识#xff0c;还能够在实战中发…在学习的路上我们不能只是停留在对理论知识的理解还应该将理论和实战进行结合这样才有利于我们能够更有深度的掌握知识最终形成自己的知识体系结构。我们在实战的时候不仅可以巩固我们的理论知识还能够在实战中发现问题并找到合适的解决方案。前面的章节中我们已经学习了六大布局和常用的组件我们在学习布局和组件的时候也有一些小示例。通过这些小示例我们仅仅是对当前的布局和组件的使用有了深刻的认识但UI界面布局中不可能单纯只存在某个组件复杂的UI界面中会出现多种布局、多种组件进行组合。本节我将在HarmonyOS智慧屏上实现常规的计算器。整个计算器是将文本组件和按钮组件组合起来然后放在一个容器中。通过监听按钮的点击事件并更改文本组件的显示内容最终达成计算器(本节示例中遗忘了小数点如果有兴趣的话可以自己尝试的加上小数点)的效果。对于计算器UI界面而言我将其拆解为上下两部分上区域用于显示下区域用于按钮组。在上区域存在两个Text组件分别用于显示数学表达式和按钮对应的数字值。下区域是一些按钮组件数字区域运算符号以及回退和清除。对于整个示例布局我做了简单的拆解和介绍接下来我将以代码的形式实现上面的UI界面。为了使各个布局中的组件能通过不同的占比显示我这里选用DirectionalLayout布局并设置它的权重比来实现组件在不居中的占比。1、整个布局分为上下两个区域因此DirectionalLayout布局的方向为vertical(垂直)。并且分为两个区域上下区域占比为23。xmlns:ohoshttp://schemas.huawei.com/res/ohosohos:heightmatch_parentohos:widthmatch_parentohos:orientationverticalohos:heightmatch_parentohos:widthmatch_parentohos:weight2ohos:orientationverticalohos:heightmatch_parentohos:widthmatch_parentohos:weight3ohos:orientationvertical2、上区域是两个Text组件布局依旧是DirectionalLayout布局两个组件在布局中的权重比为3:4。ohos:heightmatch_parentohos:widthmatch_parentohos:weight2ohos:orientationverticalohos:id$id:show_math_expressionohos:heightmatch_parentohos:widthmatch_parentohos:background_element#FFFFFFohos:weight3ohos:text527-ohos:text_size40fpohos:text_alignmentright | vertical_centerohos:right_padding20vp/ohos:id$id:show_input_valueohos:heightmatch_parentohos:widthmatch_parentohos:background_element#F2F2F2ohos:weight4ohos:text1ohos:text_size60fpohos:text_alignmentright | vertical_centerohos:right_padding20vp/3、下区域为按钮组区域分为三部分除了等号之外的按钮都是在各自布局中的占比为1。ohos:heightmatch_parentohos:widthmatch_parentohos:weight3ohos:orientationverticalohos:heightmatch_parentohos:widthmatch_parentohos:weight1ohos:background_element#FFFF00ohos:orientationhorizontalohos:heightmatch_parentohos:widthmatch_parentohos:weight1ohos:text_size50fpohos:background_element$graphic:background_button_styleohos:text_alignmentcenterohos:text_color#455A64ohos:text_weight700ohos:text7/ohos:heightmatch_parentohos:widthmatch_parentohos:weight1ohos:text_size50fpohos:background_element$graphic:background_button_styleohos:text_alignmentcenterohos:text_color#455A64ohos:text_weight700ohos:text8/ohos:heightmatch_parentohos:widthmatch_parentohos:weight1ohos:text_size50fpohos:background_element$graphic:background_button_styleohos:text_alignmentcenterohos:text_color#455A64ohos:text_weight700ohos:text9/ohos:heightmatch_parentohos:widthmatch_parentohos:weight1ohos:text_size50fpohos:background_element$graphic:background_button_styleohos:text_alignmentcenterohos:text/ohos:heightmatch_parentohos:widthmatch_parentohos:weight1ohos:text_size50fpohos:background_element$graphic:background_button_styleohos:text_alignmentcenterohos:text-/ohos:heightmatch_parentohos:widthmatch_parentohos:weight1ohos:background_element$graphic:background_button_styleohos:text_alignmentcenterohos:image_src$media:delete/ohos:heightmatch_parentohos:widthmatch_parentohos:weight1ohos:background_element#FF00FFohos:orientationhorizontalohos:heightmatch_parentohos:widthmatch_parentohos:weight1ohos:text_size50fpohos:background_element$graphic:background_button_styleohos:text_alignmentcenterohos:text_color#455A64ohos:text_weight700ohos:text4/ohos:heightmatch_parentohos:widthmatch_parentohos:weight1ohos:text_size50fpohos:background_element$graphic:background_button_styleohos:text_alignmentcenterohos:text_color#455A64ohos:text_weight700ohos:text5/ohos:heightmatch_parentohos:widthmatch_parentohos:weight1ohos:text_size50fpohos:background_element$graphic:background_button_styleohos:text_alignmentcenterohos:text_color#455A64ohos:text_weight700ohos:text6/ohos:heightmatch_parentohos:widthmatch_parentohos:weight1ohos:text_size50fpohos:background_element$graphic:background_button_styleohos:text_alignmentcenterohos:text*/ohos:heightmatch_parentohos:widthmatch_parentohos:weight1ohos:text_size50fpohos:background_element$graphic:background_button_styleohos:text_alignmentcenterohos:text//ohos:heightmatch_parentohos:widthmatch_parentohos:weight1ohos:text_size50fpohos:background_element$graphic:background_button_styleohos:text_alignmentcenterohos:textC/ohos:heightmatch_parentohos:widthmatch_parentohos:weight1ohos:background_element#00FFFFohos:orientationhorizontalohos:heightmatch_parentohos:widthmatch_parentohos:weight1ohos:text_size50fpohos:background_element$graphic:background_button_styleohos:text_alignmentcenterohos:text_color#455A64ohos:text_weight700ohos:text1/ohos:heightmatch_parentohos:widthmatch_parentohos:weight1ohos:text_size50fpohos:background_element$graphic:background_button_styleohos:text_alignmentcenterohos:text_color#455A64ohos:text_weight700ohos:text2/ohos:heightmatch_parentohos:widthmatch_parentohos:weight1ohos:text_size50fpohos:background_element$graphic:background_button_styleohos:text_alignmentcenterohos:text_color#455A64ohos:text_weight700ohos:text3/ohos:heightmatch_parentohos:widthmatch_parentohos:weight1ohos:text_size50fpohos:background_element$graphic:background_button_styleohos:text_alignmentcenterohos:text_color#455A64ohos:text_weight700ohos:text0/ohos:heightmatch_parentohos:widthmatch_parentohos:weight2ohos:text_size50fpohos:background_element$graphic:background_button_styleohos:text_alignmentcenterohos:text/4、预览UI布局界面5、UI界面布局组件完成后接下来我将实现具体的操作业务这里仅罗列部分详情请查阅代码。1)首先对组件进绑定//显示表达式private Text showMathExp  null;//显示录入private Text showInputValue  null;//数字按钮7private Button btnServe  null;// ...//回退按钮private Image btnBack  null;Overridepublicvoid onStart(Intent intent) {super.onStart(intent);super.setUIContent(ResourceTable.Layout_ability_main);showMathExp  (Text) findComponentById(ResourceTable.Id_show_math_expression);showInputValue  (Text) findComponentById(ResourceTable.Id_show_input_value);//按钮btnServe  (Button) findComponentById(ResourceTable.Id_btn_seven);// ...//回退btnBack  (Image) findComponentById(ResourceTable.Id_btn_back);}2)按钮的监听事件//点击按钮7的操作btnServe.setClickedListener(l - {//TODO 现有表达式显示区是否有内容//更改表达式显示区内容//showMathExp.setText();//更改录入数字显示区内容showInputValue.setText(7);});对于表达式显示区、具体运算等业务逻辑可以直接查看代码此处不做详细赘述。我的HarmonyOS GitHub库©著作权归作者和HarmonyOS技术社区共同所有如需转载请注明出处否则将追究法律责任【编辑推荐】【责任编辑jianghua TEL(010)68476606】点赞 0
http://wiki.neutronadmin.com/news/415980/

相关文章:

  • 天宁网站建设网页推广平台
  • 四川教育公共信息服务平台仿牌网站优化
  • 百度权重2的网站网站怎么做扫码微信支付
  • 建设网站后需要什么知识wordpress 上传到七牛
  • 永兴网站制作wordpress自带字体
  • 怎么做网络推广网站佛山外贸网站建设报价
  • 石家庄企业如何建网站宝安网站制作培训
  • 企业型网站建设制作平台高级搜索入口
  • 查看网站信息图标怎么做午夜资源站
  • 中国建设工程造价管理系统网站简单好看的网页设计代码
  • 推广网站优化怎么做龙岗菠菜网站建设
  • 建设施工合同网站上海市工程建设标准化信息网站
  • 网站建设栏目这一块怎么写wordpress和t
  • 网站续费如何做分录软件详细设计文档
  • dede网站底部服饰的网站建设
  • 如何建设一个电影网站男生学平面设计好就业吗
  • 网站视差怎么做网站开发中如何制作登录页面
  • wordpress网站发布四川省住房城乡建设厅网站
  • 网站建设福州公司电商摄影
  • 义乌多语言网站建设域名注册成功了然后怎么做
  • 西安网站排名分析国内家居行业网站开发
  • wordpress 媒体库角色权限专业放心关键词优化参考价格
  • 公司网站的备案号是如何链接的网站域名过期未续费怎么办
  • 旅游网站制作素材沧浪网站建设
  • 企业网站建设课件wordpress付费下载主题
  • 网站备案网站前置审批县文化馆网站建设方案
  • 西宁网站制作公司360商场内部
  • iis 新建网站没有文件夹权限深圳福田搬家公司
  • 做静态网站工资多少杭州微网站建设公司哪家好
  • 纸做的花朵成品网站做购物商城网站