androidstudioでmapを出しているのですが、ボタンを複数配置できずに困っています。
<fragment xmlns:android="http://schemas.android.com/apk/res/android" xmlns:map="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/map" android:name="com.google.android.gms.maps.SupportMapFragment" android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_alignParentBottom="true" > <Button android:text="button1" android:id="@+id/Button1" android:layout_width="wrap_content" android:layout_height="wrap_content" /> <Button android:text="button2" android:id="@+id/Button2" android:layout_width="wrap_content" android:layout_height="wrap_content" />
現在このような感じで書いているのですが左上にbutton2という一つのボタンしか表示されません。また、button2の部分を削除すると正常にbutton1が表示されます。
designからのボタンの配置も試みましたが、errorとなってしまいました。
どうすればよいか見当がつかないためお力を貸していただけると助かります。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/09/29 05:33