Skip to content

Instantly share code, notes, and snippets.

@chankruze
Created August 15, 2019 15:25
Show Gist options
  • Save chankruze/d50eb986e7fa59b2e85b38bdab5bf6c9 to your computer and use it in GitHub Desktop.
Save chankruze/d50eb986e7fa59b2e85b38bdab5bf6c9 to your computer and use it in GitHub Desktop.
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerVertical="true">
<TextView
android:id="@+id/tvText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:text="OR"
android:textColor="@color/textColor" />
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_centerVertical="true"
android:layout_marginLeft="48dp"
android:layout_toLeftOf="@id/tvText"
android:background="@color/textColor" />
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_centerVertical="true"
android:layout_marginRight="48dp"
android:layout_toRightOf="@id/tvText"
android:background="@color/textColor" />
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment