本文整理汇总了Java中com.filippudak.ProgressPieView.ProgressPieView类的典型用法代码示例。如果您正苦于以下问题:Java ProgressPieView类的具体用法?Java ProgressPieView怎么用?Java ProgressPieView使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ProgressPieView类属于com.filippudak.ProgressPieView包,在下文中一共展示了ProgressPieView类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getView
import com.filippudak.ProgressPieView.ProgressPieView; //导入依赖的package包/类
public View getView(final int position, View convertView, final ViewGroup parent) {
ViewHolder holder;
if (convertView == null) {
convertView = mLayoutInflater.inflate(R.layout.project_list_item, null);
holder = new ViewHolder();
holder.mBook = (TextView) convertView.findViewById(R.id.book_text_view);
holder.mLanguage = (TextView) convertView.findViewById(R.id.language_text_view);
holder.mInfo = (ImageButton) convertView.findViewById(R.id.info_button);
holder.mRecord = (ImageButton) convertView.findViewById(R.id.record_button);
holder.mTextLayout = (LinearLayout) convertView.findViewById(R.id.text_layout);
holder.mProgressPie = (ProgressPieView) convertView.findViewById(R.id.progress_pie);
// Link the cached views to the convertView
convertView.setTag(holder);
} else {
holder = (ViewHolder) convertView.getTag();
}
initializeProjectCard(mCtx, mProjectList.get(position), mDb, holder.mLanguage, holder.mBook, holder.mInfo, holder.mRecord, holder.mTextLayout, holder.mProgressPie);
return convertView;
}
示例2: ViewHolder
import com.filippudak.ProgressPieView.ProgressPieView; //导入依赖的package包/类
public ViewHolder(View v) {
super(v);
name = (TextView)v.findViewById(R.id.reservoir_name);
time = (TextView)v.findViewById(R.id.reservoir_time);
differentialLevel = (TextView)v.findViewById(R.id.reservoir_differential_level);
capacity = (ProgressPieView)v.findViewById(R.id.reservoir_capacity);
}
示例3: ViewHolder
import com.filippudak.ProgressPieView.ProgressPieView; //导入依赖的package包/类
public ViewHolder(View view) {
super(view, mMultiSelector);
// Containers
cardView = (CardView) view.findViewById(R.id.chapter_card);
cardContainer = (LinearLayout) view.findViewById(R.id.chapter_card_container);
cardHeader = (RelativeLayout) view.findViewById(R.id.card_header);
cardBody = (LinearLayout) view.findViewById(R.id.card_body);
actions = (LinearLayout) view.findViewById(R.id.actions);
// Views
title = (TextView) view.findViewById(R.id.title);
seekBar = (SeekBar) view.findViewById(R.id.seek_bar);
elapsed = (TextView) view.findViewById(R.id.time_elapsed);
duration = (TextView) view.findViewById(R.id.time_duration);
progressPie = (ProgressPieView) view.findViewById(R.id.progress_pie);
// Buttons
checkLevelBtn = (FourStepImageView) view.findViewById(R.id.check_level_btn);
recordBtn = (ImageView) view.findViewById(R.id.record_btn);
compileBtn = (ImageView) view.findViewById(R.id.compile_btn);
expandBtn = (ImageView) view.findViewById(R.id.expand_btn);
deleteBtn = (ImageButton) view.findViewById(R.id.delete_chapter_audio_btn);
playPauseBtn = (ImageButton) view.findViewById(R.id.play_pause_chapter_btn);
view.setOnClickListener(this);
view.setOnLongClickListener(this);
view.setLongClickable(true);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
setSelectionModeStateListAnimator(null);
setDefaultModeStateListAnimator(null);
}
setSelectionModeBackgroundDrawable(null);
setDefaultModeBackgroundDrawable(null);
}
示例4: initializeProjectCard
import com.filippudak.ProgressPieView.ProgressPieView; //导入依赖的package包/类
public static void initializeProjectCard(final Activity ctx, final Project project, ProjectDatabaseHelper db, View projectCard) {
TextView languageView = (TextView) projectCard.findViewById(R.id.language_text_view);
TextView bookView = (TextView) projectCard.findViewById(R.id.book_text_view);
ImageButton info = (ImageButton) projectCard.findViewById(R.id.info_button);
ImageButton record = (ImageButton) projectCard.findViewById(R.id.record_button);
LinearLayout textLayout = (LinearLayout) projectCard.findViewById(R.id.text_layout);
ProgressPieView progressPie = (ProgressPieView) projectCard.findViewById(R.id.progress_pie);
initializeProjectCard(ctx, project, db, languageView, bookView, info, record, textLayout, progressPie);
}
示例5: addWholePills
import com.filippudak.ProgressPieView.ProgressPieView; //导入依赖的package包/类
void addWholePills(final int number) {
for (int i = 0; i < number; i++) {
ProgressPieView p = new ProgressPieView(getContext());
p.setProgress(100);
graphicsLayout.addView(p, fractionPill != null ? graphicsLayout.getChildCount() - 1 : graphicsLayout.getChildCount());
final LinearLayout.LayoutParams layoutParams = (LinearLayout.LayoutParams) p.getLayoutParams();
layoutParams.setMargins(0, 0, 10, 0);
p.setLayoutParams(layoutParams);
pills.add(p);
}
}
示例6: getView
import com.filippudak.ProgressPieView.ProgressPieView; //导入依赖的package包/类
@Override
public View getView(BigImageView parent) {
mProgressPieView = (ProgressPieView) LayoutInflater.from(parent.getContext())
.inflate(R.layout.ui_progress_pie_indicator, parent, false);
return mProgressPieView;
}