1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-08-13 17:03:48 -04:00

Fix workaround for framelayout ignoring margins on android 2.x

This commit is contained in:
Sander Bogaert 2012-07-16 13:32:54 -04:00 committed by Andrew Chen
parent c2af640891
commit 11ed023020

View File

@ -20,13 +20,11 @@
android:gravity="center"
android:paddingRight="12dp"
android:paddingLeft="12dp">
<!-- FrameLayout ignores margins so we use this padding
<!-- FrameLayout ignores margins on android 2.x so we use this padding
to make sure the total is the same width as the icon we
replace and no visual shifting occurs -->
<ProgressBar android:layout_width="32dp"
android:layout_height="32dp"
android:layout_marginLeft="12dp"
android:layout_marginRight="12dp"
android:layout_gravity="center"
style="?android:attr/indeterminateProgressStyle" />
</FrameLayout>