本文整理匯總了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);
}
示例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);
}
示例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);
}
}
示例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();
}