Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical"
- tools:context=".MainActivity">
- <Spinner
- android:id="@+id/idSpnMapType"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- app:layout_constraintTop_toTopOf="parent"></Spinner>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <EditText
- android:id="@+id/idEtLat"
- android:layout_weight="1"
- android:inputType="numberDecimal|numberSigned"
- android:layout_width="match_parent"
- android:layout_height="wrap_content" />
- <EditText
- android:id="@+id/idEtLong"
- android:layout_weight="1"
- android:inputType="numberDecimal|numberSigned"
- android:layout_width="match_parent"
- android:layout_height="wrap_content" />
- <Button
- android:id="@+id/idBtnGo"
- android:text="Go!"
- android:layout_weight="1"
- android:layout_width="match_parent"
- android:layout_height="wrap_content" />
- </LinearLayout>
- <include
- layout="@layout/googlemap_ll"></include>
- </LinearLayout>
- //
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="vertical" android:layout_width="match_parent"
- android:layout_height="match_parent">
- <fragment
- android:id="@+id/idGMapFragment"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- class="com.google.android.gms.maps.MapFragment"/>
- </LinearLayout>
- //
- <?xml version="1.0" encoding="utf-8"?>
- <manifest xmlns:android="http://schemas.android.com/apk/res/android"
- package="com.joythis.android.mapslocations">
- <!-- -->
- <uses-permission
- android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
- <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
- <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
- <!-- device online? offline? -->
- <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
- <!-- openGL -->
- <uses-feature
- android:glEsVersion="0x00020000"
- android:required="true"/>
- <application
- android:allowBackup="true"
- android:icon="@mipmap/ic_launcher"
- android:label="@string/app_name"
- android:roundIcon="@mipmap/ic_launcher_round"
- android:supportsRtl="true"
- android:theme="@style/Theme.MapsLocations">
- <activity android:name=".MainActivity">
- <intent-filter>
- <action android:name="android.intent.action.MAIN" />
- <category android:name="android.intent.category.LAUNCHER" />
- </intent-filter>
- </activity>
- <meta-data
- android:name="com.google.android.gms.version"
- android:value="@integer/google_play_services_version" />
- <!-- classic -->
- <meta-data
- android:name="com.google.android.maps.v2.API_KEY"
- android:value="???????"/>
- <!-- modern, editing local.properties -->
- <meta-data
- android:name="com.google.android.geo.API_KEY"
- android:value="${mapsApiKey}" />
- </application>
- </manifest>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement