Skip to content

Commit

Permalink
Use weightSum
Browse files Browse the repository at this point in the history
  • Loading branch information
chiuki committed Jan 15, 2012
1 parent 740e41c commit c5275f6
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions res/layout/main.xml
Expand Up @@ -10,19 +10,12 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="horizontal" >
<View
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1" />
android:orientation="horizontal"
android:weightSum="3">
<com.sqisland.android.square_view.SquareView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="#f00" />
<View
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1" />
</LinearLayout>
</FrameLayout>

0 comments on commit c5275f6

Please sign in to comment.