I recommend that you replace your FrameLayout with RelativeLayout and
adjust your andorid:layout_* attributes accordingly.

On Thu, Nov 4, 2010 at 4:30 AM, ahmed.mustafa.da...@gmail.com
<ahmed.mustafa.da...@gmail.com> wrote:
> I developed and application for Android that must be compatible with
> API 4 -->8
> I worked on API 4 as my main development target and was testing on 7
> also but now when I tested the app on API-8 many UI Views specially
> text views are misplaced.
>
> In my application there is a a FrameLayout that holds an image button
> and 2 text views, when testing on API-8 the text is misplaced to down
> although it's centered vertical and horizontal
>
> part of xml code:
>
> <FrameLayout android:id="@+id/FrameLayout02"
> android:layout_width="wrap_content"
> android:layout_height="wrap_content"><TextView
> android:layout_width="wrap_content"
> android:layout_height="wrap_content"
> android:layout_gravity="center_horizontal" android:textStyle="bold"
> android:textColor="#ffffff" android:layout_marginTop="5dip"
> android:layout_marginLeft="-10dip" android:id="@+id/alpine_gliderText"
> android:text="@string/grip"></TextView><ImageButton
> android:layout_width="wrap_content"
> android:layout_height="wrap_content" android:src="@drawable/
> gripbutton_selector" android:background="@null" android:id="@+id/
> alpine_gliderBtn"></ImageButton><ImageView
> android:layout_gravity="center_horizontal|center_vertical"
> android:layout_width="100dp" android:layout_height="wrap_content"
> android:layout_marginTop="15dp" android:id="@+id/alpine_logo_glider"></
> ImageView></FrameLayout>
>
> thanks
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in Atlanta: http://bignerdranch.com/classes/android

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to