Top "Android-button" questions

questions about the android.

how to set materialButton icon to the center

I am using supportLibrary = "28.0.0-beta01" version. Here is my code in .xml file: <android.support.design.button.MaterialButton android:…

android android-button material-components
Disable the power button in activity

I'm developing an app in which there is a requirement to not let the user to lock the screen or …

android performance android-button android-hardware
Rounded Corners + background Color Dynamic setting for Android button?

I would like to give below settings for Button in my application. You can think it as some theme changing …

android android-button android-theme android-styles
How to set Floating Action Button image to fill the button?

Usually icons are set for floating action buttons, but I need to set an image, so I can make a …

android material-design android-button floating-action-button material-components-android
How to prevent double code running by clicking twice fast to a button in Android

If i click fast to my button in my Android app, it seems that code behind it runs twice. If …

android android-button
Why button gets bigger when the background is set in android

I encountered a problem with the Button view when I set a background to it using the android:background attribute …

android android-button
Android layout as button with selectable functionality

I'm trying to create a button-like component, with a left-aligned ImageView and then 2 TextViews to the right of the ImageView, …

android android-layout android-button
Alignment issues with two-line button

I'm trying to figure out why a two-line button in my application is being shifted a couple of pixels lower …

android android-layout android-button
How to change drawable tint of a button below api level 23 programmatically in android

I am trying to figure out how to change the color of drawableLeft/drawableRight of button programmatically . I have used …

android android-drawable android-button
Add custom data / attributes to button in Android

What I am doing right now is to pull some data from an API and for each item in the …

android android-button