R
R
rutraq2020-04-25 14:16:33
Android
rutraq, 2020-04-25 14:16:33

How to make the same ImageButton style as in simple buttons?

5ea41bb21ea84152216278.jpeg
on top of a simple button with a style, and on the bottom of the imagebutton how to make the same outline of the imagebutton. When this style is applied to an imagebutton, the buttons become oval, but without a stroke. Button
style code:

<?xml version="1.0" encoding="utf-8"?>
<inset xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:insetBottom="6dp"
    android:insetLeft="4dp"
    android:insetRight="4dp"
    android:insetTop="6dp">
    <ripple android:color="?attr/colorControlHighlight"
        tools:targetApi="lollipop">
        <item>
            <shape android:shape="rectangle"
                android:tint="#F0F5F7">
                <corners android:radius="20dp"/>
                <solid android:color="#565567"/>
                <padding android:bottom="3dp"/>
            </shape>
        </item>
    </ripple>
</inset>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Timur Pokrovsky, 2020-04-25
@Makaroshka007

https://stackoverflow.com/questions/5197892/add-sh...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question