Ich, m versuchen, die Schwerkraft-Center, aber funktioniert nicht. Hier ist mein XML. Was mache ich falsch?Schwerkraft arbeitet nicht im Layout
Ich angehängt Bild wie XML jetzt aussieht.
ich, habe ein Root-Layout, teilte ich es zwei Teil, und ich möchte jeden Teil Schwerpunkt
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dip"
android:layout_weight="2"
android:background="@color/bluefontcolor"
android:gravity="center_vertical"
android:orientation="horizontal"
android:weightSum="2">
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center">
<com.developer.lucky.modernbalda.Flipmeter
android:id="@+id/scoreboard_1"
android:layout_width="0dip"
android:layout_height="@dimen/_60sdp"
android:layout_gravity="center"
android:layout_margin="10dp"
android:layout_weight="1" />
</LinearLayout>
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center">
<com.developer.lucky.modernbalda.Flipmeter
android:id="@+id/scoreboard_2"
android:layout_width="0dip"
android:layout_height="@dimen/_60sdp"
android:layout_gravity="center"
android:layout_margin="10dp"
android:layout_weight="1" />
</LinearLayout>
</LinearLayout>
i versuchte –