When is indeterminate progressbar coming to Android Support Library

前端 未结 3 1269
执笔经年
执笔经年 2021-01-31 02:14

My applications UI is built using the Android Support Library, but there is currently no AppCompat version of the (intederminate) progressbar, which my app really needs.

3条回答
  •  说谎
    说谎 (楼主)
    2021-01-31 02:28

    Material Components Library

    You can use the LinearProgressIndicator with the android:indeterminate="true" attribute:

    
    

    You can also use different colors using:

    
    

    with:

      
        @color/...
        @color/....
        @color/....
      
    

    You can also use the CircularProgressIndicator component to have a circular progress indicator:

    
    

    Note: It requires at least the version 1.3.0-alpha04


    AppCompat

    You can use a ProgressBar with an AppCompat style.

    Just add this in your layout:

    
    

    If you would like an Horizontal progress bar use:

      
    

    They follow the official material guidelines.

提交回复
热议问题