Questions tagged [jetpack]

Jetpack is a WordPress plugin that enables self-hosted WordPress installs to connect to WordPress.com to get additional features, powered by its cloud infrastructure.

Jetpack is a WordPress plugin that enables self-hosted WordPress installs to connect to WordPress.com to get additional features, powered by its cloud infrastructure.

445 questions
1
vote
1 answer

Error in modifier.weight in row or column or box in jetpack compose

@Composable fun toolbar() { Scaffold( topBar = { TopAppBar( title = { Row( modifier = Modifier.fillMaxWidth(), horizontalArrangement =…
1
vote
1 answer

Jetpack compose how to make buttons after LazyColumn

This code makes buttons always after list rows. but how to make such implementation: then small list, button on the bottom of the screen, but then list large and larger then screen size, button on the and of the list LazyColumn( state…
Slava
  • 443
  • 4
  • 12
1
vote
2 answers

Jetpack compose theme color not applied

I created to kt files MainActivity.kt and MainPage.kt, I pu my own colors in color.ket and refeerenced them in theme.kt Omposables in MainActivity.kt get the right colors but MainPage.kt do not I have a card in MainPage.kt: Card( colors =…
1
vote
1 answer

Android Navigation Component load 2 nested Fragments into Parent Fragment

I have a Comparator Screen which is a Fragment that is splitted into 2 sub-screens. Before using Navigation Component I could easily just: private void initializeFragments() { FoodComparatorFragment comparatorFragment1 = new…
1
vote
1 answer

align() won't work in case of using Box() in Kotlin JetPack Compose

enter image description herecan anyone help with this problem? Trying to compile this part of code, but it request imports, but won't work after that also. Thanks. I just took that code from https://developer.android.com/jetpack/compose/modifiers,…
1
vote
0 answers

How to Create a Labeled Arc in Jetpack Compose Using Canvas

I need to create the following Arc in Jetpack Compose Using Canvas but I'm really not sure how to approach it, any help or resource will be appreciated. For now I just have an empty compose project.
1
vote
0 answers

How do I call a nested navigation graph outside the main navigation graph in jetpack compose

I am trying to organise my project so that it has nested graphs and currently I have 2 nested graphs: AuthenticationGraph and BottomBarGraph. The problem is that when I am in the home screen (which is the start destination of BottomBarGraph), I…
Steve_G
  • 23
  • 4
1
vote
2 answers

How to draw or create this curve shape in Jetpack Compose?

I tried using Path and bezier curves concept using cubicTo() method. I need height 70dp and width 333dp. @Composable fun CurveShape() { val path = remember { Path() } Canvas( modifier = Modifier .height(80.dp) …
Yogesh Nikam Patil
  • 1,192
  • 13
  • 18
1
vote
0 answers

Not bound to a valid camera [Image Capture] Camera X error in jetpack compose

When using image analysis to determine smiling, blink faces, I always have that error.. Not Bound To A valid camera: ImageCapture CameraX @Composable fun FaceDetectorCameraView( hasPassedAllChecks: Boolean, onImageCaptured: (Uri) ->…
ibramazin
  • 153
  • 9
1
vote
1 answer

How to better handle reusable compose component with error handling

I am working on a process where when users want to change password, they are able to do that within a current password, new password, retypenewpassword flow. My challenge however has been with using my reusable outlined text field to handle the…
Suraya
  • 63
  • 7
1
vote
1 answer

java.lang.NoSuchMethodError: No virtual method setContent(Lkotlin/jvm/functions/Function0;)V

Trying to migrate Android native view to Jetpack compose. Added dependencies per Jetpack-compose-migration#3 in build.gradle I'm still getting below exception. java.lang.NoSuchMethodError: No virtual method…
Karthik P
  • 33
  • 3
1
vote
0 answers

Mapping list as jetpack compose remember state - architecture point of view

I'm building form screen using Android Jetpack Compose. I have sealed class, which is containing this example classes: data class Description( val string: String? = null, ) : FormItemType() data class Comment( val string: String? =…
voximdo
  • 53
  • 2
  • 14
1
vote
0 answers

Jetpack compose functions not showing/working properly

enter image description herein the android studio, I made the setup configuration of jetpack compose but jetpack functions are not showing up or missing import statements I have tried everything but jetpack compose is not working properly [enter…
1
vote
2 answers

Generic shape in Jetpack compose

How to draw a generic shape with Jetpack compose? I want to draw roundedCornerCircle but the right side should have an inside curve instead of an outside curve. I tried to give a negative radius in roundedCornerShape but it is not working. Can…
1
vote
1 answer

How to apply AndroidView webview size to ModalBottomSheetLayout in jetpack compose

I have ModalBottomSheetLayout and its loading webview on it. But ModalBottomSheetLayout shows only part of the webview content. How can I change ModalBottomSheetLayout by the size of loaded content on webview? On the ModalBottomSheetLayout will be…
Slava
  • 443
  • 4
  • 12