ispbox
09/22/2019, 8:45 AMview.dip()
to be able to deal with floating values where needed. Because without that you have to use your own helper or write extra code:
elevation = dip(4).toFloat()
louiscad
09/22/2019, 9:24 PMdp
(1️⃣ ), dip
(2️⃣) or both (0️⃣)?ispbox
09/23/2019, 3:06 PMcolors.xml
file (something like <color name="colorBlack">#000000</color>
)
But is there any better way having in mind that we try to eliminate xml files in our projects? 🙂 I'm thinking about some helper class with constant values:
const val Black = 0x000000.toInt()
Does it sound reasonable? Is it somehow better than xml? Or it really doesn't matter in practice? What do you think?louiscad
09/25/2019, 1:10 PMenum class InsetType { None, Padding, Margin }
fun View.inset(top: InsetType = None, bottom: InsetType = None)
nickk
10/08/2019, 3:01 PMselector
? It was pretty basic, but in many cases it was just what I needed. I do not see something similar.
This means I would have to use the RecycleView DSL to create something similar?
Actually, RecyclerView
is an overkill. I would go for a custom alert.jmfayard
10/26/2019, 5:27 AMmiha-x64
11/02/2019, 11:06 PM.withStyledAttributes(attr) { getResourceId(it, 0) }
. Should I create a PR? None of the files below look suitable, should I create a new one?
https://github.com/LouisCAD/Splitties/tree/8782cbb5d039a553ed2c5cf795eb53a86146ce91/modules/resources/src/androidMain/kotlin/splitties/resourcesmiha-x64
11/12/2019, 5:46 PMspace()
.Sergio Crespo Toubes
12/04/2019, 8:48 AMstartActivityForResult
? I think is not implemented yetLeoColman
12/06/2019, 3:09 AMmiha-x64
12/10/2019, 9:28 PMappctx
module? Just found it thanks to Analyze APK. For some reason I can't even see it in 'merged manifest' or 'external libraries'.
I understand the motivation but don't want Android to create one more component and and to have one more singleton.Harun
01/21/2020, 11:20 AMSergio Crespo Toubes
02/11/2020, 3:16 PMstart
and bundle extras with BundleSpec
?
start<MyActivity> {
MyActivity.ExtrasSpec.weight = weight
MyActivity.ExtrasSpec.height = height
}
patrickdelconte
04/04/2020, 3:40 PMadd()
for nesting
verticalLayout {
add(textView {
textResource = R.string.some_text
}, lParams())
}
Coming from other dsl’s it feels a bit cumbersome to me, I’d expect to be able to write something like
verticalLayout {
textview {
textResource = R.string.some_text
}
}
Am I missing something? I don’t have much experience with androidlouiscad
05/03/2020, 8:38 PMdimsuz
06/08/2020, 11:25 AMColorStateList
in code? I mean not loading from resources (colorSL
), but actually specifying states and colors manually.ispbox
07/05/2020, 12:00 PMmiha-x64
07/21/2020, 8:24 PMdip(value: Int): Int
dp(value: Int): Float
This looks counterintuitive to me.
Also, I miss (Float) -> Int overload: having Float dp makes much more sense than having Float pixels.miha-x64
07/21/2020, 8:37 PMreturn viewFactory(V::class.java
miha-x64
07/28/2020, 2:10 PMmiha-x64
07/28/2020, 9:00 PMContext.recyclerView()
and View.recyclerView()
have different behaviour?
https://github.com/LouisCAD/Splitties/blob/8782cbb5d039a553ed2c5cf795eb53a86146ce91/modules/views-dsl-recyclerview/src/androidMain/kotlin/splitties/views/dsl/recyclerview/RecyclerView.kt#L27pawegio
08/21/2020, 9:02 AMCaused by: java.lang.IllegalStateException: Couldn't obtain compiled function body for public final inline fun <get-progressBar>(): splitties.views.dsl.core.styles.ProgressBarAndroidStyles defined in splitties.views.dsl.core.styles.AndroidStyles[PropertyGetterDescriptorImpl@4d0bbd88]
at org.jetbrains.kotlin.codegen.inline.InlineCodegen$Companion.getCompiledMethodNodeInner(InlineCodegen.kt:579)
at org.jetbrains.kotlin.codegen.inline.InlineCodegen$Companion.createInlineMethodNode$backend(InlineCodegen.kt:543)
at org.jetbrains.kotlin.codegen.inline.InlineCodegen.performInline(InlineCodegen.kt:143)
... 74 more
pawegio
09/15/2020, 12:58 PM3.0.0-dev-105
and 3.0.0-beta01
) with assembling custom build type. I have alpha build type declared in app
module as follows:
buildTypes {
getByName("alpha") {
applicationIdSuffix = ".alpha"
versionNameSuffix = "-alpha"
}
}
Pierfrancesco Gulinelli
09/16/2020, 12:45 PMmiha-x64
09/19/2020, 1:51 PMUnreliableToastApi
warning. Nice approach!Pierfrancesco Gulinelli
10/02/2020, 1:55 PMSergio Crespo Toubes
03/08/2021, 12:19 PMdimsuz
04/20/2021, 11:29 AMandroid:textAppearance="?attr/textAppearanceSubtitle1"
Tried to find somthing like styledResourceId(R.attr.textAppearanceSubtitle1)
, but no luck.ispbox
04/26/2021, 8:22 PMribesg
06/02/2021, 11:16 AMsplitties-coroutines
from my Kotlin Native project fixed an error caused by (I think) the difference in kotlinx.coroutines version it was compiled against