これは静かです。しかし、なぜこれが機能しないのかわかりません。
これは私がxmlに持っているコードです:
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<Button
android:id="@+id/one"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center_horizontal"
android:paddingBottom="15dp"
android:background="@drawable/blue9Patch"
android:paddingTop="12dp"
android:text="One" />
<Button
android:id="@+id/shareProductButton_shareOptions"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center_horizontal"
android:paddingBottom="15dp"
android:background="@drawable/blue9Patch"
android:paddingTop="12dp"
android:text="Two" />
</LinearLayout>
これは、Eclipse のグラフィカルレイアウトで得られるものです。
しかし、エミュレータでは次のようになります。
これは、背景として使用している 9 パッチの画像です。
デバイス上では問題なく動作すると思っていましたが、そうではありませんでした。
最初の画像のようにしたいです。
ありがとうございました。