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

Java RoundCornerProgressBar类代码示例

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

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



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

示例1: onCreateView

import com.akexorcist.roundcornerprogressbar.RoundCornerProgressBar; //导入依赖的package包/类
@Override
public void onCreateView(final View view) {

    mProgressBar = (RoundCornerProgressBar) view.findViewById(R.id.progressbar);
    mTitle = (AppCompatTextView) view.findViewById(R.id.title);
    mTotal = (AppCompatTextView) view.findViewById(R.id.total);
    mUsed = (AppCompatTextView) view.findViewById(R.id.used);
    mUsedLabel = (AppCompatTextView) view.findViewById(R.id.used_label);
    mFree = (AppCompatTextView) view.findViewById(R.id.free);
    mFreeLabel = (AppCompatTextView) view.findViewById(R.id.free_label);
    mPercent = (AppCompatTextView) view.findViewById(R.id.percent);

    super.onCreateView(view);
}
 
开发者ID:morogoku,项目名称:MTweaks-KernelAdiutorMOD,代码行数:15,代码来源:ProgressBarView.java


示例2: initializeGUI

import com.akexorcist.roundcornerprogressbar.RoundCornerProgressBar; //导入依赖的package包/类
private void initializeGUI() {
    ;

    lblCaloriesCurrent = (TextView) view.findViewById(R.id.lblCaloriesCurrent);
    lblCaloriesLeft = (TextView) view.findViewById(R.id.lblCaloriesLeft);
    lblCaloriesGoal = (TextView) view.findViewById(R.id.lblCaloriesGoal);

    lblCarbsCurrent = (TextView) view.findViewById(R.id.lblCarbsCurrent);
    lblCarbsLeft = (TextView) view.findViewById(R.id.lblCarbsLeft);
    lblCarbsGoal = (TextView) view.findViewById(R.id.lblCarbsGoal);

    lblProteinCurrent = (TextView) view.findViewById(R.id.lblProteinCurrent);
    lblProteinLeft = (TextView) view.findViewById(R.id.lblProteinLeft);
    lblProteinGoal = (TextView) view.findViewById(R.id.lblProteinGoal);

    lblFatCurrent = (TextView) view.findViewById(R.id.lblFatCurrent);
    lblFatLeft = (TextView) view.findViewById(R.id.lblFatLeft);
    lblFatGoal = (TextView) view.findViewById(R.id.lblFatGoal);

    progressBarCalories = (RoundCornerProgressBar) view.findViewById(R.id.progressBarCalories);
    progressBarCarbs = (RoundCornerProgressBar) view.findViewById(R.id.progressBarCarbs);
    progressBarProtein = (RoundCornerProgressBar) view.findViewById(R.id.progressBarProtein);
    progressBarFat = (RoundCornerProgressBar) view.findViewById(R.id.progressBarFat);

    arrDailyItems = new ArrayList<DailyItem>();
    adapterDailyItems = new AdapterDailyItem(context, arrDailyItems);

    listViewDailyItems = (ListView) view.findViewById(R.id.listviewDailyItems);
    listViewDailyItems.setAdapter(adapterDailyItems);
    listViewDailyItems.setOnItemClickListener(this);

    // Setup enter and exit animation
    mEnterAnimation = new AlphaAnimation(0f, 1f);
    mEnterAnimation.setDuration(600);
    mEnterAnimation.setFillAfter(true);

    mExitAnimation = new AlphaAnimation(1f, 0f);
    mExitAnimation.setDuration(600);
    mExitAnimation.setFillAfter(true);
}
 
开发者ID:Karim94,项目名称:IIFYM,代码行数:41,代码来源:FragmentDay.java


示例3: onCreate

import com.akexorcist.roundcornerprogressbar.RoundCornerProgressBar; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    progressOne = (IconRoundCornerProgressBar) findViewById(R.id.progress_one);
    progressOne.setProgressColor(getResources().getColor(R.color.custom_progress_blue_progress));
    progressOne.setSecondaryProgressColor(getResources().getColor(R.color.custom_progress_blue_progress_half));
    progressOne.setIconBackgroundColor(getResources().getColor(R.color.custom_progress_blue_header));
    progressOne.setProgressBackgroundColor(getResources().getColor(R.color.custom_progress_background));
    updateSecondaryProgressOne();

    tvProgressOne = (TextView) findViewById(R.id.tv_progress_one);
    updateTextProgressOne();

    progressTwo = (RoundCornerProgressBar) findViewById(R.id.progress_two);
    progressTwo.setProgressBackgroundColor(getResources().getColor(R.color.custom_progress_background));
    updateProgressTwoColor();

    tvProgressTwo = (TextView) findViewById(R.id.tv_progress_two);
    updateTextProgressTwo();

    progressThree = (TextRoundCornerProgressBar) findViewById(R.id.progress_three);
    updateTextProgressThree();

    findViewById(R.id.button_progress_one_decrease).setOnClickListener(this);
    findViewById(R.id.button_progress_one_increase).setOnClickListener(this);
    findViewById(R.id.button_progress_two_decrease).setOnClickListener(this);
    findViewById(R.id.button_progress_two_increase).setOnClickListener(this);
    findViewById(R.id.button_progress_three_decrease).setOnClickListener(this);
    findViewById(R.id.button_progress_three_increase).setOnClickListener(this);

}
 
