android.support.v4.widget.CircularProgressDrawable Java Examples
The following examples show how to use
android.support.v4.widget.CircularProgressDrawable.
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: CustomLocationTrackingActivity.java From android-map-sdk with Apache License 2.0 | 6 votes |
@Override public void onMapReady(@NonNull NaverMap naverMap) { map = naverMap; fab.setOnClickListener(v -> { if (trackingEnabled) { disableLocation(); fab.setImageResource(R.drawable.ic_my_location_black_24dp); } else { CircularProgressDrawable progressDrawable = new CircularProgressDrawable(this); progressDrawable.setStyle(CircularProgressDrawable.LARGE); progressDrawable.setColorSchemeColors(Color.WHITE); progressDrawable.start(); fab.setImageDrawable(progressDrawable); tryEnableLocation(); } trackingEnabled = !trackingEnabled; }); }
Example #2
Source File: DefaultRefreshView.java From QRefreshLayout with MIT License | 5 votes |
public DefaultRefreshView(Context context, @Nullable AttributeSet attrs) { super(context, attrs); View view = LayoutInflater.from(context).inflate(R.layout.view_default_refresh, null); addView(view); viewContainer = view.findViewById(R.id.viewContainer); tvSecondFloor = view.findViewById(R.id.tvSecondFloor); viewCover = view.findViewById(R.id.viewCover); imageView = view.findViewById(R.id.imageView); mProgress = new CircularProgressDrawable(getContext()); mProgress.setStyle(CircularProgressDrawable.DEFAULT); imageView.setImageDrawable(mProgress); mProgress.setArrowEnabled(true); mProgress.stop(); }