Teil meiner Benutzeroberfläche geht Off-Bildschirm, wenn auf einem tatsächlichen Android-Gerät installiert. Es nutzt die Google Maps API. Die Schaltfläche "Mein Standort" wird ein wenig vom Bildschirm entfernt.Android Studio: Inhalt geht aus dem Bildschirm
Auch die Karte deckt nicht den gesamten Bildschirm ab, obwohl dies in der UI-Vorschau in Android Studio der Fall ist.
<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" />
können Sie einen Screenshot posten? und was willst du jetzt erreichen? Beachten Sie auch, dass Sie in Ihrer Ansicht harte Codewerte angegeben haben, damit das passieren kann !! zB: width = "269dp, height =" 519dp –
Ich habe jetzt einen Screenshot hinzugefügt. –
Ich habe die Antwort schon gegeben! –