0
I have in the directory res>drawable>fundo.xml
the following code:
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval">
<solid android:color="#ff0000"></solid>
</shape>
Where do I define in android:background="@drawable/fundo"
of xml
button res>layout>minha_lista.xml
:
<Button
android:id="@+id/botao_alunos"
android:text="+"
android:textSize="15sp"
android:textColor="#fff"
android:layout_width="56dp"
android:layout_height="56dp"
android:background="@drawable/fundo"
/>
To leave it with rounded shape to follow:
However, what makes me a little confused is changing the attribute background
and also change its format, I believe that what confuses me is trying to associate this background attribute to stylization front-end(thing I shouldn’t do), but I had a question:
Is there any way to avoid using the.xml background as the button background and just using the Button attributes could be performed the same change as your Shape?
would not be better to use a Floating Action Button?
– Leonardo Figueiredo
I can round it with the Floating Actionscript Button?
– RXSD