How can I place a ProgressBar at the right of the Toolbar?

前端 未结 3 1974
名媛妹妹
名媛妹妹 2020-12-24 13:21

With the new Lollipop API, we have to use a Toolbar if we want to personalize the action bar aspect.

Adding a ProgressBar to the Toolbar is as simple as adding it to

3条回答
  •  再見小時候
    2020-12-24 13:37

    You can try this. It worked for me. Key here is to define layout_gravity in the xml: android:layout_gravity="right"

    
    
    
    
    
    
    

提交回复
热议问题