私はアプリのメイン画面のレイアウトを持っています。これはevernoteスタイルを持ちたいと思っています。 はこれまでのところ、私のコードはこれです:Android:Evernoteスタイルのレイアウト
そして、これは私はそれがどのように見えるしたい方法です:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:gravity="center_vertical|center_horizontal"
android:orientation="vertical" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom|left"
android:orientation="horizontal" >
<ImageButton
android:id="@+id/btn1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/button" />
<ImageButton
android:id="@+id/btn2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/button" />
</LinearLayout>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom|center"
android:orientation="horizontal" >
<ImageButton
android:id="@+id/btn3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/button" />
<ImageButton
android:id="@+id/btn4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/button" />
</LinearLayout>
</LinearLayout>
これは、それがどのように見えるかです
これをどのように達成できますか?このようなボタンをグループ化しますか?
ありがとうございます!
は、ダッシュボードパターンです。この質問をチェックする:http://stackoverflow.com/questions/2873568/android-dashboard-pattern-第2の回答 –
http://stackoverflow.com/questions/8212035/android-gridlayout-and-space-backport – Siyamed