Eric Womer
12/11/2022, 9:58 PMRehan Sarwar
12/12/2022, 8:53 AMPeter Mandeljc
12/12/2022, 12:37 PMorg.jetbrains.kotlin.android
and kotlin-android
?Guilherme Delgado
12/12/2022, 4:27 PMNebil
12/12/2022, 5:10 PMdevhyeon0312
12/13/2022, 3:15 AMLazyRow(
modifier = modifier
.pointerInput(Unit) {
detectHorizontalDragGestures { change, dragAmount ->
coroutineScope.launch {
//Not Work : My Problem
}
}
}
) {
...
}
How can LazyRow detectHorizontalDragGestures?Elio Maroun
12/13/2022, 11:54 AMimport kotlinx.datetime.toJavaLocalDate
import kotlinx.datetime.toJavaLocalTime
I am getting unresolved error when I remove these libraries from gradle although they are not related, I tried to invalidate cache and restart but still the same issue.
implementation("com.github.thellmund.Android-Week-View:core:5.2.4")
implementation("com.github.thellmund.Android-Week-View:jsr310:5.2.4")
implementation("com.github.thellmund.Android-Week-View:emoji:5.2.4")
implementation("com.himanshoe:kalendar-endlos:1.0.0")
zsperske
12/13/2022, 6:13 PMthis@MyOuterClass
but I am getting a warning “This label is now resolved to ‘class MyOuterClass’ but soon it will be resolved to the closest ‘anonymous function’. Please consider introducing or changing explicit label name”
What is the correct way to reference an outer class?roman.belov
12/14/2022, 12:46 PMNebil
12/14/2022, 1:59 PMRaman Sharma
12/15/2022, 4:49 AMRaman Sharma
12/15/2022, 4:49 AMhfhbd
12/15/2022, 11:23 AMandroid
extension with the type of CommonExtension
Rizwan
12/16/2022, 5:38 AMAhmed Sellami
12/16/2022, 10:14 AMdata class Item(val a: Int, val b: Int)
val items = listOf(Item(1,2), Item(3,4))
val aList = // [1,3]
Omkar Amberkar
12/16/2022, 6:10 PMCLOVIS
12/16/2022, 9:46 PMsealed class
really not supported yet on Android?
{
"kind": "error",
"text": "com.android.tools.r8.internal.Jc: Sealed classes are not supported as program classes",
"sources": [
{
"file": "[PATH REDACTED]/NavigationMenu.class"
}
],
"tool": "D8"
}
Sarav Ramaswamy
12/17/2022, 7:32 AMerror: supertypes of the following classes cannot be resolved. Please make sure you have the required dependencies in the classpath:
class com.test.lib2.Lib2, unresolved supertypes: com.test.lib1.Lib1
If the App class is written in Java, I do not see the error. Any idea why the package boundary/visibility is an issue only for Kotlin and not for Java? I can use api
to get around this but my question is why Kotlin behaves diffierent?CLOVIS
12/17/2022, 9:52 AMCannot invoke "com.android.tools.idea.gradle.project.sync.GradleSyncListener.syncFailed(com.intellij.openapi.project.Project, String)" because "syncListener" is null
when syncing with ASSiddharth Sharma
12/17/2022, 4:13 PMEric Womer
12/17/2022, 7:49 PMRizwan
12/18/2022, 3:20 PMlpirro
12/18/2022, 6:19 PMdomain
module, and the implementation in the repository
module with the repository
module depending on the domain
one) but receiving an error when building the app:
DomainModule.kt - lives into :domain
module
@Module
@InstallIn(SingletonComponent::class)
object DomainModule {
@Provides
fun provideGetUpcomingLaunchesUseCase(repository: SpaceHubRepository): GetUpcomingLaunchesUseCase {
return GetUpcomingLaunchesUseCaseImpl(repository)
}
}
SpaceHubRepository.kt - lives into: :domain
module
interface SpaceHubRepository {
suspend fun getUpcomingLaunches(): Flow<List<Launch>>
}
RepositoryModule.kt - lives into :repository
module
@Module
@InstallIn(SingletonComponent::class)
object RepositoryModule {
@Provides
fun provideRepository(
apiService: SpaceHubApiService,
launchMapper: LaunchMapper
): SpaceHubRepository {
return SpaceHubRepositoryImpl(apiService, launchMapper)
}
@Provides
fun provideLaunchMapper(): LaunchMapper = LaunchMapperImpl()
}
SUBRATA SHARMA
12/19/2022, 12:46 PMDaniel Okanin
12/19/2022, 7:53 PMGal Kohen
12/20/2022, 8:41 AMPedro Alberto
12/20/2022, 4:33 PMSlackbot
12/20/2022, 7:49 PMSergio C.
12/21/2022, 10:34 AMfun TextView.drawableStart(drawableRes: Int) {
val drawable = ContextCompat.getDrawable(context, drawableRes)
drawable?.setBounds(0, 0, drawable.intrinsicWidth, drawable.intrinsicHeight)
setCompoundDrawables(drawable, null, null, null)
}
I want to do something like:
someTextview.drawableStart = R.drawable.someDrawable
Sergio C.
12/21/2022, 10:34 AMfun TextView.drawableStart(drawableRes: Int) {
val drawable = ContextCompat.getDrawable(context, drawableRes)
drawable?.setBounds(0, 0, drawable.intrinsicWidth, drawable.intrinsicHeight)
setCompoundDrawables(drawable, null, null, null)
}
I want to do something like:
someTextview.drawableStart = R.drawable.someDrawable
gildor
12/21/2022, 10:37 AMSergio C.
12/21/2022, 10:38 AMvar TextView.drawableStart: Int
set(drawableRes: Int) {
val drawable = ContextCompat.getDrawable(context, drawableRes)
drawable?.setBounds(0, 0, drawable.intrinsicWidth, drawable.intrinsicHeight)
setCompoundDrawables(drawable, null, null, null)
}
get() {
throw Error("Drawable Start Not available")
}
It works but It must be a var and have a getter to workgildor
12/21/2022, 11:01 AMSergio C.
12/21/2022, 11:04 AMInitializer is not allowed here because this property has no backing field
gildor
12/21/2022, 11:04 AMSergio C.
12/21/2022, 11:04 AMgildor
12/21/2022, 11:05 AMSergio C.
12/21/2022, 11:06 AMgildor
12/21/2022, 11:06 AMSergio C.
12/21/2022, 11:07 AMgildor
12/21/2022, 11:07 AMSergio C.
12/21/2022, 11:14 AMgildor
12/21/2022, 11:16 AMSergio C.
12/21/2022, 11:18 AM