Progress Dialog Not Aligned In The Actionbarsherlock After Api Level 11+
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 Progress Dial
Solution 1:
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".
Solution 2:
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
<TextViewandroid:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_marginTop="5dip"android:gravity="center"android:text="Please wait.."android:textColor="@color/black" />
Post a Comment for "Progress Dialog Not Aligned In The Actionbarsherlock After Api Level 11+"