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

Reply via email to