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

verticalArrangement = Arrangement.Bottom for Column not working

I have a Jetpack Compose composable in a column beginning with a icon, title, textbody and a pager row: Box(modifier = Modifier .fillMaxSize() .background(color = TVTheme.colors.blue) ) { val bigPadding = 334.dp val smallPadding = 24.dp …
1
vote
1 answer

Create Common Edit Text-field in Jet-pack Compose

I am new in jetpack compos. Can anyone tell me It's Right to Create Common Composeble Function? Common Function @Composable fun commonTextFiled( hint: String, icon: ImageVector, keyboardType: KeyboardType = KeyboardType.Text, …
1
vote
0 answers

How to make a Jetpack Compose LazyVerticalGrid Not Scrollable

I would like to make a static grid using Jetpack Compose. Currently I am working on Compose Multiplatform and I am having issues with resizing the window - I would like all of my elements in the grid to have a static (square) aspect ratio, like so…
1
vote
1 answer

Where is Preferences DataStore (Jetpack) stored?

SharedPreferences (though has many downsides) has the upside of accessing the XML where the data is stored. Where does Jetpack DataStore store the data and is the file accessible?
1
vote
1 answer

Make image go outside of boundaries in Jetpack Compose

I`m new to compose and am trying to use an Image() composable with this specifics: The Image needs to have more height and width than it`s parent but from a fixed offset (the green dot). How can I achieve this design with jetpack compose?
1
vote
0 answers

How to navigate with combination of default and simple arguments in jetpack compose?

Here is my Screens object object AssignScreen : Screens("assign_screen/{${Constants.TRIP_ID}}?dockId={${Constants.DOCK_ID}}") { fun passTripAndDockId(tripId: String,dockId : String = ""): String { return…
1
vote
1 answer

In scaffold ,error has been showed like " No value passed for parameter 'content' "- I have attached snap below

I have already developed topBar and bottom bar separately.In ActivityScreen function line number 17,error has been occured.
user20108370
1
vote
1 answer

(Jetpack Compose) -> Loading State is not working correctly

I tried to show a loading spinner, but loading state is always showing a false value on a compose function. I've created a custom spinner, but it not shows @Composable private fun MainContent(viewModel: SearchJourneyViewModel = hiltViewModel()) { …
xamzaty
  • 31
  • 1
1
vote
1 answer

@Composable invocations can only happen from the context of a @Composable function-Jetpack

@SuppressLint("SetJavaScriptEnabled") @Composable fun WebPageScreen(urlToRender: String) { AndroidView(factory = { WebView(it).apply { layoutParams = ViewGroup.LayoutParams( …
user20108370
1
vote
1 answer

Bottom Sheet content is showing for a second before activity content in Jetpack compose

I have implemented bottom sheet in jetpack compose with BottomSheetScaffold in a screen and default state is initialValue = BottomSheetValue.Collapsed. When screen appears on device then Bottom sheet content is displayed for a second and then…
1
vote
1 answer

how to upgrade jetpack on jetson tx2

I'm using Jetson TX2. Current jetpack version : 4.5-b129 I was following update tutorial from nvidia website (https://docs.nvidia.com/jetson/jetpack/install-jetpack/index.html). I did: sudo apt update sudo apt dist-upgrade sudo apt install…
rumcajs
  • 129
  • 1
  • 10
1
vote
1 answer

Modifier.fillMaxSize error unresolved reference error in jetpack compose

I'm keep getting this error in jetpack compose. My error - e: learn/app/src/main/java/com/learn/MainActivity.kt: (41, 32): Unresolved reference: fillMaxSize My code class MainActivity : ComponentActivity() { override fun…
1
vote
0 answers

How to clearFocus from TexttFields when scrolling Column on Compose?

I have a column, that contain few TextFields. This column is bigger than screen of the device, so it's scrollable. I want to ClearFocus for TextFields when user scrolles screen. I came up with such solution: Created scroll state and added it to my…
1
vote
0 answers

prevent button click from being recognized on underlying composable

I am using Jetpack Compose and have a composable with a video player. When you tap the screen I have a listener that pauses the video. On the top of the screen I have a top AppBar with an icon button. When I tap the icon button the onClick fires…
LilMoke
  • 3,176
  • 7
  • 48
  • 88
1
vote
2 answers

How to write a text on the image with coil in Jetpack Compose?

How can we write a text on the image with coil in Jetpack Compose? For example, I want to write the IMDB score of the movie image that coil is showing in Jetpack Compose. and maybe with a yellow background. is it possible? thanks for help just for…