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

承德信息网58上海自动seo

承德信息网58,上海自动seo,品牌衣服商标图案大全,企信查官网15.鸿蒙HarmonyOS App(JAVA)进度条与圆形进度条 progressBar2.setIndeterminate(true);//设置无限模式,运行查看动态效果 //创建并设置无限模式元素 ShapeElement element new ShapeElement(); element.setBounds(0,0,50,50); element.setRgbColor(new RgbColor(255,0,0)); …

15.鸿蒙HarmonyOS App(JAVA)进度条与圆形进度条

progressBar2.setIndeterminate(true);//设置无限模式,运行查看动态效果
//创建并设置无限模式元素
ShapeElement element = new ShapeElement();
element.setBounds(0,0,50,50);
element.setRgbColor(new RgbColor(255,0,0));
progressBar2.setInfiniteModeElement(element);

<?xml version="1.0" encoding="utf-8"?>
<DirectionalLayoutxmlns:ohos="http://schemas.huawei.com/res/ohos"ohos:height="match_parent"ohos:width="match_parent"ohos:alignment="center"ohos:orientation="vertical"><Textohos:id="$+id:text_helloworld"ohos:height="match_content"ohos:width="match_parent"ohos:background_element="$graphic:background_ability_main"ohos:layout_alignment="horizontal_center"ohos:text="$string:mainability_HelloWorld"ohos:text_size="40vp"/><ProgressBarohos:id="$+id:progressbar1"ohos:height="match_content"ohos:width="match_parent"ohos:max="100"ohos:min="0"ohos:step="1"ohos:progress="30"/><ProgressBarohos:id="$+id:progressbar2"ohos:height="match_content"ohos:width="match_parent"ohos:max="100"ohos:min="0"ohos:step="1"ohos:progress="30"ohos:progress_hint_text="提示信息"ohos:progress_hint_text_color="blue"/><ProgressBarohos:id="$+id:progressbar3"ohos:height="match_content"ohos:width="match_parent"ohos:max="100"ohos:min="0"ohos:step="1"ohos:progress="30"ohos:progress_width="10vp"ohos:progress_color="red"ohos:background_instruct_element="green"/><ProgressBarohos:id="$+id:progressbar4"ohos:height="match_content"ohos:width="match_parent"ohos:max="100"ohos:min="0"ohos:step="1"ohos:progress="30"ohos:progress_width="10vp"ohos:progress_color="red"ohos:vice_progress_element="yellow"ohos:background_instruct_element="green"/><ProgressBarohos:id="$+id:progressbar5"ohos:height="match_content"ohos:width="match_parent"ohos:max="100"ohos:min="0"ohos:step="1"ohos:progress="30"ohos:progress_width="10vp"ohos:progress_color="red"ohos:divider_lines_enabled="true"ohos:divider_lines_number="20"ohos:background_instruct_element="green"/><ProgressBarohos:id="$+id:progressbar6"ohos:height="match_content"ohos:width="match_parent"ohos:max="100"ohos:min="0"ohos:step="1"ohos:progress="88"ohos:progress_width="10vp"ohos:progress_color="#FF90F575"ohos:divider_lines_enabled="true"ohos:divider_lines_number="60"ohos:background_instruct_element="green"ohos:layout_alignment="horizontal_center"ohos:progress_hint_text="提示内容"/><RoundProgressBarohos:id="$+id:roundprogressbar7"ohos:height="100vp"ohos:width="100vp"ohos:max="100"ohos:min="0"ohos:step="1"ohos:progress="88"ohos:progress_width="10vp"ohos:progress_color="#FF90F575"ohos:layout_alignment="horizontal_center"ohos:progress_hint_text="圆形进度条"ohos:progress_hint_text_color="blue"/></DirectionalLayout>

MainAbilitySlice.java

package com.example.myapplication.slice;import com.example.myapplication.ResourceTable;
import ohos.aafwk.ability.AbilitySlice;
import ohos.aafwk.content.Intent;
import ohos.agp.colors.RgbColor;
import ohos.agp.components.ProgressBar;
import ohos.agp.components.RoundProgressBar;
import ohos.agp.components.element.ShapeElement;
import ohos.agp.utils.Color;public class MainAbilitySlice extends AbilitySlice {@Overridepublic void onStart(Intent intent) {super.onStart(intent);super.setUIContent(ResourceTable.Layout_ability_main);ProgressBar progressBar = (ProgressBar) findComponentById(ResourceTable.Id_progressbar1);progressBar.setDividerLineColor(Color.BLUE); //设置分割线颜色progressBar.setDividerLineThickness(30); //设置分割线宽度ProgressBar progressBar2 =(ProgressBar) findComponentById(ResourceTable.Id_progressbar2);progressBar2.setIndeterminate(true);//设置无限模式,运行查看动态效果RoundProgressBar roundProgressBar2 = (RoundProgressBar) findComponentById(ResourceTable.Id_roundprogressbar7);roundProgressBar2.setIndeterminate(true);//运行查看动态效果//创建并设置无限模式元素ShapeElement element = new ShapeElement();element.setBounds(0,0,50,50);element.setRgbColor(new RgbColor(255,0,0));progressBar2.setInfiniteModeElement(element);}@Overridepublic void onActive() {super.onActive();}@Overridepublic void onForeground(Intent intent) {super.onForeground(intent);}
}

http://www.15wanjia.com/news/180565.html

相关文章:

  • cod建站平台推销一个产品的方案
  • 商城网站怎么做seo镇江网站建设报价
  • 镇江房产网站建设大学生做兼职的网站有哪些
  • 西安博威建设工程有限公司招聘网站jsp网站建设项目实战总结
  • 瑞安公司做网站wordpress导航读取
  • 新加坡的网站域名国内做seo公司简介
  • 佛山外包网站建设做五金行业的外贸网站
  • 做移动网站快速排名网页制作的软件
  • 做图骂人的图片网站网站留言系统 提交没反应
  • 旅游景区宣传软文四川网站建设seo
  • python做的网站有哪些购买平台有哪些
  • 新服务器做网站佛山网页设计模板
  • 凡客诚品网站特点网站设计电商运营
  • html5 网站自适应做网站一定要买
  • app 网站 区别wordpress只让文章标题
  • 国外购物网站推荐漯河商城网站建设
  • 优惠券网站开发哪家好男装网站模板演示
  • 站长工具app江苏网站建设要多少钱
  • 做网站的的广告词菏泽公司做网站
  • 如何通过c语言来做网站杭州网站优化服务
  • 深圳网站建设怎么亚洲建行网站打不开
  • 网站淘宝客 难做怎么注册地理位置
  • 怎样进网站空间河南做网站公司排名
  • 上海网站建设服务多少钱手机网页设计用什么软件
  • 湘潭学校网站建设 x磐石网络wordpress 开放注册
  • 网站设计的流程简答题搭建网站合同
  • 珠海高端网站制作百度收录的网页数量
  • 天津市网站建设管理办法王野天女
  • 江油移动网站建设网站开发的在淘宝上是什么类目
  • 企业网站建设费用价格佛山网站建设哪个好点