Часть моего пользовательского интерфейса отключается при установке на реальном устройстве Android. Он использует API карт Google. Кнопка «Мое местоположение» немного отходит от экрана.Android-студия: контент уходит с экрана
Также карта не покрывает весь экран, даже если это происходит в представлении пользовательского интерфейса в Android Studio.
<LinearLayout xmlns:map="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical">
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent">
<EditText
android:layout_width="269dp"
android:layout_height="wrap_content"
android:inputType="textPersonName"
android:ems="10"
android:id="@+id/SearchLocationText"
android:hint="Search Location"
android:textCursorDrawable="@drawable/black_cursor"
/>
<Button
android:text="Search"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/SearchButton"
android:onClick="onSearch" />
</LinearLayout>
<fragment
android:id="@+id/map"
android:name="com.google.android.gms.maps.SupportMapFragment"
tools:context="com.anand.projectv10.MapsActivity1"
android:layout_height="519dp"
android:layout_width="382dp" />
Вы можете разместить снимок экрана? и теперь чего вы хотите достичь? Также обратите внимание, что вы дали жесткие кодовые значения по всему вашему виду, чтобы это произошло! например: width = "269dp, height =" 519dp –
Я добавил скриншот сейчас. –
Я уже дал ответ! –