Questions tagged [materialbutton]

60 questions
0
votes
1 answer

Is there a way to set MotionLayout custom attribute for MaterialButton's iconTint?

According to this article CustomAttribute are specified with the attributeName, which needs to match the getter/setter methods of an object such that: getter: getName (e.g. getBackgroundColor) setter: setName (e.g. setBackgroundColor) (so…
0
votes
1 answer

Icon is not showing when using app:srcCompat android MaterialButton instead of app:icon

I am using MaterialButton and using app:srcCompat but unfortunately icon is not showing. Tried both vector drawables and webp images but nothing work.
0xAliHn
  • 18,390
  • 23
  • 91
  • 111
0
votes
1 answer

Flutter container width inside MaterialButton

I am trying for hours to set my container width to its parent, which is a MaterialButton. I want the container to fill the entire width of the MaterialButton. I tried to set the container width to "double.infitiy" or to…
user2929899
  • 117
  • 1
  • 11
0
votes
1 answer

Remove background color of MaterialButton and set icon

I wanted to remove the color background of a Material Button and I wanted to show an icon only. The icon shouldn't be tinted with any color but should display the picture(drawable) I am setting. Here is what I want to achieve: The Button attributes…
Kidus Tekeste
  • 651
  • 2
  • 10
  • 28
0
votes
2 answers

How to let ripple enabled even when the MaterialButton is disabled?

Is there any way to let the ripple enabled on click action even if I disable the MaterialButton?
Augusto Carmo
  • 4,386
  • 2
  • 28
  • 61
0
votes
2 answers

How to change transparency of "Xamarin.Forms Material Visual" disabled button?

I would like to change the transparency level of disabled button. Disabled Button View Enabled Button View [assembly: ExportRenderer(typeof(LabelButton), typeof(SkyRacing.Droid.LabelButtonRenderer))] namespace SkyRacing.Droid { public class…
0
votes
1 answer

Android Material Button - @drawable specs not recognized

New to AS. Trying to use MaterialButton, overriding default background with @drawable, but it's not working. Environment Android Studio: 4.0 Dependencies: implementation "androidx.appcompat:appcompat:$dependency_version_appcompat" implementation…
IMTanuki
  • 117
  • 1
  • 9
0
votes
2 answers

Create a button which creates a widget in flutter

I wanna define a function or something like that to make a new widget on my button press, Also, I wanna create that widget in a specific column. Anybody can help?
M.Taha Basiri
  • 612
  • 1
  • 6
  • 14
0
votes
1 answer

How to make all the childs of a Material Button ToggleGroup not clickable in kotlin

i have a lots of child buttons in a toggle group. And i want that whenever one of the child is clicked, make the whole toggle group not clickable.
0
votes
2 answers

Flutter - How to make a Material Button stationery while scrolling page

ADDED PICTURE: Edited: June23, 2020 for clarification... I. need these two buttons to not move at all and stay at the same position, when I scroll these buttons are stationary but as the page scrolls the movement of the page moves the buttons so…
0
votes
1 answer

Mat-icon: when pressing a button all the icons change

I'm using Mat-card to display a list using an array and *ngFor and when pressed on the button, it will change the icon (mat-icon) only on the selected card but it changes for all the buttons in the list. here's an example: it's before pressing on…
Nessrine Hafi
  • 87
  • 2
  • 16
0
votes
2 answers

flutter how to change the color of a button on a click

I am trying to change the color of the button when I click on it. Can you help me because I really can't do it. Thank you. Container( child: new Row( mainAxisAlignment: MainAxisAlignment.spaceEvenly, children:…
0
votes
1 answer

How to prevent click event propagation

When using a material button inside a container and you click on the material button, it triggers the material button event handler, but then it propagates up to the container. What is the recommended way to stop the event from propagating beyond…
Krinkster
  • 23
  • 2
-1
votes
1 answer

Applying a function to list values and creating a resultant array with less code

I understand that what I have currently is maybe better for readability, but I am just interested in the different ways I could achieve the same result with less code. ArrayList buttons = new ArrayList<>(); // grab button states and…
dan
  • 347
  • 2
  • 14
-1
votes
2 answers

Android material button with spinning icon

Is it possible to have a spinning icon (like progressbar) as the material button icon? Thanks.
Sharas
  • 1,985
  • 3
  • 20
  • 43
1 2 3
4