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

Java CircularProgressBar类代码示例

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

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



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

示例1: onCreateView

import com.mikhaellopez.circularprogressbar.CircularProgressBar; //导入依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {
    if (DEBUG) Timber.d("onCreateView");
    mView = inflater.inflate(R.layout.fragment_result_test, parent, false);
    mProgressBar = (CircularProgressBar) mView.findViewById(R.id.progressBar);
    mPercentage = (TextView) mView.findViewById(R.id.percentage);
    mTextSummary = (TextView) mView.findViewById(R.id.textSummary);
    showTextSummary();
    mRightCnt = (TextView) mView.findViewById(R.id.right_cnt);
    int val = getArguments().getInt(RIGHT_CNT_KEY);
    mRightCnt.setText(String.format(getResources().getString(R.string.test_result_correct), val));
    mWrongCnt = (TextView) mView.findViewById(R.id.wrong_cnt);
    val = getArguments().getInt(WRONG_CNT_KEY);
    mWrongCnt.setText(String.format(getResources().getString(R.string.test_result_wrong), val));
    return mView;
}
 
开发者ID:mgolokhov,项目名称:dodroid,代码行数:17,代码来源:OneTestSummaryFragment.java


示例2: onCreateView

import com.mikhaellopez.circularprogressbar.CircularProgressBar; //导入依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
                         Bundle savedInstanceState) {
    View rootView = inflater.inflate(R.layout.fragment_timer, container, false);

    mTimerTextView = (TextView) rootView.findViewById(R.id.v_tv_time_left);
    mTimeInTextView = (TextView) rootView.findViewById(R.id.v_tv_time_in);
    mTimeOutTextView = (TextView) rootView.findViewById(R.id.v_tv_time_out);
    mCircularProgress = (CircularProgressBar) rootView.findViewById(R.id.v_cpb_circular_timer);
    updateCircularProgress(100);
    startCountDownTimer();
    return rootView;
}
 
开发者ID:adityakamble49,项目名称:gofun-app,代码行数:14,代码来源:TimerFragment.java


示例3: CompareViewHolder

import com.mikhaellopez.circularprogressbar.CircularProgressBar; //导入依赖的package包/类
CompareViewHolder(View view){
    super(view);

    mMediaMateria1 = (TextView) view.findViewById(R.id.txt_mediaMateria);
    mMediaMateria2 = (TextView) view.findViewById(R.id.txt_mediaMateria2);
    mTextViewPrimo = (TextView) view.findViewById(R.id.txt_materiaPrimoperiodo);
    mTextViewSecondo = (TextView) view.findViewById(R.id.txt_materiaSecondoperiodo);

    mProgressPrimo = (CircularProgressBar) view.findViewById(R.id.pbar_materiaPrimo);
    mProgressSecondo = (CircularProgressBar) view.findViewById(R.id.pbar_materiaSecondo);
}
 
开发者ID:Marplex,项目名称:Schoolbook,代码行数:12,代码来源:CompareAdapter.java


示例4: materieAdapterHolder

import com.mikhaellopez.circularprogressbar.CircularProgressBar; //导入依赖的package包/类
materieAdapterHolder(View itemView) {
    super(itemView);
    bar = (CircularProgressBar) itemView.findViewById(R.id.pbar_materiaPrimo);
    media = (TextView)itemView.findViewById(R.id.mediaMateria);
    materia = (TextView)itemView.findViewById(R.id.txt_materiaPrimoperiodo);
    card = (CardView)itemView.findViewById(R.id.pbar_materiaSecondo);
}
 
开发者ID:Marplex,项目名称:Schoolbook,代码行数:8,代码来源:MaterieAdapter.java


示例5: tryAgain

import com.mikhaellopez.circularprogressbar.CircularProgressBar; //导入依赖的package包/类
public void tryAgain(View view) {

        if(!Utils.isOnLine(NoInternetActivity.this)) {
            return;
        } else {

            CircularProgressBar circularProgressBar = (CircularProgressBar)findViewById(R.id.progress_bar);
            circularProgressBar.setVisibility(View.VISIBLE);
            int animationDuration = 2000; // 2500ms = 2,5s
            circularProgressBar.setProgressWithAnimation(100, animationDuration);

            checkToken();
        }
    }
 
开发者ID:blessingoraz,项目名称:Akwukwo,代码行数:15,代码来源:NoInternetActivity.java


示例6: VideoProgressTarget

import com.mikhaellopez.circularprogressbar.CircularProgressBar; //导入依赖的package包/类
public VideoProgressTarget(VideoLoadTarget target, CircularProgressBar progress) {
    super(target);
    this.progress = progress;
}
 
开发者ID:zuoweitan,项目名称:Hitalk,代码行数:5,代码来源:VideoProgressTarget.java


示例7: onCreateView

import com.mikhaellopez.circularprogressbar.CircularProgressBar; //导入依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    View view = inflater.inflate(R.layout.fragment_train, container, false);

    application = (BLEPublicTransport) getActivity().getApplication();
    prevStation = (RelativeLayout) view.findViewById(R.id.hjarup);
    currStation = (RelativeLayout) view.findViewById(R.id.lundc);
    currStationIcon = view.findViewById(R.id.lundcIcon);
    nextStationIcon = view.findViewById(R.id.gunnesboIcon);
    sv = (HorizontalScrollView) view.findViewById(R.id.horizontalScrollView);
    timeLeft = (TextView) view.findViewById(R.id.timeLeft);
    timeUntilStatus = (TextView) view.findViewById(R.id.timeUntilText);
    lundcText = (TextView) view.findViewById(R.id.lundcText);
    lundcTime = (TextView) view.findViewById(R.id.lundcTime);
    circularProgressBar = (CircularProgressBar) view.findViewById(R.id.departureCircularProgressBar);
    final GradientDrawable background = (GradientDrawable) nextStationIcon.getBackground();
    background.setColor(Color.WHITE);


    TextView status = (TextView) view.findViewById(R.id.train_ticket_status);
    View statusLine = view.findViewById(R.id.train_ticket_line);
    if(application.hasValidTicket()) {
        status.setText("Show ticket");
        status.setTextColor(getResources().getColor(R.color.colorPrimaryText));
    } else {
        status.setText("Buy ticket");
        statusLine.setVisibility(View.VISIBLE);
    }
    LinearLayout ticketButton = (LinearLayout) view.findViewById(R.id.ticket_button);
    ticketButton.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            MainActivity main = (MainActivity) getActivity();
            if(application.hasValidTicket()){
                main.executeNavigationTo(MainActivity.SHOW_TICKET_FRAGMENT);
            }else{
                main.executeNavigationTo(MainActivity.PAYMENT_FRAGMENT);
            }
        }
    });
    // run when view is visible for the first time
    view.post(new Runnable() {
                       @Override
                       public void run() {
                           Handler handler = new Handler();
                           handler.postDelayed(new Runnable() {
                               public void run() {
                                   scrollToView(sv, prevStation);
                                   if(application.hasValidTicket()) {
                                       circularProgressBar.setProgressWithAnimation(100.0f * timeElapsed / START_TIME, 500); // duration in millis
                                       initTimer();
                                       timeUntilStatus.setText("Arriving at Helsingborg C");
                                   }
                               }
                           }, 200); //time in millis
                       }
                   }
    );

    return view;
}
 
开发者ID:JonathanVidmar,项目名称:BLEPublicTransport,代码行数:62,代码来源:TrainFragment.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
Java EquivalenceClasser类代码示例发布时间:2022-05-23
下一篇:
Java UpdateRequest类代码示例发布时间: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