use of com.google.android.material.progressindicator.CircularProgressIndicator in project edx-app-android by edx.
the class PlayerFragment method onCreateView.
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.panel_player, null);
((CircularProgressIndicator) view.findViewById(R.id.loading_indicator)).setIndicatorColor(ContextCompat.getColor(getContext(), R.color.white));
return view;
}
use of com.google.android.material.progressindicator.CircularProgressIndicator in project FirebaseUI-Android by firebase.
the class InvisibleActivityBase method onCreate.
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.fui_activity_invisible);
// Create an indeterminate, circular progress bar in the app's theme
mProgressBar = new CircularProgressIndicator(new ContextThemeWrapper(this, getFlowParams().themeId));
mProgressBar.setIndeterminate(true);
mProgressBar.setVisibility(View.GONE);
// Set bar to float in the center
FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);
params.gravity = Gravity.CENTER;
// Add to the container
FrameLayout container = findViewById(R.id.invisible_frame);
container.addView(mProgressBar, params);
}
use of com.google.android.material.progressindicator.CircularProgressIndicator in project FirebaseUI-Android by firebase.
the class InvisibleFragmentBase method onViewCreated.
@Override
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
// Create an indeterminate, circular progress bar in the app's theme
mProgressBar = new CircularProgressIndicator(new ContextThemeWrapper(getContext(), getFlowParams().themeId));
mProgressBar.setIndeterminate(true);
mProgressBar.setVisibility(View.GONE);
// Set bar to float in the center
FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);
params.gravity = Gravity.CENTER;
// Add to the container
mFrameLayout = view.findViewById(R.id.invisible_frame);
mFrameLayout.addView(mProgressBar, params);
}
use of com.google.android.material.progressindicator.CircularProgressIndicator in project edx-app-android by openedx.
the class PlayerFragment method onCreateView.
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.panel_player, null);
((CircularProgressIndicator) view.findViewById(R.id.loading_indicator)).setIndicatorColor(ContextCompat.getColor(getContext(), R.color.white));
return view;
}
Aggregations