Skip to content

Instantly share code, notes, and snippets.

@jezinka
Created Apr 28, 2017
Embed
What would you like to do?
<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