Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

text does not scale in TextView

Open
#12 13 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
android, kotlin
Domain
mobile

Research direction

Reproduce the supplied Kotlin example using TextView autosizing, Table.defaults().expand(), and Constraint.addView. Read the table layout behavior around the shown setup and determine why the TextView text does not scale; done means the example visibly resizes its text as intended.

Written by the indexing model from the issue text.

Description

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

Dominant language
Java
Stars
294
Forks
67
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from EsotericSoftware/tablelayout

All issues in EsotericSoftware/tablelayout

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.