Slackbot
02/02/2023, 6:29 PMSlackbot
02/02/2023, 7:34 PMspierce7
02/03/2023, 4:30 PMkenkyee
02/03/2023, 4:35 PMam414
02/05/2023, 11:04 AMRaj Bopche
02/05/2023, 5:28 PMLouis Gautier
02/06/2023, 1:22 AMursus
02/06/2023, 10:47 PMtasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach { task ->
task.kotlinOptions {
jvmTarget = "11"
}
}
and it seems to work no problem, so..what's the catch?¨'madhur
02/07/2023, 3:58 AMMamboBryan
02/07/2023, 7:24 AMNav
02/07/2023, 8:43 AM<Button
android:id="@+id/profileButton"
android:layout_width="28dp"
android:layout_height="28dp"
android:layout_marginStart="200dp"
android:layout_marginTop="7dp"
android:background="@drawable/round_corners_avatar"
android:text="AL"
android:textColor="#FFFFFF"
android:onClick="profileBtnClicked"
android:textSize="16sp" />
I would like to change the android:layout_marginStart
parameter based on the information i receive from resources.displayMetrics.density
However I do not know how to access marginStart parameter programatically.
Any clues would be much appreciated.Simon Hardt
02/07/2023, 9:35 AM8.0.0-beta01
. now I have to use the correct import for the R class when a resource is in a different module. is this intended? normally, one can use the R of the current module and get access to all other resources in all other modules automatically.
it's now com.example.text.R.string.
instead of R.string.
(with import com.example.ui.R
)Slackbot
02/07/2023, 12:46 PMKotlinLeaner
02/07/2023, 5:31 PMFlow
or Channel
in kotlin? I want to build a Queue
for commands. ThanksDaniele B
02/07/2023, 7:31 PMVelu
02/08/2023, 6:00 AMKrishna Chinya
02/08/2023, 6:52 AMwithContext(dispatchers.network.limitedParallelism(5)) {
async { //build queuedrequest list }
queuedRequests.awaitAll()
// then I process the request.
}
Android Service calls the above code snippet
scope = CoroutineScope(<http://dispatchers.io|dispatchers.io> + SupervisorJob())
// Then
scope.launch {
// calling the above code in repository
}.launchIn(scope)
cross posting from #coroutines for wider visibilityMinn Khant Ko Ko
02/08/2023, 1:59 PMfitermay
02/08/2023, 3:02 PMEileen
02/08/2023, 4:24 PMJorge Domínguez
02/09/2023, 2:15 AMExecution failed for task ':app:kaptGenerateStubsDebugKotlin'.
> 'compileDebugJavaWithJavac' task (current target is 1.8) and 'kaptGenerateStubsDebugKotlin' task (current target is 17) jvm target compatibility should be set to the same Java version.
Consider using JVM toolchain: <https://kotl.in/gradle/jvm/toolchain>
but my Gradle config is:
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = "1.8"
}
so I'm not sure where target 17 is setup, has somebody experienced the same error?Nav
02/09/2023, 3:04 AMBottomNavigationItem
but I want the icon image of the profile to be the first character of the username when the user registers.
Can anyone point me to some resources on recommended methods of how to dynamically update the imageVector of Icon(imageVector = , contentDescription = null)
to the initials of the username?
Thank you.Hovo
02/09/2023, 7:47 AMFrank van der Laan
02/09/2023, 8:40 AMB Chandrasaimohan
02/10/2023, 11:54 AMB Chandrasaimohan
02/10/2023, 11:54 AMHariharasudhan D
02/10/2023, 3:17 PMval textState = mutableStateOf("")
OutlinedTextField(
value = textState.value,
onValueChange = {
textState.value = convertToTSP(it)
})
fun convertToTSP(val:String){
return (NumberFormat.getNumberInstance(Locale.getDefault()) as DecimalFormat).apply {
val tsp = "##,###.##"
applyPattern(tsp)
}.format(value.toDouble())
}
While doing like this my cursor is not placed at the end of the string every time. Instead it placed around somewhere middle in between the string.
I've also tried VisualTransformation for this but It cause one more issue where on tap on anywhere in the textfield my cursor is not moving anywhere other than the end of the text.
Is anyone faced these similar issue? Please let if there any ways to solve this issue. Thanks in Advance
#compose #androidIgor Bozin
02/10/2023, 8:11 PMAbhishek
02/11/2023, 6:03 PMbrabo-hi
02/12/2023, 7:07 AM