You are trying to use the button with a height that's smaller than the
minimum's button height. That's why you should use wrap_content :)

On Sun, Aug 22, 2010 at 11:49 PM, dvs <[email protected]> wrote:
> I am using a <Button> widget in one of my layout. I created this
> button in disabled state. A thin white line runs through the button,
> at center horizontal,  while it is in disabled state. And in enabled
> state it is normal like any other widgets.
>
> Below is the layout code:
> ----------------------------------------------------------------------------------------------------------------------
>
> <?xml version="1.0" encoding="utf-8"?>
> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/
> android"
>    android:orientation="vertical"
>    android:layout_width="fill_parent"
>    android:layout_height="fill_parent"
>>
> <TextView
>    android:layout_width="fill_parent"
>    android:layout_height="wrap_content"
>    android:text="@string/hello"
>    />
>    <Button
>            android:id="@+id/my_button"
>            android:layout_width="fill_parent"
>            android:layout_height="45dp"
>            android:text="@string/hello"
>            android:enabled="false"
>     />
> </LinearLayout>
> -------------------------------------------------------------------------------------------------------------------------------------
>
> I am setting the height of the button as
>                               android:layout_height="45dp".
>
> When I set the height as  "wrap_content" this issue (white line on
> disabled state) is not seen.
>
> Any insight about this issue.
>
> --
> 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
>



-- 
Romain Guy
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

-- 
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