Skip to content

Instantly share code, notes, and snippets.

@andrey-shikhov
Created November 15, 2016 18:07
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 andrey-shikhov/6f65ca14bf3d44f0393a0f8ba6b9b764 to your computer and use it in GitHub Desktop.
Save andrey-shikhov/6f65ca14bf3d44f0393a0f8ba6b9b764 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:background="#fff"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.google.android.flexbox.FlexboxLayout
android:layout_width="match_parent"
android:background="#ccc"
android:layout_height="wrap_content">
<FrameLayout
android:background="#6495ed"
android:layout_width="0dp"
app:layout_flexGrow="1"
android:padding="8dp"
app:layout_alignSelf="center"
android:layout_height="wrap_content">
<TextView
android:background="#c0c"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="sometesttext"
/>
</FrameLayout>
<FrameLayout
android:background="#6495ed"
android:layout_width="0dp"
app:layout_flexGrow="1"
android:padding="8dp"
app:layout_alignSelf="center"
android:layout_height="wrap_content">
<TextView
android:background="#c0c"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="sometestt"
/>
</FrameLayout>
</com.google.android.flexbox.FlexboxLayout>
</FrameLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment