Skip to content

Instantly share code, notes, and snippets.

View rizwan-sohaib-kinnect2's full-sized avatar

Rizwan Sohaib rizwan-sohaib-kinnect2

  • Kinnect2
View GitHub Profile
@chrishuan9
chrishuan9 / gist:3192782
Created July 28, 2012 10:14
50/50 Layout Split with RelativeLayout in Android by using an invisible View and centering it
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<View android:id="@+id/strut"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_centerHorizontal="true"/>
<Button
android:layout_width="0dp"
android:layout_height="wrap_content"