dagomni
05/28/2020, 11:57 AMAdapterList with Modifier.fillMaxSize()
-Box with Modifier.wrapContentHeight() + Modifier.fillMaxWidth()
--ConstraintLayout with Modifier.wrapContentHeight() + Modifier.fillMaxWidth() (I can also see non-stop constraints measure happening, it also gets logged)
---Box with Modifier.fillMaxWidth() + Modifier.aspectRatio(16 / 9f)
----WithConstraints
-----Image (but it also happens with empty WithConstraints block)
Crash:
java.lang.IllegalStateException: Asking for measurement result of unmeasured layout modifier
at androidx.ui.core.LayoutNodeWrapper.getMeasureResult(LayoutNodeWrapper.kt:63)
at androidx.ui.core.LayoutNodeWrapper.getMeasuredSize(LayoutNodeWrapper.kt:53)
at androidx.ui.core.Placeable.getWidth(Placeable.kt:40)
at androidx.ui.core.LayoutNode.getWidth(LayoutNode.kt:373)
at androidx.ui.foundation.ListState.composeAndMeasureNextItem-BTEqjtU(AdapterList.kt:237)
Kazemihabib1996
05/28/2020, 3:38 PMandroidx.ui:ui-material-icons-extended
removed in dev12?Javier
05/28/2020, 5:37 PMRicardo C.
05/28/2020, 5:38 PMcamkadev
05/28/2020, 6:25 PMdrawRect
doesn’t respect parents Padding
starting from dev11
versiondagomni
05/28/2020, 6:53 PMgroup
tags inside a vector drawable are not getting applied when I load the drawable using vectorResource. Should I extract them for each drawable and apply manually using DrawLayerModifier or is it something that's getting fixed soon? 🤔manueldidonna
05/28/2020, 7:55 PMDropdownMenuItem
on dev12. A ripple modifier is applied after the clickable one, so the onClick listener passed to the composable is never invokedromainguy
05/28/2020, 10:39 PMcaelum19
05/28/2020, 10:39 PMFAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:compileDebugKotlin'.
> Could not resolve all dependencies for configuration ':app:kotlinCompilerPluginClasspath'.
> Could not create task ':app:extractDeepLinksDebug'.
> Cannot obtain value from provider of environment variable 'ANDROID_AAPT_IGNORE' at configuration time.
Use a provider returned by 'forUseAtConfigurationTime()' instead.
any pointers?allan.conda
05/29/2020, 9:25 AMBox
behaves like Column
now and Container
is deprecatedSocheat KHAUV
05/29/2020, 1:26 PMval (postsState, refreshPosts) = refreshableUiStateFrom(postsRepository::getPosts)
I am a kotlin beginner, mabye could someone explain what mean ?dagomni
05/29/2020, 1:35 PMZach Klippenstein (he/him) [MOD]
05/30/2020, 1:24 AMAdapterList
or WithConstraints
?carbaj0
05/30/2020, 9:51 AMvar text by state { "empty" }
var result by state { "" }
launchInComposition { result = getData(text) }
FilledTextField(
value = text,
onValueChange = { text = it },
label = { Text("Label") }
)
Socheat KHAUV
05/30/2020, 3:54 PMZach Klippenstein (he/him) [MOD]
05/31/2020, 6:07 PMe: kotlin.UninitializedPropertyAccessException: Parent not initialized: org.jetbrains.kotlin.ir.declarations.impl.IrValueParameterImpl@e27c4d
Posting eagerly just in case @Leland Richardson [G] already fixed this one too 😜Socheat KHAUV
06/01/2020, 4:53 PMrophuine
06/01/2020, 11:53 PMjava.lang.IllegalStateException: Not in a frame
at androidx.compose.frames.FramesKt.currentFrame(Frames.kt:180)
W/System.err: at androidx.compose.frames.FramesKt.writable(Frames.kt:466)
at androidx.compose.frames.FramesKt._writable(Frames.kt:462)I'm completely new to Android dev - most of my mobile dev before has been using xplat frameworks like Xamarin and React Native. I've managed to update to dev12. I suspect the problem is related to not being on the UI thread, but being so new to Android dev in general, and there not being many examples out there because Compose is so new, my Google-fu is failing me. Coroutines keep coming up but I can't quite work out the api. Can someone point me in the right direction?
Javier
06/02/2020, 7:57 AMLilly
06/02/2020, 8:11 PMhenrikhorbovyi
06/02/2020, 11:10 PMhint
for TextField? 😮henrikhorbovyi
06/02/2020, 11:19 PMDiego Marulanda
06/03/2020, 2:19 AMKazemihabib1996
06/03/2020, 8:51 AM@Composable
fun SimpleSizeModifier() {
// The result is a 50.dp x 50.dp red box centered in a 100.dp x 100.dp space.
// Note that although a previous modifier asked it to be 100.dp x 100.dp, this
// will not be respected. They would be respected if preferredSize was used instead of size.
Box(
Modifier
.size(100.dp, 100.dp)
.size(50.dp, 50.dp),
backgroundColor = Color.Red
)
}
So it's another way of adding padding but instead of add a padding value we create some empty space and put a 50x50 box inside it.
Am I right?Elena Boiko
06/03/2020, 12:08 PMGuy Bieber
06/03/2020, 3:50 PMGuy Bieber
06/03/2020, 4:01 PMGuy Bieber
06/03/2020, 4:01 PMGuy Bieber
06/03/2020, 4:40 PMkotlinCompilerVersion "1.3.70-dev-withExperimentalGoogleExtensions-20200424" //dev-11
But I get errors like this:
(24, 36): Class 'kotlin.Lazy' is compiled by a pre-release version of Kotlin and cannot be loaded by this version of the compiler
romainguy
06/03/2020, 9:44 PMromainguy
06/03/2020, 9:44 PMGuy Bieber
06/03/2020, 9:58 PM<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
tools:replace="android:theme"
android:theme ="@style/AppTheme">
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<service android:name="com.nikolamotor.bluetoothle.BluetoothLeService" />
</application>
Vinay Gaba
06/03/2020, 10:02 PM<item name="android:windowBackground">color_name</item>
Hopefully Romain was referring to this and not some compose magic that I was unaware about 😅AndroidManifest
and also use a different MaterialTheme
inside the activity ? I’m guessing MaterialTheme
would be what the user sees on the screen?romainguy
06/03/2020, 10:07 PMGuy Bieber
06/03/2020, 10:08 PMvar splashView = SplashView()
setContent {
MaterialTheme {
splashView.view()
}
}
Vinay Gaba
06/03/2020, 10:13 PMdarkColorPalette()
Guy Bieber
06/03/2020, 10:16 PMMaterialTheme(colors = darkColorPalette())
Vinay Gaba
06/03/2020, 10:24 PMval light = lightColorPalette()
val dark = darkColorPalette()
val colors = if (isSystemInDarkTheme()) { dark } else { light }
Guy Bieber
06/03/2020, 10:25 PMVinay Gaba
06/03/2020, 10:26 PMSplashView
is a composable?Guy Bieber
06/03/2020, 10:28 PMVinay Gaba
06/03/2020, 10:28 PMMaterialTheme.colors.surface
or MaterialTheme.colors.primaryColor
fun Card(
modifier: Modifier = Modifier,
shape: Shape = MaterialTheme.shapes.medium,
color: Color = MaterialTheme.colors.surface,
contentColor: Color = contentColorFor(color),
border: Border? = null,
elevation: Dp = 1.dp,
content: @Composable () -> Unit
) {
MaterialTheme.colors.surface
by default when you don’t give it a colorGuy Bieber
06/03/2020, 10:31 PMAdam Powell
06/03/2020, 10:51 PM@style/AppTheme.NoActionBar
theme declaration from the activity element in your manifest, it'll take you over to the resource xml file that holds that theme in your app. (probably res/values/styles.xml
if you're using the default project template)@style/Theme.AppCompat.Light.NoActionBar
- get rid of the .Light
part in there.Guy Bieber
06/04/2020, 3:06 AMandroid:theme="@style/AppTheme.NoActionBar">
romainguy
06/04/2020, 5:47 AMAdrian Blanco
06/04/2020, 7:34 AM