當前位置: 首頁>>代碼示例>>Java>>正文


Java ProgressWheel.setBarColor方法代碼示例

本文整理匯總了Java中com.pnikosis.materialishprogress.ProgressWheel.setBarColor方法的典型用法代碼示例。如果您正苦於以下問題:Java ProgressWheel.setBarColor方法的具體用法?Java ProgressWheel.setBarColor怎麽用?Java ProgressWheel.setBarColor使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在com.pnikosis.materialishprogress.ProgressWheel的用法示例。


在下文中一共展示了ProgressWheel.setBarColor方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: DefaultRefreshIcon

import com.pnikosis.materialishprogress.ProgressWheel; //導入方法依賴的package包/類
public DefaultRefreshIcon(@NonNull Context context, int refreshIconColor, int refreshIconSize,
        int refreshIconSpinDuration) {
    refreshIcon = new ProgressWheel(context);
    RelativeLayout.LayoutParams refreshIconLayoutParams = new RelativeLayout.LayoutParams(refreshIconSize,
            refreshIconSize);
    refreshIconLayoutParams.addRule(RelativeLayout.CENTER_IN_PARENT);
    setSpinSpeed(refreshIconSpinDuration);
    refreshIcon.setLayoutParams(refreshIconLayoutParams);
    refreshIcon.setBarColor(refreshIconColor);
    refreshIcon.setCircleRadius(refreshIconSize);
    refreshIcon.setProgress(0);
}
 
開發者ID:skhugh,項目名稱:Android-Simple-PullToRefresh,代碼行數:13,代碼來源:DefaultRefreshIcon.java

示例2: initProgress

import com.pnikosis.materialishprogress.ProgressWheel; //導入方法依賴的package包/類
private void initProgress() {
    wheel = new ProgressWheel(getContext());
    wheel.setBarColor(Color.GREEN);
    wheel.setEnabled(true);
    wheel.setBarColor(Color.BLUE);
    wheel.setBackgroundColor(Color.GRAY);
}
 
開發者ID:LABELNET,項目名稱:YuanNewsForAndroid,代碼行數:8,代碼來源:BaseFragment.java

示例3: onCreate

import com.pnikosis.materialishprogress.ProgressWheel; //導入方法依賴的package包/類
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    tvMessage = (TextView) findViewById(R.id.progress_dialog_message);
    tvMessage.setText(message);
    if (progressColor != -1) {
        ProgressWheel mProgressWheel = (ProgressWheel) findViewById(R.id.progress_dialog_wheel);
        mProgressWheel.setBarColor(progressColor);
    }
}
 
開發者ID:brucewuu520,項目名稱:Qianlichuanyin,代碼行數:11,代碼來源:LProgressDialog.java

示例4: onCreate

import com.pnikosis.materialishprogress.ProgressWheel; //導入方法依賴的package包/類
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    this.appPreferences = MLManagerApplication.getAppPreferences();
    this.activity = this;
    this.context = this;

    setInitialConfiguration();
    checkAndAddPermissions(activity);
    setAppDir();

    recyclerView = (RecyclerView) findViewById(R.id.appList);
    pullToRefreshView = (PullToRefreshView) findViewById(R.id.pull_to_refresh);
    fastScroller = (VerticalRecyclerViewFastScroller) findViewById(R.id.fast_scroller);
    progressWheel = (ProgressWheel) findViewById(R.id.progress);
    noResults = (LinearLayout) findViewById(R.id.noResults);

    pullToRefreshView.setEnabled(false);

    recyclerView.setHasFixedSize(true);
    LinearLayoutManager linearLayoutManager = new LinearLayoutManager(this);
    linearLayoutManager.setOrientation(LinearLayoutManager.VERTICAL);
    recyclerView.setLayoutManager(linearLayoutManager);

    drawer = UtilsUI.setNavigationDrawer((Activity) context, context, toolbar, appAdapter, appSystemAdapter, appFavoriteAdapter, appHiddenAdapter, recyclerView);

    progressWheel.setBarColor(appPreferences.getPrimaryColorPref());
    progressWheel.setVisibility(View.VISIBLE);
    new getInstalledApps().execute();

}
 
開發者ID:javiersantos,項目名稱:MLManager,代碼行數:33,代碼來源:MainActivity.java


注:本文中的com.pnikosis.materialishprogress.ProgressWheel.setBarColor方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。