Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
58 views

I have six button in two Linear Layouts, three in each linear layout. But If I hide any button from any Linear layout they are rearranged accordingly in the same linear layout. But I required the If I ...
Asif Hussain's user avatar
0 votes
1 answer
25 views

The following is in AndroidManifest.xml: <application android:theme="@style/FooAppThemeStyle" ... > In style.xml: <style name="FooAppThemeStyle&...
Hong's user avatar
  • 18.7k
1 vote
1 answer
64 views

I am using a MaterialButtonToggleGroup with MaterialButton buttons in it. I am trying to fit 2 lines of text into some of the buttons, but the buttons get shifted down a bit if they have more than one ...
CitroenAX's user avatar
3 votes
1 answer
192 views

I have a button in xml layout file <Button android:id="@+id/button_heat" android:layout_width="0dp" android:layout_height="0dp" ...
VanessaF's user avatar
  • 717
0 votes
0 answers
53 views

I'm developing a quiz app. I want to change the button colour when the user selects it and then change it when the option is right or wrong. But the button color changes to grey even though I've not ...
Shivanshu Raj's user avatar
1 vote
2 answers
2k views

Is there a way in Jetpack Compose to automatically apply the primary color defined in the theme to the background of Button composables without specifying the background color every time I use a ...
Malaika Khan's user avatar
0 votes
1 answer
149 views

My goal is to create a button with rounded corners. I have a button with this in its attributes android:background="@drawable/roundstyle", which is supposed to change the corners of the ...
Akira's user avatar
  • 15
0 votes
1 answer
43 views

I am making a qr code scanning screen. There is a camera view in the background and scanning animation on it. At the bottom there are two image views that I added programmatically. These image views ...
Emin YAZAN's user avatar
1 vote
3 answers
661 views

I am sheer beginner in Jetpack Compose library of Kotlin and I was making a simple UI to practice. I Made a Button and I wanted to display a text in the event of someone clicking on code but I got an ...
Yoshi's user avatar
  • 11
0 votes
1 answer
48 views

Below is a simple UI design, I have set the Description attribute to stay at the left of the button by setting the android:toLeftTo, else the text would be blocked by the button if the description is ...
YUNG FOOK YONG's user avatar
0 votes
1 answer
72 views

Ive been teaching myself how to code for the last 2 months and decided I would attempt to make a time keeping app. Ive checked everywhere in this code, I ran Logs, I even asked chatGPT, and for the ...
Zach T's user avatar
  • 3
0 votes
1 answer
39 views

I want to create a style that changes the background of my button I wrote this Style and it does what I want except it doesnt change the background of my button to the given drawable, it just stays ...
ElWray2607's user avatar
1 vote
2 answers
2k views

I need to get the following design. I need a way without using TabLayout/ViewPager. There is no swipe required while switching in between the fragments. Could you please help to understand how this ...
Dev_Cob's user avatar
  • 71
0 votes
2 answers
70 views

I have Button[] buttons = new Button[9]; and later in the activity the buttons will be set to either X or O. I need to save whether a given button has its text as X or O. When a button is clicked on, ...
MysticSticker's user avatar
0 votes
0 answers
52 views

I have to implement custom button looks like next picture and this, button.xml (layout resource) <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget....
Tmdhoon2's user avatar
0 votes
1 answer
1k views

I have a simple Sign In screen and I have a problem with one of my Button. I just wanted to create a button has a drawable on start with a 10dp padding-start, and has a text on center of button. Here ...
Wicaledon's user avatar
  • 830
7 votes
3 answers
9k views

Is it possible to change the color of the border .border( when it is disabled? Something like ButtonDefaults.buttonColors to make border color Color.Gray if the button is disabled and keeping ...
Hassan Alhajji's user avatar
0 votes
0 answers
28 views

In my app, I have 2 activities. The first activity is the main screen, and the second activity is the shop screen. The 2nd activity contains 2 fragments. I have 2 RecyclerViews located in the first ...
Soil Milk's user avatar
1 vote
1 answer
89 views

I found that a button that is added to a layout by code looks very different than a button defined in xml. I made a short example. Here is the layout <?xml version="1.0" encoding="...
Droidum's user avatar
  • 456
0 votes
3 answers
1k views

Consider the following code: val saveInProgress = false // in reality might come from a ViewModel Button(onClick = {}) { val text = if(saveInProgress) "Save" else "..." ...
me.at.coding's user avatar
  • 18.5k
1 vote
1 answer
748 views

I am trying to make an app using constraintlayout and guidelines. All works fine except when I'm trying to put a button. Here is a screenshot of the design to show what the problem is: my button has a ...
Thewhyap's user avatar
0 votes
1 answer
2k views

When a button is clicked once in kotlin compose, so if the button is clicked, I want it not to be clicked again. Is there a simple way to do this in kotlin compose?
NewPartizal's user avatar
  • 1,298
0 votes
1 answer
43 views

So I have recyclerview here, and I want to delete a specific element by clicking on that element's delete button (here, the trash icon is the image button). How do I do it?
Arya_'s user avatar
  • 70
3 votes
1 answer
7k views

When I tried to write text, on a buttonClick event, I ran into the problem, that I can't call a @Composable function inside another function because of the: @Composable invocations can only happen ...
Schwoaz1802's user avatar
0 votes
1 answer
336 views

I am subsetting font M PLUS 1p (style medium). I need only a single character - leftwards arrow, which is unicode character u2190. During the subsetting process FontForge complained that the lookup ...
Viktor Brešan's user avatar

1
2 3 4 5
49