navasmdc / MaterialDesignLibrary

This is a library with components of Android L to you use in android 2.2
Apache License 2.0
8.99k stars 2.22k forks source link

Putting text on ButtonFloat #306

Open paragones opened 9 years ago

paragones commented 9 years ago

Hi,

Is it possible to put a text on ButtonFloat properties into the xml file?

Here's my code. I don't really need an image there.

<com.gc.materialdesign.views.ButtonFloat
        android:id="@+id/button_delete_hours"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:minHeight="1dp"
        android:minWidth="1dp"
        android:background="@color/orange_main"
        android:text="X"
        android:textColor="#9e9e9e"
        android:textSize="15sp"
        android:layout_alignParentRight="true"
        android:layout_marginRight="16dp"
        android:layout_marginTop="27dp"
        />
mkorniluk commented 9 years ago

No, it's not possible. ButtonFloat is a RelativeLayout with ImageView inside.