本文整理汇总了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;未经允许,请勿转载。 |
请发表评论