• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java ArcProgress类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.github.lzyzsd.circleprogress.ArcProgress的典型用法代码示例。如果您正苦于以下问题:Java ArcProgress类的具体用法?Java ArcProgress怎么用?Java ArcProgress使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ArcProgress类属于com.github.lzyzsd.circleprogress包,在下文中一共展示了ArcProgress类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: onCreate

import com.github.lzyzsd.circleprogress.ArcProgress; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.circle_progress_activity_my);
    donutProgress = (DonutProgress) findViewById(R.id.donut_progress);
    circleProgress = (CircleProgress) findViewById(R.id.circle_progress);
    arcProgress = (ArcProgress) findViewById(R.id.arc_progress);

    timer = new Timer();
    timer.schedule(new TimerTask() {
        @Override
        public void run() {
            runOnUiThread(new Runnable() {
                @Override
                public void run() {
                    donutProgress.setProgress(donutProgress.getProgress() + 1);
                    circleProgress.setProgress(circleProgress.getProgress() + 1);
                    arcProgress.setProgress(arcProgress.getProgress() + 1);
                }
            });
        }
    }, 1000, 100);
}
 
开发者ID:cymcsg,项目名称:UltimateAndroid,代码行数:24,代码来源:CircleProgressActivity.java


示例2: onCreateView

import com.github.lzyzsd.circleprogress.ArcProgress; //导入依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
                         Bundle savedInstanceState) {
    View rootView = inflater.inflate(R.layout.fragment_view_pager, container, false);
    final ArcProgress arcProgress = (ArcProgress) rootView.findViewById(R.id.arc_progress);
    arcProgress.setProgress(20);
    ((Button) rootView.findViewById(R.id.button_increase)).setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View view) {
            arcProgress.setProgress(arcProgress.getProgress() + 1);
        }
    });
    return rootView;
}
 
开发者ID:smartbeng,项目名称:PaoMovie,代码行数:15,代码来源:ViewPagerActivity.java


示例3: onCreateView

import com.github.lzyzsd.circleprogress.ArcProgress; //导入依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
                         Bundle savedInstanceState) {
    // Inflate the layout for this fragment
    View view = inflater.inflate(R.layout.fragment_arc_tab, container, false);
    arcProgress1 = (ArcProgress) view.findViewById(R.id.arc_progress1);
    arcProgress2 = (ArcProgress) view.findViewById(R.id.arc_progress2);
    return view;
}
 
开发者ID:smartbeng,项目名称:PaoMovie,代码行数:10,代码来源:ArcTabFragment.java


示例4: initViews

import com.github.lzyzsd.circleprogress.ArcProgress; //导入依赖的package包/类
/**
 *
 */
@Override
public void initViews() {
    initCircleMenuBoom();
    initSettingsBoom();

    _chainArcProgress = (ArcProgress) _act.findViewById(R.id.main_arc_progress);
    _lense = (CircleImageView) _act.findViewById(R.id.lense_middle_image);
    _content = (FrameLayout) _act.findViewById(R.id.xwallet_content_layout);

     _wheelMenuLayout = (WheelMenuLayout) _act.findViewById(R.id.wheelMenu);
    _badgeView = (BadgeView) _act.findViewById(R.id.lense_badgeview);

    CircleLayout mCircleLayout = (CircleLayout) _act.findViewById(R.id.circle_layout_id);
    ImageView mWheelBackgroundMenu = (ImageView) _act.findViewById(R.id.wheelmenu_background_menu);

    if (_wheelMenuLayout != null) {
        _wheelMenuLayout.prepareWheelUIElements(mCircleLayout, mWheelBackgroundMenu);
        _wheelMenuLayout.setWheelChangeListener(new WheelMenuLayout.WheelChangeListener() {
            @Override
            public void onSelectionChange(int selectedPosition) {
                if (_badgeView != null) {

                    int contentIndex = selectedPosition + 1;

                    _act.showMenuSelection(contentIndex);
                    _badgeView.setValue(contentIndex);
                }
            }
        });
    }

    _lense.setOnTouchListener(new View.OnTouchListener() {
        @Override
        public boolean onTouch(View v, MotionEvent event) {
            _bmb.boom();
            return false;
        }
    });
}
 
