Search in sources :

Example 6 with CircularProgressIndicator

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;
}
Also used : AppCompatImageView(androidx.appcompat.widget.AppCompatImageView) View(android.view.View) TextView(android.widget.TextView) PlayerView(com.google.android.exoplayer2.ui.PlayerView) CircularProgressIndicator(com.google.android.material.progressindicator.CircularProgressIndicator)

Example 7 with CircularProgressIndicator

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);
}
Also used : ContextThemeWrapper(android.view.ContextThemeWrapper) FrameLayout(android.widget.FrameLayout) CircularProgressIndicator(com.google.android.material.progressindicator.CircularProgressIndicator)

Example 8 with CircularProgressIndicator

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);
}
Also used : ContextThemeWrapper(android.view.ContextThemeWrapper) FrameLayout(android.widget.FrameLayout) CircularProgressIndicator(com.google.android.material.progressindicator.CircularProgressIndicator)

Example 9 with CircularProgressIndicator

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;
}
Also used : AppCompatImageView(androidx.appcompat.widget.AppCompatImageView) View(android.view.View) TextView(android.widget.TextView) PlayerView(com.google.android.exoplayer2.ui.PlayerView) CircularProgressIndicator(com.google.android.material.progressindicator.CircularProgressIndicator)

Aggregations

CircularProgressIndicator (com.google.android.material.progressindicator.CircularProgressIndicator)9 Button (android.widget.Button)3 LinearProgressIndicator (com.google.android.material.progressindicator.LinearProgressIndicator)3 Uri (android.net.Uri)2 ContextThemeWrapper (android.view.ContextThemeWrapper)2 View (android.view.View)2 WebResourceRequest (android.webkit.WebResourceRequest)2 WebResourceResponse (android.webkit.WebResourceResponse)2 WebView (android.webkit.WebView)2 EditText (android.widget.EditText)2 FrameLayout (android.widget.FrameLayout)2 TextView (android.widget.TextView)2 AppCompatImageView (androidx.appcompat.widget.AppCompatImageView)2 PlayerView (com.google.android.exoplayer2.ui.PlayerView)2 AndroidEntryPoint (dagger.hilt.android.AndroidEntryPoint)2 URLInterceptorWebViewClient (org.edx.mobile.view.custom.URLInterceptorWebViewClient)2 Slider (com.google.android.material.slider.Slider)1