Answer the question
In order to leave comments, you need to log in
How to make the same ImageButton style as in simple buttons?
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question