Fix default layout being incorrectly displayed in RTL languages

This commit is contained in:
Rafael Caetano 2024-08-17 15:38:52 +01:00
parent 8b8e7d3fd6
commit 5a45d2cd99

View File

@ -18,6 +18,10 @@ open class LayoutView(context: Context, attrs: AttributeSet?) : FrameLayout(cont
protected lateinit var viewBuilderFactory: LayoutComponentViewBuilderFactory
protected val views = mutableMapOf<LayoutComponent, LayoutComponentView>()
init {
layoutDirection = LAYOUT_DIRECTION_LTR
}
fun setLayoutComponentViewBuilderFactory(factory: LayoutComponentViewBuilderFactory) {
viewBuilderFactory = factory
}