Progress Dialog not aligned in the ActionBarSherlock after API Level 11+

前端 未结 2 1522
长发绾君心
长发绾君心 2021-01-28 03:23

In my Project i have add Library ActionBar Sherlock and create the custom theme for my project.

I have created custom theme from here. But after applying the theme my Pr

2条回答
  •  感情败类
    2021-01-28 03:43

    Please change the following lines of code in

    progress.xml file

    android:layout_width="130dp"
    android:layout_height="80dp"
    

    to

    android:layout_width="match_parent"
    android:layout_height="match_parent"
    

    It should display in the center of the screen now.

    Hope this helps!

    Edit: Please change the layout_width attribute of TextView to "wrap_content".

提交回复
热议问题