Your layout uses fixed width (100dp) for the buttons, which appears to not
be sufficient on the second screen ("Can/cel").

The messed up vertical alignment might be a side effect of that.

Consider using wrap_content or at least increasing the fixed widths.

-- K

2012/7/18 CJ <[email protected]>

> Hi, I have this layout I have been using across the code.
> The display is good on my phone, tablet, emulators but I have 1 user that
> show me an alignment problem.
> The strange thing was, the other dialog button has no alignment issues and
> the code are the same except text.
>
> How it look for everyone else:
>
> https://fbcdn-sphotos-a.akamaihd.net/hphotos-ak-ash3/560976_3068299686679_313198814_n.jpg
>
>
> How it look for that 1 user and only this dialog
>
> https://fbcdn-sphotos-a.akamaihd.net/hphotos-ak-ash4/309468_3068299926685_474928927_n.jpg
>
>
> What is the issue?
> The code:
> <?xml version="1.0" encoding="utf-8"?>
> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android";
>     android:id="@+id/dpwd"
>     android:layout_width="fill_parent"
>     android:layout_height="fill_parent"
>     android:orientation="vertical" >
>
>     <TextView
>         android:id="@+id/TextView_Pwd1"
>         android:layout_width="wrap_content"
>         android:layout_height="wrap_content"
>         android:text="@string/password1"
>         android:textStyle="bold" >
>     </TextView>
>
>     <EditText
>         android:id="@+id/EditText_Pwd1"
>         android:layout_width="fill_parent"
>         android:layout_height="wrap_content"
>         android:inputType="textPassword"
>         android:maxLength="20"
>         android:maxLines="1" >
>     </EditText>
>
>     <LinearLayout
>         android:layout_width="fill_parent"
>         android:layout_height="fill_parent"
>         android:orientation="horizontal" >
>
>         <Button
>             android:id="@+id/Button_DPwd"
>             android:layout_width="100dp"
>             android:layout_height="wrap_content"
>             android:text="@string/ok" />
>
>         <Button
>             android:id="@+id/Button_DPwdCancel"
>             android:layout_width="100dp"
>             android:layout_height="wrap_content"
>             android:text="@string/cancel" />
>     </LinearLayout>
>
> </LinearLayout>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Reply via email to