Top "Android-button" questions

questions about the android.

implement android:src="@drawable/image" programmatically in Android

I am trying to set the foreground image on an image button. After some research, I came across this code …

android android-widget android-imageview android-button
Rounded corners on material button

I'm following the tips from questions like this to create a button style like suggested on Material Design. However, I …

android material-design android-support-library android-button android-support-design
setEnabled() vs setClickable(), what is the difference?

Until now, when I wanted to stop the user from pressing the button, I would set the button.setClickable(false); …

android android-button clickable
Android Data Binding using include tag

Update note: The above example works properly, because release 1.0-rc4 fixed the issue of needing the unnecessary variable. Original question: …

java android data-binding android-button android-databinding
How do I set a different color for the pressed state of the button?

I have some Buttons on my android app. They have an icon and text. I can set the background color …

android android-button
Create Button with rounded corners in android

I'm trying to create a button which looks as in the image above. Initially my idea was to create a 9 …

android android-layout android-button
Android EditText and Button on same line

I need to have a Edittext beside a Search button. The EditText should fill as much of the width as …

android layout android-edittext android-button
Add a button to the top right of action bar

Is there a way I can add a button to the top right of my ActionBar, like where the default …

android android-actionbar android-button
change button text color when pressed

I have made my button transparent so I would like to have the button text color change when the button …

android android-button
How to put two buttons on same line in Android

How can I place two buttons on the same line in my login layout on my Android application?

android android-layout android-button