1
I’m trying to make a simple button on an Android app. When inserting the button the effects worked normally, but after performing the background color change, the effect when clicking the button is gone, getting static.
I wonder which property I use to solve this.
My button is implemented as follows:
<Button
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="TEST"
android:background="#2780E3"
android:textColor="@android:color/white"
/>
@Hiago worked
– Vale
Hi Rodolfo! Sorry for the delay. I tried to create the XML file where you told me, but it always creates outside. And the contents of the file should be just the one that sent me? Thanks in advance for the reply!!
– Thiago
Rodolfo, I was able to create the file, but when trying to run the application the following error occurs http://pastebin.com/0fhJBzZ
– Thiago
add more gave your error code power other thing
– Vale
Activity: http://pastebin.com/NHwsErNv Selector_button: http://pastebin.com/BUUGLDbi Error: http://pastebin.com/0fhJBzZ
– Thiago
@Thiago look at the edition and see if it will work
– Vale
Jewel, now it’s working!
– Thiago