0
MapFragment 아래에 메뉴 패널을 추가하려고하지만 플로팅과 같이 항상 화면 중간에 표시됩니다. 몇 가지 레이아웃 구성을 시도했지만 nothings 작동하는 것 같습니다.MapFragment 아래에 일반 레이아웃 추가하기
어떤 생각 :
<FrameLayout 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=".MapActivity" >
<fragment
android:id="@+id/panel_map"
android:name="com.google.android.gms.maps.MapFragment"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:scrollbars="vertical" />
<LinearLayout
android:id="@+id/newmarker"
android:layout_width="match_parent"
android:layout_height="85dp"
android:layout_gravity="center"
android:background="#FFFFFFFF"
android:gravity="center_horizontal"
android:orientation="vertical"
android:padding="4dp" >
<TextView
android:id="@+id/textView1"
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="Nuevo marcadort"
android:textAppearance="?android:attr/textAppearanceMedium" />
<LinearLayout
android:id="@+id/newmarker_options"
android:layout_width="fill_parent"
android:layout_height="48dp"
android:layout_gravity="center"
android:background="#FFFFFFFF"
android:gravity="center_horizontal"
android:orientation="horizontal" >
<Button
android:id="@+id/newmarker_save"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1" />
<Button
android:id="@+id/newmarker_delete"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1" />
</LinearLayout>
</LinearLayout>
</FrameLayout>
이 실제 결과입니다
이 내 레이아웃입니까? 내가 뭘 잘못하고있어?
성령 newmarker하기! 나는 안드로이드 : 중력 = "center_horizontal"내 레이아웃에 눈치 채지 못했습니다. -.- 정말 고마워! –
환영 마리아노 모든 최고의 :) –