| |||||||
Das Thema "Mapview buttons overlay" befindet sich unter Android App Entwicklung auf Android-Hilfe.de.
|
| | Themen-Optionen | Ansicht |
| | #1 (permalink) |
| Neuer Benutzer Registriert seit: 27.09.2010
Beiträge: 20
Abgegebene Danke: 5
Erhielt 0 Danke für 0 Beiträge
| Ich möchte über meine MapView zwei buttons (vor und zurück, in etwa so positioniert wie bei der google maps app die + und - zoom buttons, also unten mittig. Wie stelle ich das am besten an? Code: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.google.android.maps.MapView
android:id="@+id/mapView" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:enabled="true"
android:layout_centerInParent="true" android:clickable="true"
android:apiKey="your api key" />
<Button android:layout_width="wrap_content"
android:layout_height="wrap_content" android:text="Click"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true" android:id="@+id/clickBtn" />
</RelativeLayout> lg |
| | |
| | #2 (permalink) |
| Android Guru Registriert seit: 09.05.2009
Beiträge: 2.389
Abgegebene Danke: 36
Erhielt 307 Danke für 289 Beiträge
|
dann pack die 2 buttons in ein linearlayout und positionier das unten mittig
__________________ App Entwicklung Latest apps: Media Streamer BETA | DailyCash | MoneyManager ( PRO | HD ) |
| | |
![]() |
|
| Themen-Optionen | |
| Ansicht | |
| |
| ||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| Orientierungspfeil als Overlay auf der Map | ping87 | Android App Entwicklung | 0 | 17.07.2011 17:22 |
| Overlay Infofenster - Button integrieren?! | DeNiXP | Android App Entwicklung | 0 | 08.07.2011 12:22 |
| Overlay akutalisieren | nebuto | Android App Entwicklung | 3 | 22.06.2011 06:44 |
| Ändern der Volume buttons in scroll buttons | reaper2507 | HTC Desire Forum | 9 | 19.12.2010 16:41 |
| Editfeld in nem Overlay | sky1233 | Android App Entwicklung | 2 | 25.02.2010 22:44 |