Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
54 views

How to build a Custom Android keybaord with Kotlin and Jetpack Compose like Gboard or SwiftKey?

I've been searching for a good tutorial on creating a custom keyboard using Kotlin and Jetpack Compose, but I haven't found any comprehensive resources. The Android documentation recommends using an ...
Mujeeb's user avatar
  • 1
1 vote
0 answers
83 views

Jetpack Compose Full-Screen Dialog Extends Beyond Screen Bottom on Some Devices

I'm trying to understand what is causing this behaviour in a full-screen dialog. When I test on a pixel6 emulator, it's all good. Also in an Android10. On the pixel7, not so much. Both images are ...
Rafael Moreira's user avatar
2 votes
0 answers
85 views

Jetpack Compose multiline Texts taking up as much space as needed, but equal space when to large

In Jetpack Compose how can I have two Texts next to each other taking up the available width, but if they both don't fit on a single line, the one larger then 50% should become multiline. Then if both ...
Wirling's user avatar
  • 5,437
1 vote
1 answer
107 views

Composable template instead of XML template [duplicate]

I just started app development with kotlin and I started learning from yt but when I create a empty activity in android studio it creates templates having composable functions but I want to create ui ...
Abhinesh Jha's user avatar
2 votes
1 answer
50 views

Compose equivalent of layout_toLeftOf

I don't even know what to google... I have the following layout: Row( verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.SpaceBetween, modifier = Modifier ...
kristyna's user avatar
  • 2,157
0 votes
0 answers
43 views

How does LazyColumn/LazyRow extract each composables from items block

I am implementing my own custom layout. So there is a centre Node. As of getting branch nodes(in parameter of composable) i thought of using item block as we regularly use in lazylist composables. ...
androidDeweleper's user avatar
1 vote
1 answer
269 views

Why aren't we using ConstraintLayout in Jetpack compose as much as we did in XML?

I've been reviewing codes and I realized we don't use ConstraintLayout as often as we did in XML. In XML we were encouraged to use ConstraintLayout due to the performance concerns instead of those ...
Nadi Parsa's user avatar
0 votes
0 answers
280 views

Any Chart View in Jetpack Compose

I'm currently working on project that uses AnyChart available at https://github.com/AnyChart/AnyChart-Android and I structured my app using jetpack compose. AnyChart uses a xml view: <com.anychart....
Afonso Silva's user avatar
1 vote
0 answers
62 views

Compose Scaffold does not get the max height of custom bottom bar

I have a custom bottom bar and i want Scaffold to get this bottomBar's max height and give me the padding of it from the bottom so my content is properly placed when there is a scroll for example. ...
Sevban Bayır's user avatar
3 votes
1 answer
158 views

Jetpack Compose Digital Ink Recognition Accuracy Much Worse Than XML Layout: Why?

I attempted to integrate Digital Ink Recognition into an Android app using Jetpack Compose, but I noticed that the accuracy of recognition is significantly lower compared to when using XML layouts. ...
Shubham's user avatar
  • 41
1 vote
2 answers
625 views

How canI achieve wrap_content behaviour for items inside LazyHorizontalGrid in compose?

I'm build a layout in compose that contains a LazyHorizontalGrid with 2 rows of cards, let's say: LazyHorizontalGrid( rows = GridCells.Fixed(2), contentPadding = PaddingValues(horizontal = 16....
Filipe Oliveira's user avatar
0 votes
0 answers
65 views

How to squeeze a Camera Preview in a Box?

I'm trying to limit the size the CameraPreview takes up on screen: @Composable fun ShopView(analyzer: ImageAnalysis) { Box(modifier = Modifier.fillMaxWidth().height(10.dp)) { CameraPreview(...
user1785730's user avatar
  • 3,601
0 votes
1 answer
603 views

Adding child composable function with constraint layout into parent constraint layout in jetpack compose

i have planed to use constraint layout for my app. i want to include child composable with constraint layout into parent composable. when i try to do like normal way of including, it doesn't work, i ...
coppersmith's user avatar
1 vote
1 answer
2k views

Do I need to parse Int to dp before using the .dp extension function in compose?

Suppose I have a screen in figma with 1080x1920 resolution, then I add 20px padding, when I recreate this layout with compose I need to parse 20 to dp (using some utility function like: val Int.dp: ...
Gabriel's user avatar
  • 29
0 votes
1 answer
237 views

How to link .xml file to .kt file in Kotlin

My friend and I have coded two parts of our app separately and are now trying to join it together. I have coded the themes in a .xml document, while her code uses a .kt document for the theme. What ...
CJonks's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
13