android-jetpack Questions

1

Solved

I'm trying to implement a custom progress indicator in Jetpack Compose that looks like the attached image. A rounded square with a custom icon inside. When the loading starts, there should be a pro...

1

The device's keyboard is overlapping with the ModalBottomSheet that has a text field, I have already set android:windowSoftInputMode="adjustResize" in my manifest file And consumed the im...

2

I need to use the emoji2-emojipicker from androidx which is made like so with XML views: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width=...
Archdiocese asked 22/6, 2023 at 10:11

2

Solved

Assume that my application looks like this @Composable fun AppNavigation() { val navController = rememberNavController() NavHost(navController, startDestination = Route.Home.route) { /// other ...

2

Solved

I am working on a custom layout that presents a day timeline in Jetpack Compose using Layout composable. The result looks like Google's Calenar and code is similar to the one described in that grea...
Lynden asked 11/12, 2021 at 15:49

8

Solved

I am trying to apply Jetpack Compose navigation into my application. My Screens: Login/Register screens and Bottom navbar screens(call, chat, settings). I already found out that the best way to do ...

4

Solved

How does one properly rotate text in jetpack compose and get it to do a correct layout? When I use the rotate modifier on a Text object the text is rotated but the size taken up in the layout seems...
Shameful asked 21/11, 2021 at 18:21

3

I am trying to develop sample chat app with jetpack compose and struggling with states. I have lazyColumn which contains messages. My problem is when user clicks the button, my "ChatList"...
Monika asked 28/2, 2021 at 9:57

3

Solved

I was implementing Android Room Database and in one of the tutorial I found the usage of androidx.legacy:legacy-support-v4:1.0.0 dependency. Can any one tell me use of this dependency.
Franciscofranciska asked 26/12, 2019 at 5:0

7

Solved

i've been using jetpack datastore for a while, but then i got a problem. I want to clear data in datastore when the app is destroyed. Im using jetpack datastore to persist data only in form i've se...
Nonaggression asked 16/11, 2020 at 1:59

9

Solved

I want to add border on bottom of the layout. I know i can use Divider composable but i just want to learn how to draw a border. Currently, I can add border for all sides which is not what I want. ...
Finsteraarhorn asked 30/7, 2021 at 14:26

1

I'm using Jetpack Compose for rendering the UI of my app. I'm currently developing some tests for a library, but I can't manage to find any proper ways to check for permissions. I'm currently using...

7

I need to add border with rounded corner in Button using Jetpack Compose Like :

6

Solved

I know the difference between them. I want to calculate the text height base on lineHeight. The value of lineHeight is in TextUnit so I want to convert it into Dp.

3

Solved

I want my button to be bottom of the screen using Column. When I am trying to smaller device my content is not scrollable. So I search in stack overflow and found this answer. When I am adding .ver...
Lanettelaney asked 8/8, 2022 at 10:48

6

Solved

I want to enter only numbers in Textfield. I tried this stackoverflow logic to restrict alphabet and special characters but when I press dot in my keyboard it's crash. Error 2022-08-18 09:47:13.966...

1

Solved

Trawling through android documentation and I found information indicating that the jetpack security module androidx.security:security-crypto has been deprecated, here are some of the links https://...
Tawana asked 21/4, 2024 at 15:28

4

Solved

I tried adding Room to my Jetpack Compose project, as described here: https://developer.android.com/jetpack/androidx/releases/room?authuser=1 I got this: enter image description here I did this: (a...

18

Is there a way to adjust the text to always resize depending a fixed height ? I have a column that has a fixed height and in which the text inside should always fit Column(modifier = Modifier.heig...
Earing asked 19/9, 2020 at 17:31

4

Solved

How to do this Scroll hide fab button in Jetpack Compose with transaction Like this I need it:
Trinitrobenzene asked 15/10, 2021 at 8:53

6

Solved

Since Jetpack Compose has this limitation I'm looking for workaround solution for this problem? Maybe Canvas could do the trick? I really appreciate if someone can provide code snippets of how to r...

12

Solved

I can't find any documents on the matter, is there something similar to a CollapsingToolbar in Compose? All I found was a mention of it here, but nothing on how to set it up

6

Solved

In Jetpack Compose, how is navigation supposed to be done? All (and there aren’t many) examples (including the official sample from Google) use sealed classes and loading new screens in reaction to...
Helladic asked 7/1, 2020 at 1:16

9

Solved

I am using Advance Navigation Component with BottomNavigationView. In one tab I have ViewPager2. When I clicked on the tab for the first time, it worked fine. Although the second time, come on that...

7

Solved

I'm trying to overlap two Box or perhaps is better to use Row on this case. My design is one Row overlapped with another one, and I've wrapped it on a Column, is that correct? This is the design, w...
Ascend asked 21/1, 2022 at 10:13

© 2022 - 2025 — McMap. All rights reserved.