Advertisement
am_dot_com

PDM2 20201215

Dec 15th, 2020 (edited)
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.65 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    xmlns:app="http://schemas.android.com/apk/res-auto"
  4.    xmlns:tools="http://schemas.android.com/tools"
  5.    android:layout_width="match_parent"
  6.    android:layout_height="match_parent"
  7.    android:orientation="vertical"
  8.    tools:context=".MainActivity">
  9.  
  10.     <Spinner
  11.        android:id="@+id/idSpnMapType"
  12.        android:layout_width="match_parent"
  13.        android:layout_height="wrap_content"
  14.        app:layout_constraintTop_toTopOf="parent"></Spinner>
  15.  
  16.     <LinearLayout
  17.        android:layout_width="match_parent"
  18.        android:layout_height="wrap_content">
  19.         <EditText
  20.            android:id="@+id/idEtLat"
  21.            android:layout_weight="1"
  22.            android:inputType="numberDecimal|numberSigned"
  23.            android:layout_width="match_parent"
  24.            android:layout_height="wrap_content" />
  25.         <EditText
  26.            android:id="@+id/idEtLong"
  27.            android:layout_weight="1"
  28.            android:inputType="numberDecimal|numberSigned"
  29.            android:layout_width="match_parent"
  30.            android:layout_height="wrap_content" />
  31.         <Button
  32.            android:id="@+id/idBtnGo"
  33.            android:text="Go!"
  34.            android:layout_weight="1"
  35.            android:layout_width="match_parent"
  36.            android:layout_height="wrap_content" />
  37.     </LinearLayout>
  38.  
  39.     <include
  40.        layout="@layout/googlemap_ll"></include>
  41.  
  42. </LinearLayout>
  43.  
  44. //
  45.  
  46. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  47.    android:orientation="vertical" android:layout_width="match_parent"
  48.    android:layout_height="match_parent">
  49.  
  50.     <fragment
  51.        android:id="@+id/idGMapFragment"
  52.        android:layout_width="match_parent"
  53.        android:layout_height="wrap_content"
  54.        class="com.google.android.gms.maps.MapFragment"/>
  55.  
  56. </LinearLayout>
  57.  
  58. //
  59.  
  60. <?xml version="1.0" encoding="utf-8"?>
  61. <manifest xmlns:android="http://schemas.android.com/apk/res/android"
  62.    package="com.joythis.android.mapslocations">
  63.    
  64.     <!-- -->
  65.     <uses-permission
  66.        android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
  67.  
  68.     <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
  69.     <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
  70.  
  71.     <!-- device online? offline? -->
  72.     <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
  73.  
  74.     <!-- openGL -->
  75.     <uses-feature
  76.        android:glEsVersion="0x00020000"
  77.        android:required="true"/>
  78.  
  79.     <application
  80.        android:allowBackup="true"
  81.        android:icon="@mipmap/ic_launcher"
  82.        android:label="@string/app_name"
  83.        android:roundIcon="@mipmap/ic_launcher_round"
  84.        android:supportsRtl="true"
  85.        android:theme="@style/Theme.MapsLocations">
  86.         <activity android:name=".MainActivity">
  87.             <intent-filter>
  88.                 <action android:name="android.intent.action.MAIN" />
  89.  
  90.                 <category android:name="android.intent.category.LAUNCHER" />
  91.             </intent-filter>
  92.         </activity>
  93.  
  94.         <meta-data
  95.            android:name="com.google.android.gms.version"
  96.            android:value="@integer/google_play_services_version" />
  97.  
  98.         <!-- classic -->
  99.         <meta-data
  100.            android:name="com.google.android.maps.v2.API_KEY"
  101.            android:value="???????"/>
  102.  
  103.         <!-- modern, editing local.properties -->
  104.         <meta-data
  105.            android:name="com.google.android.geo.API_KEY"
  106.            android:value="${mapsApiKey}" />
  107.     </application>
  108.  
  109. </manifest>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement