text does not scale in TextView
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
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)
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from EsotericSoftware/tablelayout
-
JavaFX support Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
EsotericSoftware/tablelayout#5 · 4 comments · 1 reaction ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
EsotericSoftware/tablelayout#1 · 2 comments ·
All issues in EsotericSoftware/tablelayout
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
elastic/gradle-plugins#157 ·
-
enhancement Tools
Difficulty 1/5 Under an hour Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
apache/rocketmq-dashboard#5008 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
DETECT_PARAMETER_NAMES=false silently disables @ConstructorProperties-based Creator detection too Open
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
FasterXML/jackson-databind#6229 ·