I am coding the functionality of a button that serves to remove other buttons. My buttons are dynamic. I have to program the functionality in my .kt. I am noob on android studio so am not sure what the best way to do it. The function is like this: I have a TableRow where are ..
Category : button
Here is what i want to do, this is supposed to work something like a hint button. When clicked on Object A, which is a loupe, it is supposed to move to random position of one of X hidden objects and then return after like 3 seconds. Here is what i tried: public class Lupica1 ..
I have a 10×10 Hex Game board which consists of hexagonal buttons. I am trying to change the color of the hexagons when user clicks on them. I tried lots of things but my buttons are always purple. I tried to use the blue,black,red hexagons but weirdly every single one is purple when I use ..
I have a 10×10 Hex Game board which consists of hexagonal buttons. I am trying to change the color of the hexagons when user clicks on them. I tried lots of things but my buttons are always purple. I tried to use the blue,black,red hexagons but weirdly every single one is purple when I use ..
I am trying to implement switch button on the toolbar. It shows on the toolbar and turns on and off but there is no functions implemented when it is on or off. I have the switch button in the menu as follows <?xml version="1.0" encoding="utf-8"?> <menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"> <item android:id="@+id/action_settings" android:title="Settings" app:showAsAction="never"/> <item android:id="@+id/switch_button" android:title="Switch" ..
I’ve been looking for a related post, but couldn’t find the answer I was looking for! Its simple, I only want to make a call button using kotlin. Almost all the answers I could find are in Java. Thank you. Source: Android Studio..
Is there a way to align the icon to the start, top, and left of the material button in android XML? Do it programmatically is also acceptable. I would expect app:iconPadding="0dp" to do that, but it doesn’t. The goal is something like this: My XML: <com.google.android.material.button.MaterialButton android:id="@+id/return_button" app:cornerRadius="40dp" app:icon="@drawable/icon_back" app:iconPadding="0dp" app:iconGravity="start" android:layout_width="wrap_content" android:layout_height="wrap_content" tools:text="RETURN" /> ..
I have created a rectangle with a border rectangle_border.XML and no solid color. <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <corners android:radius="50dp" /> <size android:width="50dp" android:height="20dp" /> <stroke android:width="2dp" android:color="@color/White_Flight" /> and I have a button in which I set the background to rectangle_border: <com.google.android.material.button.MaterialButton android:id="@+id/loginPage" android:layout_width="87dp" android:layout_height="27dp" android:layout_marginBottom="10dp" android:background="@drawable/rectangle_border" android:text="@string/login" android:textColor="@color/dark_blue" android:textSize="8sp" app:backgroundTint="@color/White_Flight" app:layout_constraintBottom_toBottomOf="@id/home_background" app:layout_constraintLeft_toLeftOf="parent" ..
Good day. I am developing a app for blind users like me. I want to use tooltip to describe button use. But with my searches I only get to long press to get the message. I did set the wait property of tooltip to 0 but that do not work also. I need to be ..
I searched a lot on multiple websites and I got tired and could not find the icon Facebook I need it as an SVG vector Look like this Thanks in advance icon background white color and F letter blue color Source: Android Studio..
Recent Comments