Guest User

Untitled

a guest
Dec 11th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.45 KB | None | 0 0
  1. package lib.map.buffer;
  2.  
  3. import android.widget.FrameLayout;
  4.  
  5. import com.google.android.gms.maps.GoogleMap;
  6. import com.google.android.gms.maps.MapView;
  7. import com.google.android.gms.maps.UiSettings;
  8. import com.google.android.gms.maps.model.LatLng;
  9.  
  10. import lib.map.CMapListenerList;
  11. import lib.map.def.MAP;
  12.  
  13. //-------------------------------------
  14.  
  15. public class CMapBuffer
  16. {
  17. private static final CMapData m_mbu[] = new CMapData[MAP.count];
  18.  
  19. //-----------------------------------
  20.  
  21. public static void put(int key, FrameLayout root, MapView view)
  22. {
  23. m_mbu[key] = new CMapData(root,view);
  24. }
  25.  
  26. //-----------------------------------
  27.  
  28. public static void put(int key, GoogleMap map)
  29. {
  30. m_mbu[key].m_map = map;
  31. m_mbu[key].m_mli = new CMapListenerList(map);
  32. m_mbu[key].m_view.onResume();
  33. }
  34.  
  35. *** E assim vai, corretamente.
  36.  
  37. <?xml version="1.0" encoding="utf-8"?>
  38. <!--
  39. Copyright (C) 2017 The Android Open Source Project
  40.  
  41. Licensed under the Apache License, Version 2.0 (the "License");
  42. you may not use this file except in compliance with the License.
  43. You may obtain a copy of the License at
  44.  
  45. http://www.apache.org/licenses/LICENSE-2.0
  46.  
  47. Unless required by applicable law or agreed to in writing, software
  48. distributed under the License is distributed on an "AS IS" BASIS,
  49. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  50. See the License for the specific language governing permissions and
  51. limitations under the License.
  52. -->
  53.  
  54. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  55. android:id="@+id/topPanel"
  56. android:layout_width="match_parent"
  57. android:layout_height="wrap_content"
  58. android:orientation="vertical"
  59. android:gravity="top|center_horizontal">
  60.  
  61. <!-- If the client uses a customTitle, it will be added here. -->
  62.  
  63. <LinearLayout
  64. android:id="@+id/title_template"
  65. android:layout_width="match_parent"
  66. android:layout_height="wrap_content"
  67. android:gravity="center_horizontal"
  68. android:layout_marginTop="24dp"
  69. android:orientation="vertical">
  70.  
  71. <ImageView
  72. android:id="@android:id/icon"
  73. android:adjustViewBounds="true"
  74. android:maxHeight="24dp"
  75. android:maxWidth="24dp"
  76. android:layout_gravity="center_horizontal"
  77. android:layout_width="wrap_content"
Add Comment
Please, Sign In to add comment