I have a Button that looks according to the Theme.Holo.Light
. I used to round its corners by setting its background to the following:
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:padding="10dp"
android:shape="rectangle" >
<corners
android:bottomLeftRadius="15dp"
android:bottomRightRadius="15dp"
android:topLeftRadius="15dp"
android:topRightRadius="15dp" />
</shape>
Now the Button
becomes transparent. I tried to create a selector, add a solid
attribute and use 2 of such drawables
for normal and pressed states, but I could not copy the default Button
behavior of the Holo.Light
theme. So I'm looking for 2 possible solutions: either somehow round the Button's corners without affecting its default Style or find the XML defining the mentioned style so I can copy it. I've been looking inside the SDK and using this reference: https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/res/res/values/themes.xml but did not succeed.
Any ideas how to make a rounded corners Button
BUT keep all the other appearance attributes to their defaults?