Я пытаюсь добиться н так:Android карты с пользовательским макетом
Но ListView это перекрывает мою нижнюю панель. Каков наилучший способ предотвратить такое поведение? Как вы можете видеть на картинке, есть карта под нижней панелью. Эта нижняя строка похожа на целевое/целевое окно в приложении «Карты Google».
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<com.google.android.gms.maps.MapView
android:id="@+id/map"
tools:layout="@layout/fragmentMap"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="2dp"
android:layout_marginRight="2dp"
android:layout_marginTop="2dp"
android:orientation="vertical">
<EditText
android:id="@+id/mapEditT"
android:layout_width="fill_parent"
android:layout_height="53dp"
android:layout_alignParentTop="true"
android:gravity="center|left"
android:paddingLeft="2dp"
android:paddingRight="0dp"/>
<ListView
android:id="@+id/listVi"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@android:color/white"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:orientation="vertical">
<ImageButton
android:id="@+id/draweR"
android:layout_width="wrap_content"
android:src="@drawable/draweR"/>
<LinearLayout
android:id="@+id/infoBox"
android:layout_width="match_parent"
android:layout_height="100dp"
android:layout_marginTop="40dp"
android:alpha="0.1"
android:background="@android:color/black"
android:orientation="horizontal">
<TextView
android:id="@+id/text2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginLeft="20dp"
android:text="Info"
/>
<TextView
android:id="@+id/text3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_toRightOf="@id/text2"
android:text="Info/>
</LinearLayout>
</LinearLayout>
</FrameLayout>
использование '' LinearLayout' или RelativeLayout' как топ наиболее родитель вместо 'FrameLayout' – kId
бы у видел ответ? – kId
Нет, у меня нет :( – user2725105