开发者ID:akexorcist,项目名称:Android-RoundCornerProgressBar,代码行数:34,代码来源:MainActivity.java


示例4: asociarElementosVista

import com.akexorcist.roundcornerprogressbar.RoundCornerProgressBar; //导入依赖的package包/类
public void asociarElementosVista(){


        barraProgreso=(RoundCornerProgressBar)findViewById(R.id.progress_two);

        botonBack=(Button)findViewById(R.id.botonBack);
        botonHelp=(Button)findViewById(R.id.botonHelp);


        //CounterView es el texto de puntos que va aumentando
        counterView=(CounterView)findViewById(R.id.counter);

        counterView.setAutoFormat(false);
        counterView.setFormatter(new Formatter() {
            @Override
            public String format(String prefix, String suffix, float value) {
                return prefix + NumberFormat.getNumberInstance(Locale.US).format(value) + suffix;
            }
        });
        counterView.setAutoStart(false);
        counterView.setStartValue(0);
        counterView.setEndValue(0);
        counterView.setIncrement(1f); // the amount the number increments at each time interval
        counterView.setTimeInterval(2); // the time interval (ms) at which the text changes
        counterView.setPrefix("");
        counterView.setSuffix("");
        counterView.start();




    }
 
开发者ID:ButterFlyDevs,项目名称:BrainStudio,代码行数:33,代码来源:Juego1niveln.java


示例5: asociarElementosVista

import com.akexorcist.roundcornerprogressbar.RoundCornerProgressBar; //导入依赖的package包/类
/**
 * M�todo para asociar los elementos creados en las funciones anteriores a elementos visibles en la vista
 * de la aplicaci�n.
 */
public void asociarElementosVista(){


    barraProgreso=(RoundCornerProgressBar)findViewById(R.id.progress_two);

    botonBack=(Button)findViewById(R.id.botonBack);
    botonHelp=(Button)findViewById(R.id.botonHelp);


    //CounterView es el texto de puntos que va aumentando
    counterView=(CounterView)findViewById(R.id.counter);

    counterView.setAutoFormat(false);
    counterView.setFormatter(new Formatter() {
        @Override
        public String format(String prefix, String suffix, float value) {
            return prefix + NumberFormat.getNumberInstance(Locale.US).format(value) + suffix;
        }
    });
    counterView.setAutoStart(false);
    counterView.setStartValue(0);
    counterView.setEndValue(0);
    counterView.setIncrement(1f); // the amount the number increments at each time interval
    counterView.setTimeInterval(2); // the time interval (ms) at which the text changes
    counterView.setPrefix("");
    counterView.setSuffix("");
    counterView.start();
}
 
开发者ID:ButterFlyDevs,项目名称:BrainStudio,代码行数:33,代码来源:Juego2niveln.java


示例6: onCreate

import com.akexorcist.roundcornerprogressbar.RoundCornerProgressBar; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_eliminame);


    progressTwo = (RoundCornerProgressBar) findViewById(R.id.progress_two);
    progressTwo.setBackgroundColor(Color.TRANSPARENT);

    /*
    chart=(LineChartView)findViewById(R.id.chart);

    List<PointValue> values = new ArrayList<PointValue>();
    values.add(new PointValue(0, 2));
    values.add(new PointValue(1, 4));
    values.add(new PointValue(2, 3));
    values.add(new PointValue(3, 4));

    //In most cased you can call data model methods in builder-pattern-like manner.
    Line line = new Line(values).setColor(Color.BLUE).setCubic(true);
    List<Line> lines = new ArrayList<Line>();
    lines.add(line);

    LineChartData data = new LineChartData();
    data.setLines(lines);

    chart.setLineChartData(data);
    */








    updateProgressTwo();
    handler = new Handler();
    r = new Runnable(){

        int currV = 0;
        boolean go = true;

        public void run(){

            /*
            if(currV == 60 && go)
                go = false;
            else if(currV == -60 && !go)
                go = true;

            if(go)
                currV++;
            else
                currV--;
            */
            if(currV<46)
                currV++;



            updateProgressTwo();
            //  meter2.setValues(currV, currV*2, currV*3);

            handler.postDelayed(this, 300);

        }
    };

}
 
开发者ID:ButterFlyDevs,项目名称:BrainStudio,代码行数:71,代码来源:eliminame.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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