Answers for "material icon button android xml"

1

button with icon android

<!-- ImageView which will used as a button with OnClickListener -->
    <ImageView
        android:id="@+id/imageView"
        android:layout_width="200dp"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true"
        app:srcCompat="@drawable/homeicon" />
Posted by: Guest on June-25-2021
0

matterial button with icon only android

<style name="ChatRefresh" parent="Widget.MaterialComponents.Button">
        <item name="android:insetLeft">0sp</item>
        <item name="android:insetTop">0sp</item>
        <item name="android:insetRight">0sp</item>
        <item name="android:insetBottom">0sp</item>
        <item name="android:textColor">#F5F5F5</item>
        <item name="elevation">5dp</item>
        <item name="iconGravity">textStart</item>
        <item name="iconPadding">0dp</item>
        <item name="cornerRadius">15sp</item>
    </style>
Posted by: Guest on January-30-2021

Code answers related to "material icon button android xml"

Browse Popular Code Answers by Language