SHOW:
|
|
- or go back to the newest paste.
| 1 | error log: | |
| 2 | ||
| 3 | ||
| 4 | 01-15 17:57:03.789: E/AndroidRuntime(31398): FATAL EXCEPTION: main | |
| 5 | 01-15 17:57:03.789: E/AndroidRuntime(31398): java.lang.NullPointerException | |
| 6 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at com.services.anki.Service_SingleItemView.use_Map(Service_SingleItemView.java:248) | |
| 7 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at com.services.anki.Service_SingleItemView$ViewPagerAdapter.instantiateItem(Service_SingleItemView.java:178) | |
| 8 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at android.support.v4.view.ViewPager.addNewItem(ViewPager.java:837) | |
| 9 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at android.support.v4.view.ViewPager.populate(ViewPager.java:987) | |
| 10 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at android.support.v4.view.ViewPager.populate(ViewPager.java:919) | |
| 11 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at android.support.v4.view.ViewPager.onMeasure(ViewPager.java:1441) | |
| 12 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at android.view.View.measure(View.java:15193) | |
| 13 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:617) | |
| 14 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:399) | |
| 15 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at android.view.View.measure(View.java:15193) | |
| 16 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at android.widget.ScrollView.measureChildWithMargins(ScrollView.java:1196) | |
| 17 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at android.widget.FrameLayout.onMeasure(FrameLayout.java:310) | |
| 18 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at android.widget.ScrollView.onMeasure(ScrollView.java:318) | |
| 19 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at android.view.View.measure(View.java:15193) | |
| 20 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4816) | |
| 21 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at android.widget.FrameLayout.onMeasure(FrameLayout.java:310) | |
| 22 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at android.view.View.measure(View.java:15193) | |
| 23 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4816) | |
| 24 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at android.widget.FrameLayout.onMeasure(FrameLayout.java:310) | |
| 25 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at android.view.View.measure(View.java:15193) | |
| 26 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at android.support.v4.widget.DrawerLayout.onMeasure(DrawerLayout.java:762) | |
| 27 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at android.view.View.measure(View.java:15193) | |
| 28 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4816) | |
| 29 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at android.widget.FrameLayout.onMeasure(FrameLayout.java:310) | |
| 30 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at android.view.View.measure(View.java:15193) | |
| 31 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4816) | |
| 32 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at android.widget.FrameLayout.onMeasure(FrameLayout.java:310) | |
| 33 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at android.view.View.measure(View.java:15193) | |
| 34 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4816) | |
| 35 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at android.widget.FrameLayout.onMeasure(FrameLayout.java:310) | |
| 36 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2152) | |
| 37 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at android.view.View.measure(View.java:15193) | |
| 38 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:1850) | |
| 39 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1102) | |
| 40 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1275) | |
| 41 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1000) | |
| 42 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4221) | |
| 43 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:725) | |
| 44 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at android.view.Choreographer.doCallbacks(Choreographer.java:555) | |
| 45 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at android.view.Choreographer.doFrame(Choreographer.java:525) | |
| 46 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:711) | |
| 47 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at android.os.Handler.handleCallback(Handler.java:615) | |
| 48 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at android.os.Handler.dispatchMessage(Handler.java:92) | |
| 49 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at android.os.Looper.loop(Looper.java:137) | |
| 50 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at android.app.ActivityThread.main(ActivityThread.java:4794) | |
| 51 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at java.lang.reflect.Method.invokeNative(Native Method) | |
| 52 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at java.lang.reflect.Method.invoke(Method.java:511) | |
| 53 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789) | |
| 54 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556) | |
| 55 | 01-15 17:57:03.789: E/AndroidRuntime(31398): at dalvik.system.NativeStart.main(Native Method) | |
| 56 | 01-15 17:57:03.799: I/MemoryCache(31398): cache size=397428 length=8 | |
| 57 | 01-15 17:57:05.079: E/Google Maps Android API(31398): Authorization failure. Please see https://developers.google.com/maps/documentation/android/start for how to correctly set up the map. | |
| 58 | 01-15 17:57:05.089: E/Google Maps Android API(31398): In the Google Developer Console (https://console.developers.google.com) | |
| 59 | 01-15 17:57:05.089: E/Google Maps Android API(31398): Ensure that the "Google Maps Android API v2" is enabled. | |
| 60 | 01-15 17:57:05.089: E/Google Maps Android API(31398): Ensure that the following Android Key exists: | |
| 61 | 01-15 17:57:05.089: E/Google Maps Android API(31398): API Key: AIzaSyAQteoMwQHiSDG51pPyn--TJZyJjO_La_s | |
| 62 | 01-15 17:57:05.089: E/Google Maps Android API(31398): Android Application (<cert_fingerprint>;<package_name>): 66:38:68:53:86:C0:75:90:20:A4:2B:74:FF:BF:55:22:6C:15:93:3C;com.anki.ejigap | |
| 63 | ||
| 64 | ||
| 65 | ||
| 66 | - | Here is my Activity where i am using viewpager and all things: |
| 66 | + | Here is my Fragment class where i am using viewpager and all things: |
| 67 | ||
| 68 | ||
| 69 | ||
| 70 | ||
| 71 | ||
| 72 | public class Service_SingleItemView extends Fragment {
| |
| 73 | ||
| 74 | String heading, description, btnclickimage; | |
| 75 | ImageView img_service_banner_top, img_logo, img_service_icon, | |
| 76 | img_service_logo; | |
| 77 | ImageView img_termCond, img_share, img_eGift, img_Renew, img_Scan, | |
| 78 | map_icon; | |
| 79 | TextView txt_expireDate, clickdestxt, txt_serviceName,txt_nearest_outlet_name; | |
| 80 | ||
| 81 | ViewPagerAdapter adapter; | |
| 82 | ViewPager myPager; | |
| 83 | RelativeLayout layout_service_landing; | |
| 84 | ||
| 85 | GoogleMap map; | |
| 86 | ||
| 87 | ArrayList<HashMap<String, String>> data; | |
| 88 | HashMap<String, String> resultp = new HashMap<String, String>(); | |
| 89 | ||
| 90 | ImageLoader_ServiceList dash_ImageLoader = new ImageLoader_ServiceList( | |
| 91 | getActivity()); | |
| 92 | Layout_ImageLoader layout_ImageLoader = new Layout_ImageLoader( | |
| 93 | getActivity()); | |
| 94 | private Intent intent; | |
| 95 | private Bundle bundle; | |
| 96 | ||
| 97 | public Service_SingleItemView() {
| |
| 98 | } | |
| 99 | ||
| 100 | @SuppressWarnings("unchecked")
| |
| 101 | @Override | |
| 102 | public View onCreateView(LayoutInflater inflater, ViewGroup container, | |
| 103 | Bundle savedInstanceState) {
| |
| 104 | ||
| 105 | View rootView = inflater.inflate(R.layout.service_viewpager, container, | |
| 106 | false); | |
| 107 | ||
| 108 | int posi = getActivity().getIntent().getIntExtra("positionkey", 0);
| |
| 109 | ||
| 110 | intent = getActivity().getIntent(); | |
| 111 | bundle = intent.getBundleExtra("bundle");
| |
| 112 | data = (ArrayList<HashMap<String, String>>) bundle | |
| 113 | .getSerializable("data");
| |
| 114 | adapter = new ViewPagerAdapter(getActivity(), data); | |
| 115 | myPager = (ViewPager) rootView.findViewById(R.id.viewpager); | |
| 116 | myPager.setAdapter(adapter); | |
| 117 | adapter.notifyDataSetChanged(); | |
| 118 | myPager.setCurrentItem(posi); | |
| 119 | ||
| 120 | - | myPager.setOnTouchListener(new View.OnTouchListener() {
|
| 120 | + | |
| 121 | ||
| 122 | - | @Override |
| 122 | + | |
| 123 | - | public boolean onTouch(View v, MotionEvent event) {
|
| 123 | + | |
| 124 | - | // TODO Auto-generated method stub |
| 124 | + | |
| 125 | - | final int margin = 10; |
| 125 | + | |
| 126 | - | final int fragmentOffset = v.getScrollX() % v.getWidth(); |
| 126 | + | |
| 127 | Context act; | |
| 128 | - | if (fragmentOffset > margin |
| 128 | + | |
| 129 | - | && fragmentOffset < v.getWidth() - margin) {
|
| 129 | + | |
| 130 | - | myPager.getParent() |
| 130 | + | |
| 131 | - | .requestDisallowInterceptTouchEvent(true); |
| 131 | + | |
| 132 | - | } |
| 132 | + | |
| 133 | - | return false; |
| 133 | + | |
| 134 | - | } |
| 134 | + | |
| 135 | - | }); |
| 135 | + | |
| 136 | this.arraylist = arraylist; | |
| 137 | } | |
| 138 | ||
| 139 | @Override | |
| 140 | public Object instantiateItem(ViewGroup container, int position) {
| |
| 141 | ||
| 142 | LayoutInflater inflater = ((Activity) act).getLayoutInflater(); | |
| 143 | View cont = inflater.inflate(R.layout.service_banner_details, null, | |
| 144 | true); | |
| 145 | ||
| 146 | use_Map(); | |
| 147 | ||
| 148 | ((ViewPager) container).addView(cont, 0); | |
| 149 | ||
| 150 | return cont; | |
| 151 | } | |
| 152 | ||
| 153 | @Override | |
| 154 | public void destroyItem(View arg0, int arg1, Object arg2) {
| |
| 155 | ((ViewPager) arg0).removeView((View) arg2); | |
| 156 | } | |
| 157 | ||
| 158 | @Override | |
| 159 | public boolean isViewFromObject(View arg0, Object arg1) {
| |
| 160 | return arg0 == ((View) arg1); | |
| 161 | } | |
| 162 | ||
| 163 | @Override | |
| 164 | public Parcelable saveState() {
| |
| 165 | return null; | |
| 166 | } | |
| 167 | ||
| 168 | @Override | |
| 169 | public int getCount() {
| |
| 170 | ||
| 171 | return arraylist.size(); | |
| 172 | } | |
| 173 | ||
| 174 | @Override | |
| 175 | public int getItemPosition(Object object) {
| |
| 176 | return POSITION_NONE; | |
| 177 | } | |
| 178 | ||
| 179 | } | |
| 180 | ||
| 181 | ||
| 182 | ||
| 183 | public void use_Map() {
| |
| 184 | ||
| 185 | LatLng HAMBURG = new LatLng(28.535516, 77.391026); | |
| 186 | LatLng KIEL = new LatLng(28.474388, 77.503990); | |
| 187 | ||
| 188 | map = ((SupportMapFragment) getFragmentManager().findFragmentById(R.id.map)) | |
| 189 | .getMap(); | |
| 190 | ||
| 191 | Marker hamburg = map.addMarker(new MarkerOptions().position(HAMBURG) | |
| 192 | .title("Hamburg"));
| |
| 193 | Marker kiel = map.addMarker(new MarkerOptions() | |
| 194 | .position(KIEL) | |
| 195 | .title("Kiel")
| |
| 196 | .snippet("Kiel is cool")
| |
| 197 | .icon(BitmapDescriptorFactory | |
| 198 | .fromResource(R.drawable.ic_pages))); | |
| 199 | ||
| 200 | // Move the camera instantly to hamburg with a zoom of 15. | |
| 201 | map.moveCamera(CameraUpdateFactory.newLatLngZoom(KIEL, 15)); | |
| 202 | ||
| 203 | // Zoom in, animating the camera. | |
| 204 | map.animateCamera(CameraUpdateFactory.zoomTo(10), 2000, null); | |
| 205 | ||
| 206 | } | |
| 207 | } | |
| 208 | ||
| 209 | ||
| 210 | here is the service_viewpager: | |
| 211 | ||
| 212 | <?xml version="1.0" encoding="utf-8"?> | |
| 213 | <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" | |
| 214 | android:id="@+id/scroll" | |
| 215 | android:layout_width="fill_parent" | |
| 216 | android:layout_height="fill_parent" | |
| 217 | android:layout_marginTop="?android:attr/actionBarSize" | |
| 218 | android:fillViewport="true" > | |
| 219 | ||
| 220 | <RelativeLayout | |
| 221 | android:id="@+id/service_pager_layout" | |
| 222 | android:layout_width="fill_parent" | |
| 223 | android:layout_height="wrap_content" | |
| 224 | android:orientation="vertical" > | |
| 225 | ||
| 226 | <android.support.v4.view.ViewPager | |
| 227 | android:id="@+id/viewpager" | |
| 228 | android:layout_width="fill_parent" | |
| 229 | android:layout_height="1500dp" > | |
| 230 | </android.support.v4.view.ViewPager> | |
| 231 | </RelativeLayout> | |
| 232 | ||
| 233 | </ScrollView> | |
| 234 | ||
| 235 | ||
| 236 | ||
| 237 | ||
| 238 | here is the another layout where i am using google map, service_banner_details.xml : | |
| 239 | ||
| 240 | ||
| 241 | ||
| 242 | ||
| 243 | <?xml version="1.0" encoding="utf-8"?> | |
| 244 | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| 245 | xmlns:tools="http://schemas.android.com/tools" | |
| 246 | android:id="@+id/layout_service_landing" | |
| 247 | android:layout_width="match_parent" | |
| 248 | android:layout_height="match_parent" > | |
| 249 | ||
| 250 | <ImageView | |
| 251 | android:id="@+id/img_service_banner_top" | |
| 252 | android:layout_width="match_parent" | |
| 253 | android:layout_height="350dp" | |
| 254 | android:contentDescription="@drawable/login_top_img" /> | |
| 255 | ||
| 256 | <ImageView | |
| 257 | android:id="@+id/img_service_logo" | |
| 258 | android:layout_width="wrap_content" | |
| 259 | android:layout_height="wrap_content" | |
| 260 | android:layout_below="@+id/img_service_banner_top" | |
| 261 | android:layout_marginTop="5dp" | |
| 262 | android:contentDescription="@drawable/login_top_img" /> | |
| 263 | ||
| 264 | <LinearLayout | |
| 265 | android:id="@+id/layout_for_pName_icon" | |
| 266 | android:layout_width="match_parent" | |
| 267 | android:layout_height="wrap_content" | |
| 268 | android:layout_below="@+id/img_service_logo" | |
| 269 | android:layout_marginLeft="10dp" | |
| 270 | android:layout_marginRight="10dp" | |
| 271 | android:layout_marginTop="30dp" | |
| 272 | android:orientation="horizontal" > | |
| 273 | ||
| 274 | <ImageView | |
| 275 | android:id="@+id/img_service_icon" | |
| 276 | android:layout_width="50dp" | |
| 277 | android:layout_height="50dp" | |
| 278 | android:contentDescription="@drawable/login_top_img" /> | |
| 279 | ||
| 280 | <TextView | |
| 281 | android:id="@+id/txt_service_name" | |
| 282 | android:layout_width="wrap_content" | |
| 283 | android:layout_height="wrap_content" | |
| 284 | android:paddingBottom="1dp" | |
| 285 | android:paddingTop="8dp" | |
| 286 | android:textColor="#796447" | |
| 287 | android:textSize="14sp" | |
| 288 | android:textStyle="italic" /> | |
| 289 | </LinearLayout> | |
| 290 | ||
| 291 | <RelativeLayout | |
| 292 | android:id="@+id/layout_for_expireDate" | |
| 293 | android:layout_width="match_parent" | |
| 294 | android:layout_height="50dp" | |
| 295 | android:layout_below="@+id/layout_for_pName_icon" | |
| 296 | android:layout_marginLeft="10dp" | |
| 297 | android:layout_marginRight="10dp" | |
| 298 | android:layout_marginTop="20dp" | |
| 299 | android:background="@color/txt_expire" | |
| 300 | android:gravity="center" | |
| 301 | android:orientation="horizontal" > | |
| 302 | ||
| 303 | <TextView | |
| 304 | android:id="@+id/txt_package" | |
| 305 | android:layout_width="wrap_content" | |
| 306 | android:layout_height="wrap_content" | |
| 307 | android:layout_alignParentLeft="true" | |
| 308 | android:text="Body Treatment" | |
| 309 | android:textColor="#796447" | |
| 310 | android:textSize="13sp" | |
| 311 | android:textStyle="italic" /> | |
| 312 | ||
| 313 | <TextView | |
| 314 | android:id="@+id/txt_expireDate" | |
| 315 | android:layout_width="wrap_content" | |
| 316 | android:layout_height="wrap_content" | |
| 317 | android:layout_alignParentRight="true" | |
| 318 | android:text="ExpireDate" | |
| 319 | android:textColor="#796447" | |
| 320 | android:textSize="12sp" | |
| 321 | android:textStyle="normal" /> | |
| 322 | </RelativeLayout> | |
| 323 | ||
| 324 | <View | |
| 325 | android:id="@+id/txt_line_forBoarder" | |
| 326 | android:layout_width="match_parent" | |
| 327 | android:layout_height="1dp" | |
| 328 | android:layout_below="@+id/layout_for_expireDate" | |
| 329 | android:layout_marginLeft="10dp" | |
| 330 | android:layout_marginRight="10dp" | |
| 331 | android:background="#B7B5B5" > | |
| 332 | </View> | |
| 333 | ||
| 334 | <LinearLayout | |
| 335 | android:id="@+id/layout_for_session" | |
| 336 | android:layout_width="match_parent" | |
| 337 | android:layout_height="300dp" | |
| 338 | android:layout_below="@+id/txt_line_forBoarder" | |
| 339 | android:layout_marginLeft="10dp" | |
| 340 | android:layout_marginRight="10dp" | |
| 341 | android:background="@color/txt_expire" | |
| 342 | android:orientation="horizontal" > | |
| 343 | </LinearLayout> | |
| 344 | ||
| 345 | <RelativeLayout | |
| 346 | android:id="@+id/layout_for_buttons" | |
| 347 | android:layout_width="match_parent" | |
| 348 | android:layout_height="wrap_content" | |
| 349 | android:layout_below="@+id/layout_for_session" | |
| 350 | android:layout_marginLeft="10dp" | |
| 351 | android:layout_marginRight="10dp" | |
| 352 | android:layout_marginTop="20dp" | |
| 353 | android:orientation="horizontal" > | |
| 354 | ||
| 355 | <ImageView | |
| 356 | android:id="@+id/img_termCond" | |
| 357 | android:layout_width="50dp" | |
| 358 | android:layout_height="50dp" | |
| 359 | android:layout_alignParentLeft="true" | |
| 360 | android:layout_marginLeft="10dp" > | |
| 361 | </ImageView> | |
| 362 | ||
| 363 | <ImageView | |
| 364 | android:id="@+id/img_share" | |
| 365 | android:layout_width="50dp" | |
| 366 | android:layout_height="50dp" | |
| 367 | android:layout_marginLeft="15dp" | |
| 368 | android:layout_toRightOf="@+id/img_termCond" > | |
| 369 | </ImageView> | |
| 370 | ||
| 371 | <ImageView | |
| 372 | android:id="@+id/img_eGift" | |
| 373 | android:layout_width="50dp" | |
| 374 | android:layout_height="50dp" | |
| 375 | android:layout_centerHorizontal="true" > | |
| 376 | </ImageView> | |
| 377 | ||
| 378 | <ImageView | |
| 379 | android:id="@+id/img_Renew" | |
| 380 | android:layout_width="50dp" | |
| 381 | android:layout_height="50dp" | |
| 382 | android:layout_marginLeft="15dp" | |
| 383 | android:layout_toRightOf="@+id/img_eGift" > | |
| 384 | </ImageView> | |
| 385 | ||
| 386 | <ImageView | |
| 387 | android:id="@+id/img_Scan" | |
| 388 | android:layout_width="50dp" | |
| 389 | android:layout_height="50dp" | |
| 390 | android:layout_alignParentRight="true" | |
| 391 | android:layout_marginRight="10dp" > | |
| 392 | </ImageView> | |
| 393 | </RelativeLayout> | |
| 394 | ||
| 395 | <LinearLayout | |
| 396 | android:id="@+id/layout_for_mapIcon" | |
| 397 | android:layout_width="match_parent" | |
| 398 | android:layout_height="wrap_content" | |
| 399 | android:layout_below="@+id/layout_for_buttons" | |
| 400 | android:layout_marginLeft="10dp" | |
| 401 | android:layout_marginRight="10dp" | |
| 402 | android:layout_marginTop="30dp" | |
| 403 | android:orientation="horizontal" > | |
| 404 | ||
| 405 | <ImageView | |
| 406 | android:id="@+id/map_icon" | |
| 407 | android:layout_width="50dp" | |
| 408 | android:layout_height="50dp" | |
| 409 | android:contentDescription="@drawable/login_top_img" /> | |
| 410 | ||
| 411 | <TextView | |
| 412 | android:id="@+id/txt_nearest_outlet" | |
| 413 | android:layout_width="wrap_content" | |
| 414 | android:layout_height="wrap_content" | |
| 415 | android:paddingBottom="1dp" | |
| 416 | android:paddingTop="8dp" | |
| 417 | android:text="NEAREST OUTLET" | |
| 418 | android:textColor="#796447" | |
| 419 | android:textSize="14sp" | |
| 420 | android:textStyle="italic" /> | |
| 421 | </LinearLayout> | |
| 422 | ||
| 423 | <TextView | |
| 424 | android:id="@+id/txt_nearest_outlet_name" | |
| 425 | android:layout_width="wrap_content" | |
| 426 | android:layout_height="wrap_content" | |
| 427 | android:layout_below="@+id/layout_for_mapIcon" | |
| 428 | android:layout_marginLeft="15dp" | |
| 429 | android:layout_marginTop="10dp" | |
| 430 | android:textColor="#796447" | |
| 431 | android:textSize="14sp" | |
| 432 | android:textStyle="italic" /> | |
| 433 | ||
| 434 | <HorizontalScrollView | |
| 435 | android:id="@+id/google_map" | |
| 436 | android:layout_width="wrap_content" | |
| 437 | android:layout_height="wrap_content" | |
| 438 | android:layout_below="@+id/txt_nearest_outlet_name" | |
| 439 | android:layout_marginLeft="20dp" | |
| 440 | android:layout_marginTop="15dp" > | |
| 441 | ||
| 442 | <LinearLayout | |
| 443 | android:layout_width="wrap_content" | |
| 444 | android:layout_height="wrap_content" | |
| 445 | android:orientation="horizontal" > | |
| 446 | ||
| 447 | <fragment | |
| 448 | android:id="@+id/map" | |
| 449 | android:name="com.google.android.gms.maps.MapFragment" | |
| 450 | android:layout_width="250dp" | |
| 451 | android:layout_height="250dp" /> | |
| 452 | ||
| 453 | <fragment | |
| 454 | android:id="@+id/location_map" | |
| 455 | android:layout_width="match_parent" | |
| 456 | android:layout_height="match_parent" | |
| 457 | android:layout_marginLeft="20dp" | |
| 458 | android:name="com.google.android.gms.maps.MapFragment" /> | |
| 459 | ||
| 460 | <fragment | |
| 461 | android:id="@+id/map1" | |
| 462 | android:name="com.google.android.gms.maps.MapFragment" | |
| 463 | android:layout_width="250dp" | |
| 464 | android:layout_height="250dp" | |
| 465 | android:layout_marginLeft="30dp" /> | |
| 466 | ||
| 467 | <fragment | |
| 468 | android:id="@+id/map2" | |
| 469 | android:name="com.google.android.gms.maps.MapFragment" | |
| 470 | android:layout_width="250dp" | |
| 471 | android:layout_height="250dp" | |
| 472 | android:layout_marginLeft="30dp" /> | |
| 473 | ||
| 474 | <fragment | |
| 475 | android:id="@+id/map3" | |
| 476 | android:name="com.google.android.gms.maps.MapFragment" | |
| 477 | android:layout_width="250dp" | |
| 478 | android:layout_height="250dp" | |
| 479 | android:layout_marginLeft="30dp" /> | |
| 480 | </LinearLayout> | |
| 481 | </HorizontalScrollView> | |
| 482 | ||
| 483 | </RelativeLayout> |