Skip to content

text does not scale in TextView #12

@mgood7123

Description

@mgood7123
fun t(a: String): TextView {
            val textView = TextView(this)
            textView.text = a
            textView.setTextColor(Color.WHITE)
            textView.setAutoSizeTextTypeWithDefaults(TextView.AUTO_SIZE_TEXT_TYPE_UNIFORM)
            textView.setPadding(0, 0, 0, 0)
            textView.setTypeface(Typeface.MONOSPACE, Typeface.BOLD)
            return textView
        }

        AndroidToolkit.setup(this, R.drawable::class.java)
        val table = Table()
        table.tableLayout.debug()
        table.defaults().expand()
        table.add(t("a"))
        table.add(t("a"))
        Constraint.addView(table)

https://s.amsu.ng/9DXIX8eEL06N

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions