فهرست منبع

Eye candy for the schedule map.

Iñigo Valentin 9 سال پیش
والد
کامیت
9b438eb788
2فایلهای تغییر یافته به همراه12 افزوده شده و 6 حذف شده
  1. 2 2
      app/src/main/java/com/ivalentin/margolariak/ScheduleLayout.java
  2. 10 4
      app/src/main/res/layout/dialog_schedule.xml

+ 2 - 2
app/src/main/java/com/ivalentin/margolariak/ScheduleLayout.java

@@ -589,11 +589,11 @@ public class ScheduleLayout extends Fragment{
 					tvAddress.setText(placeCursor.getString(1));
 
 					// Configure map marker
-					mapController.setZoom(15);
+					mapController.setZoom(17);
 					GeoPoint center = new GeoPoint(placeCursor.getDouble(2), placeCursor.getDouble(3));
 					mapController.setCenter(center);
 					OverlayItem locationOverlayItem = new OverlayItem(title, placeCursor.getString(0), center);
-					Drawable locationMarker = this.getResources().getDrawable(R.drawable.pinpoint_map);
+					Drawable locationMarker = this.getResources().getDrawable(R.drawable.pinpoint);
 					locationOverlayItem.setMarker(locationMarker);
 					final ArrayList<OverlayItem> items = new ArrayList<OverlayItem>();
 					items.add(locationOverlayItem);

+ 10 - 4
app/src/main/res/layout/dialog_schedule.xml

@@ -63,7 +63,6 @@
             android:textStyle="bold"/>
 
         <LinearLayout
-            android:id="@+id/ll_dialog_schedule_place"
             android:layout_width="match_parent"
             android:layout_height="match_parent"
             android:layout_margin="8dp"
@@ -127,6 +126,7 @@
                 android:visibility="gone"/>
 
             <LinearLayout
+                android:id="@+id/ll_dialog_schedule_place"
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
                 android:layout_margin="15dp"
@@ -173,13 +173,19 @@
                 android:orientation="vertical"
                 android:padding="3dp">
 
-                <org.osmdroid.views.MapView
-                    android:id="@+id/mv_dialog_schedule_map"
+                <LinearLayout
                     android:layout_width="match_parent"
                     android:layout_height="match_parent"
                     android:layout_weight=".95"
                     android:background="@drawable/map"
-                    android:padding="1dp"/>
+                    android:padding="3dp">
+
+                    <org.osmdroid.views.MapView
+                        android:id="@+id/mv_dialog_schedule_map"
+                        android:layout_width="match_parent"
+                        android:layout_height="match_parent"/>
+
+                </LinearLayout>
 
                 <TextView
                     android:id="@+id/tv_dialog_schedule_osm"