开发者ID:ehanoc,项目名称:xwallet,代码行数:43,代码来源:MainActivityView.java


示例5: addProgress

import com.github.lzyzsd.circleprogress.ArcProgress; //导入依赖的package包/类
private void addProgress(String value) {
    if ((loading != null) && loading.isShowing()) {
        ArcProgress progress = (ArcProgress) loading.findViewById(R.id.loading_bar);
        ObjectAnimator anim = ObjectAnimator.ofInt(progress, "progress", progress_val.intValue(), progress_val.intValue() + 100/10);
        progress_val = progress_val + 100/10;
        anim.setInterpolator(new DecelerateInterpolator());
        anim.setDuration(200);
        anim.start();
        TextView progtext = (TextView) loading.findViewById(R.id.loading_text);
        progtext.setText(value);
    }
}
 
开发者ID:paolo-optc,项目名称:optc-mobile-db,代码行数:13,代码来源:MainActivity.java


示例6: setProgressInt

import com.github.lzyzsd.circleprogress.ArcProgress; //导入依赖的package包/类
private void setProgressInt(Integer value) {
    if ((loading != null) && loading.isShowing()) {
        ArcProgress progress = (ArcProgress) loading.findViewById(R.id.loading_bar);
        ObjectAnimator anim = ObjectAnimator.ofInt(progress, "progress", progress_val_2, value);
        progress_val_2 = value;
        anim.setInterpolator(new DecelerateInterpolator());
        anim.setDuration(200);
        anim.start();
    }
}
 
开发者ID:paolo-optc,项目名称:optc-mobile-db,代码行数:11,代码来源:MainActivity.java


示例7: onCreateView

import com.github.lzyzsd.circleprogress.ArcProgress; //导入依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
                         Bundle savedInstanceState) {
    // Inflate the layout for this fragment
    View v =  inflater.inflate(R.layout.fragment_db_test_result_status, container, false);

    testingStatusHeader = (TextView)v.findViewById(R.id.testingStatusHeader);
    testDbName = (TextView)v.findViewById(R.id.testDbName);
    testDbNumRecords = (TextView)v.findViewById(R.id.testDbNumRecords);

    arcProgress = (ArcProgress)v.findViewById(R.id.arc_progress);
    memoryUsage = (ArcProgress)v.findViewById(R.id.arc_memory);
    cpuUsage = (ArcProgress)v.findViewById(R.id.arc_cpu);

    insertStatusImg = (ImageView)v.findViewById(R.id.insertStatusImg);
    readStatusImg = (ImageView)v.findViewById(R.id.readStatusImg);
    updateStatusImg = (ImageView)v.findViewById(R.id.updateStatusImg);
    deleteStatusImg = (ImageView)v.findViewById(R.id.deleteStatusImg);

    insertResult = (TextView)v.findViewById(R.id.insertResult);
    readResult = (TextView)v.findViewById(R.id.readResult);
    updateResult = (TextView)v.findViewById(R.id.updateResult);
    deleteResult = (TextView)v.findViewById(R.id.deleteResult);

    if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
        checkMark = getResources().getDrawable(R.drawable.ic_check_green_600_18dp, null);
    }
    else {
        checkMark = getResources().getDrawable(R.drawable.ic_check_green_600_18dp);
    }
    //initialize values
    testDbName.setText(Constants.DB_LIST.get(dbType).getDbName());
    testDbNumRecords.setText(numRecords + " Records");

    arcProgress.setProgress(0);
    memoryUsage.setProgress(0);
    cpuUsage.setProgress(0);



    return v;
}
 
开发者ID:koustuvsinha,项目名称:benchmarker,代码行数:43,代码来源:DbTestResultStatus.java



注:本文中的com.github.lzyzsd.circleprogress.ArcProgress类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java IStatusHandler类代码示例发布时间:2022-05-23
下一篇:
Java CompactionPolicy类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap