水平モードで数値ピッカーを作成したいのですが、android:orientation="horizontal" を設定してもまだ機能しません。下の写真のように、水平モードでナンバーピッカーを作成するにはどうすればよいですか?
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.sam.weighttrack.KeyInWeightF">
<LinearLayout
android:id="@+id/payment2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="horizontal" >
<NumberPicker
android:id="@+id/numberPicker1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal" />
</LinearLayout>
</RelativeLayout>