Created
January 6, 2019 01:41
-
-
Save JakeSteam/46b0bd81d50d390a3bf6ddd1db8aacde to your computer and use it in GitHub Desktop.
"Using break strategy to fix unusual Android TableRow text wrapping issues" @ https://blog.jakelee.co.uk/using-break-strategy-to-fix-unusual-android-text-wrapping-issues
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<TableRow | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="@string/Label_Email" /> | |
<TextView | |
android:id="@+id/customer_email" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_weight="1" | |
style="@style/SimpleBreakStrategy"/> | |
</TableRow> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style name="SimpleBreakStrategy"> | |
<item name="android:breakStrategy" tools:targetApi="m">simple</item> | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment