Skip to content

Instantly share code, notes, and snippets.

@JakeSteam
Created January 6, 2019 01:41
Show Gist options
  • Save JakeSteam/46b0bd81d50d390a3bf6ddd1db8aacde to your computer and use it in GitHub Desktop.
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
<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>
<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