Skip to content

Instantly share code, notes, and snippets.

@cthulhuplush
Created February 17, 2017 15:53
Show Gist options
  • Save cthulhuplush/7139225e7a69336a84379c1f755fc57d to your computer and use it in GitHub Desktop.
Save cthulhuplush/7139225e7a69336a84379c1f755fc57d to your computer and use it in GitHub Desktop.
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<RelativeLayout
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_centerInParent="true">
<ImageView
android:id="@+id/fragment1_logo"
android:layout_width="90dp"
android:layout_height="90dp"
android:layout_centerVertical="true"
android:src="@drawable/ic_bynder_logo"
android:tint="@color/colorPrimary"
android:transitionName="@string/logoTransitionName"/>
<ImageView
android:id="@+id/fragment1_text"
android:layout_width="wrap_content"
android:layout_height="90dp"
android:layout_marginLeft="10dp"
android:layout_centerVertical="true"
android:layout_toRightOf="@+id/fragment1_logo"
android:src="@drawable/ic_bynder_text"/>
</RelativeLayout>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment