fr.castorflex.android.smoothprogressbar.SmoothProgressBar Java Examples
The following examples show how to use
fr.castorflex.android.smoothprogressbar.SmoothProgressBar.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DefaultHeaderTransformer.java From AndroidPullMenu with Apache License 2.0 | 6 votes |
@Override public void onViewCreated(Activity activity, View headerView, int progresBarColor) { mHeaderView = headerView; // Get ProgressBar and MenuSlidingTabStrip mHeaderProgressBar = (SmoothProgressBar) headerView.findViewById(R.id.pm_progress); mSlidingTabStrip = (MenuSlidingTabStrip)headerView.findViewById(R.id.menuIndicator); mContentLayout = (ViewGroup) headerView.findViewById(R.id.pm_content); mAnimationDuration = activity.getResources().getInteger(android.R.integer.config_shortAnimTime); // mProgressDrawableColor = activity.getResources().getColor(R.color.default_progress_bar_color); // Setup the View styles setupViewsFromStyles(activity, headerView); //applyProgressBarStyle(); setProgressBarColor(progresBarColor); // Apply any custom ProgressBar colors and corner radius applyProgressBarSettings(); // FIXME: I do not like this call here onReset(); }
Example #2
Source File: RefreshNowProgressIndicator.java From RefreshNow with Apache License 2.0 | 6 votes |
public RefreshNowProgressIndicator(final Context context, final AttributeSet attrs, final int defStyle) { super(context, attrs, defStyle); final Resources res = context.getResources(); final TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.SmoothProgressBar, defStyle, 0); final int color = a.getColor(R.styleable.SmoothProgressBar_spb_color, res.getColor(R.color.spb_default_color)); final int width = a.getDimensionPixelSize(R.styleable.SmoothProgressBar_spb_stroke_width, R.dimen.spb_default_stroke_width); a.recycle(); final IndicatorConfig.Builder builder = new IndicatorConfig.Builder(context); builder.progressColor(color); builder.progressStrokeWidth(width); setConfig(builder.build()); setMax(1000); setIndeterminate(false); updateVisibility(); }
Example #3
Source File: SomeFragment.java From something.apk with MIT License | 5 votes |
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View frag = super.onCreateView(inflater, container, savedInstanceState); View progress = frag.findViewById(R.id.progressbar); if(progress instanceof SmoothProgressBar){ progressBar = (SmoothProgressBar) progress; } return frag; }
Example #4
Source File: DefaultHeaderTransformer.java From Bitocle with Apache License 2.0 | 5 votes |
@Override public void onViewCreated(Activity activity, View headerView) { mHeaderView = headerView; // Get ProgressBar and TextView mHeaderProgressBar = (SmoothProgressBar) headerView.findViewById(R.id.ptr_progress); mHeaderTextView = (TextView) headerView.findViewById(R.id.ptr_text); mContentLayout = (ViewGroup) headerView.findViewById(R.id.ptr_content); // Default Labels to display mPullRefreshLabel = activity.getString(R.string.pull_to_refresh_pull_label); mRefreshingLabel = activity.getString(R.string.pull_to_refresh_refreshing_label); mReleaseLabel = activity.getString(R.string.pull_to_refresh_release_label); mAnimationDuration = activity.getResources() .getInteger(android.R.integer.config_shortAnimTime); mProgressDrawableColor = activity.getResources() .getColor(R.color.default_progress_bar_color); // Setup the View styles setupViewsFromStyles(activity, headerView); applyProgressBarStyle(); // Apply any custom ProgressBar colors and corner radius applyProgressBarSettings(); // FIXME: I do not like this call here onReset(); }
Example #5
Source File: DefaultHeaderTransformer.java From Bitocle with Apache License 2.0 | 5 votes |
@Override public void onViewCreated(Activity activity, View headerView) { mHeaderView = headerView; // Get ProgressBar and TextView mHeaderProgressBar = (SmoothProgressBar) headerView.findViewById(R.id.ptr_progress); mHeaderTextView = (TextView) headerView.findViewById(R.id.ptr_text); mContentLayout = (ViewGroup) headerView.findViewById(R.id.ptr_content); // Default Labels to display mPullRefreshLabel = activity.getString(R.string.pull_to_refresh_pull_label); mRefreshingLabel = activity.getString(R.string.pull_to_refresh_refreshing_label); mReleaseLabel = activity.getString(R.string.pull_to_refresh_release_label); mAnimationDuration = activity.getResources() .getInteger(android.R.integer.config_shortAnimTime); mProgressDrawableColor = activity.getResources() .getColor(R.color.default_progress_bar_color); // Setup the View styles setupViewsFromStyles(activity, headerView); applyProgressBarStyle(); // Apply any custom ProgressBar colors and corner radius applyProgressBarSettings(); // FIXME: I do not like this call here onReset(); }
Example #6
Source File: DefaultHeaderTransformer.java From Bitocle with Apache License 2.0 | 5 votes |
@Override public void onViewCreated(Activity activity, View headerView) { mHeaderView = headerView; // Get ProgressBar and TextView mHeaderProgressBar = (SmoothProgressBar) headerView.findViewById(R.id.ptr_progress); mHeaderTextView = (TextView) headerView.findViewById(R.id.ptr_text); mContentLayout = (ViewGroup) headerView.findViewById(R.id.ptr_content); // Default Labels to display mPullRefreshLabel = activity.getString(R.string.pull_to_refresh_pull_label); mRefreshingLabel = activity.getString(R.string.pull_to_refresh_refreshing_label); mReleaseLabel = activity.getString(R.string.pull_to_refresh_release_label); mAnimationDuration = activity.getResources() .getInteger(android.R.integer.config_shortAnimTime); mProgressDrawableColor = activity.getResources() .getColor(R.color.default_progress_bar_color); // Setup the View styles setupViewsFromStyles(activity, headerView); applyProgressBarStyle(); // Apply any custom ProgressBar colors and corner radius applyProgressBarSettings(); // FIXME: I do not like this call here onReset(); }
Example #7
Source File: DefaultHeaderTransformer.java From Klyph with MIT License | 5 votes |
@Override public void onViewCreated(Activity activity, View headerView) { mHeaderView = headerView; // Get ProgressBar and TextView mHeaderProgressBar = (SmoothProgressBar) headerView.findViewById(R.id.ptr_progress); mHeaderTextView = (TextView) headerView.findViewById(R.id.ptr_text); mContentLayout = (ViewGroup) headerView.findViewById(R.id.ptr_content); // Default Labels to display mPullRefreshLabel = activity.getString(R.string.pull_to_refresh_pull_label); mRefreshingLabel = activity.getString(R.string.pull_to_refresh_refreshing_label); mReleaseLabel = activity.getString(R.string.pull_to_refresh_release_label); mAnimationDuration = activity.getResources() .getInteger(android.R.integer.config_shortAnimTime); mProgressDrawableColor = activity.getResources() .getColor(R.color.default_progress_bar_color); // Setup the View styles setupViewsFromStyles(activity, headerView); applyProgressBarStyle(); // Apply any custom ProgressBar colors and corner radius applyProgressBarSettings(); // FIXME: I do not like this call here onReset(); }
Example #8
Source File: BookmarkLoadingCallback.java From Gazetti_Newspaper_Reader with MIT License | 5 votes |
public void onPreExecute(View rootView) { this.rootView = rootView; // initialize article views mArticleTextView = (TextView) rootView.findViewById(R.id.article_body); mArticlePubDateView = (TextView) rootView.findViewById(R.id.pubDateView); mSubtitleLayout = (RelativeLayout) rootView.findViewById(R.id.subtitleLayout); mScrollToReadLayout = (LinearLayout) rootView.findViewById(R.id.scrollToReadLayout); mArticleFooter = (LinearLayout) rootView.findViewById(R.id.article_footer); // Progress Bar detailViewProgress = (SmoothProgressBar) rootView.findViewById(R.id.detailViewProgressBar); detailViewProgress.progressiveStart(); }
Example #9
Source File: ArticleLoadingCallback.java From Gazetti_Newspaper_Reader with MIT License | 5 votes |
public void onPreExecute(View rootView) { this.rootView = rootView; // initialize article views mArticleTextView = (TextView) rootView.findViewById(R.id.article_body); mArticlePubDateView = (TextView) rootView.findViewById(R.id.pubDateView); mSubtitleLayout = (RelativeLayout) rootView.findViewById(R.id.subtitleLayout); mScrollToReadLayout = (LinearLayout) rootView.findViewById(R.id.scrollToReadLayout); mArticleFooter = (LinearLayout) rootView.findViewById(R.id.article_footer); // Progress Bar detailViewProgress = (SmoothProgressBar) rootView.findViewById(R.id.detailViewProgressBar); detailViewProgress.progressiveStart(); }
Example #10
Source File: DefaultHeaderTransformer.java From KlyphMessenger with MIT License | 5 votes |
@Override public void onViewCreated(Activity activity, View headerView) { mHeaderView = headerView; // Get ProgressBar and TextView mHeaderProgressBar = (SmoothProgressBar) headerView.findViewById(R.id.ptr_progress); mHeaderTextView = (TextView) headerView.findViewById(R.id.ptr_text); mContentLayout = (ViewGroup) headerView.findViewById(R.id.ptr_content); // Default Labels to display mPullRefreshLabel = activity.getString(R.string.pull_to_refresh_pull_label); mRefreshingLabel = activity.getString(R.string.pull_to_refresh_refreshing_label); mReleaseLabel = activity.getString(R.string.pull_to_refresh_release_label); mAnimationDuration = activity.getResources() .getInteger(android.R.integer.config_shortAnimTime); mProgressDrawableColor = activity.getResources() .getColor(R.color.default_progress_bar_color); // Setup the View styles setupViewsFromStyles(activity, headerView); applyProgressBarStyle(); // Apply any custom ProgressBar colors and corner radius applyProgressBarSettings(); // FIXME: I do not like this call here onReset(); }