kotlin tag

71 questions


1 answers
408 views
0
[Kotlin] Private question.

private class PP { private var i = 1 private fun privateF() { i += 1 } fun access() { privateF() }}class OC { fun test() { val pc = PP() }}Here, why is it possible to create an object witho...

1 years ago

1 answers
408 views
0
I want to get permission using Jetpack Composer on Android, but I can't see the confirmation screen.

I would like to make a permission request using Jetpack Composer and Accompanist on Android in a Jetpack-like way.https://google.github.io/accompanist/permissions/I'd like to get permission for Foregr...


1 answers
513 views
0
How to include ExpandableListView in ExpandableListView

Ex ExpandableListView (id:test1)②ExpandableListView (id:test2)が is not displayed.①If you put を and 記載 in the same xml file, it will be displayed without any problems.If you put を in の,valtest1=require...

2 years ago

1 answers
478 views
0
Android emulator does not start

I tried to start the android emulator by pressing the run button, but the following error occurred and it didn't work.US>Error statementI uploaded the kotlin version by referring to the post below, bu...


1 answers
297 views
0
I want to get GPS information at distance intervals.

I am currently creating an Android app on Kotlin, but I want to use the FusedLocationProviderClient to get GPS information at regular distance intervals, but I can't get it well.It's natural that it's...

2 years ago

1 answers
434 views
0
I want to read NFC tag data only while I press the button on Android.

On Android, there is a button on the screen, and I want to read NFC tags only while I press that buttonI'm trying to do it with the code below, but when I put the NFC card close while I was pressing t...

2 years ago

1 answers
476 views
0
I can't use textInputLayout on Android Studio

How do I use textInputLayout in Android studio?I looked it up on Google and it seems that the support has already ended, so please let me know what I can do instead.

2 years ago

1 answers
417 views
0
I want to find view all attributes in Android studio.

The view all attributes at the bottom cannot be found.The second picture is a sample, but The first picture will be the one I'm developing.I want to find view all attributes, but I can't find view all...

2 years ago

2 answers
86 views
0
I want to prevent Kotlin class method invocation as compilation error

Since Kotlin does not want to invoke a specific method in only one of several implementation classes for an interface, we would like to prevent it from being used by making a compilation error.Specifi...

2 years ago

2 answers
145 views
0
How to split where the list values are different

How to split where the list values are differentCurrently in List<Integer>{1,1,2,2,3,3,3,3,3}and so on.Is it possible to divide this between 1 and 2 and between 2 and 3 and return List<List&g...

2 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.