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

前端 未结 2 1523
长发绾君心
长发绾君心 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".

    0 讨论(0)
  • 2021-01-28 03:54

    I don't know if it helps or not. But to fix the cropping issue of "Please wait" text. Change the layout_width to "wrap_content" like this

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="5dip"
        android:gravity="center"
        android:text="Please wait.."
        android:textColor="@color/black" />
    
    0 讨论(0)
提交回复
热议问题