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

Java ProgressPieView类代码示例

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

本文整理汇总了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;
}
 
开发者ID:WycliffeAssociates,项目名称:translationRecorder,代码行数:24,代码来源:ProjectAdapter.java


示例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);
}
 
开发者ID:jarvislin,项目名称:Water-Restriction-Info,代码行数:8,代码来源:ReservoirAdapter.java


示例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);
}
 
开发者ID:WycliffeAssociates,项目名称:translationRecorder,代码行数:36,代码来源:ChapterCardAdapter.java


示例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);
}
 
开发者ID:WycliffeAssociates,项目名称:translationRecorder,代码行数:10,代码来源:ProjectAdapter.java


示例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);
    }
}
 
开发者ID:citiususc,项目名称:calendula,代码行数:12,代码来源:PillDosePickerFragment.java


示例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;
}
 
开发者ID:hkq325800,项目名称:YellowNote,代码行数:7,代码来源:ProgressPieIndicator.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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