Skip to content

background image dimension broken #3

Description

@stefano-gfstudio

when i set a background image the width and height are incorrect, but when i use ImageButton are correct the simple code comparison is:

<it.testproj.test.SAutoBgButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:background="@drawable/btn_web_back" />

    <ImageButton 
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:layout_marginLeft="80dp"
        android:layout_centerVertical="true"
        android:background="@drawable/btn_web_back" />

on left SAutoBgButton and on right ImageButton

screenshot_2013-11-13-10-41-36

it's a bug of your lib or i need to set other params?? thank you

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions