上部にバナーを含むUIを作成しようとしていますが、下の1つのテーブルの行には垂直に並べられたボタンのリストがあります...AndroidのUI - ボタンを中央に配置し、垂直方向に並べ替えます。
私のコード今のところです...
<?xml version="1.0" encoding="utf-8"?>
<Button android:id="@+id/button1" android:layout_height="wrap_content"
android:layout_width="wrap_content" android:text="Theme">
</Button>
<Button android:id="@+id/button1" android:layout_height="wrap_content"
android:layout_width="wrap_content" android:text="Theme2">
</Button>
<Button android:id="@+id/button1" android:layout_height="wrap_content"
android:layout_width="wrap_content" android:text="Theme3">
</Button>
これはすべてのボタンを中央に配置しているのですが、どのように各ボタンをフローさせるのですか?私は基本的にあなたが中心にそれらを作るためにすべてのボタンにandroid:layout_weight="1"
を使用する必要がhttp://www.appbrain.com/app/friday-soundboard-rebecca/com.randomcrap.soundboard
こんにちは、このおかげで、垂直配置は機能しますが、ボタンは左上の中央に配置されていません。 – david99world
これをチェックしてくださいnice ,,,,,,,,,,,,,, –