Skip to content

Instantly share code, notes, and snippets.

@jezinka
Created April 28, 2017 10:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jezinka/a469e32a5393e19babe1901a9bf0767f to your computer and use it in GitHub Desktop.
Save jezinka/a469e32a5393e19babe1901a9bf0767f to your computer and use it in GitHub Desktop.
<android.support.percent.PercentRelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical">
<TextView
android:id="@+id/text1"
app:layout_widthPercent="90%"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
/>
<CheckBox
android:id="@+id/checkBox"
app:layout_widthPercent="10%"
android:layout_height="wrap_content"
android:layout_toEndOf="@id/text1" />
</android.support.percent.PercentRelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment