diff --git a/OsmAnd-java/src/net/osmand/data/Amenity.java b/OsmAnd-java/src/net/osmand/data/Amenity.java index 4bc6df691e..28fa2fa6b5 100644 --- a/OsmAnd-java/src/net/osmand/data/Amenity.java +++ b/OsmAnd-java/src/net/osmand/data/Amenity.java @@ -26,6 +26,7 @@ public class Amenity extends MapObject { public static final String WEBSITE = "website"; public static final String PHONE = "phone"; public static final String DESCRIPTION = "description"; + public static final String ROUTE = "route"; public static final String OPENING_HOURS = "opening_hours"; public static final String CONTENT = "content"; public static final String CUISINE = "cuisine"; diff --git a/OsmAnd-java/src/net/osmand/util/OpeningHoursParser.java b/OsmAnd-java/src/net/osmand/util/OpeningHoursParser.java index ddc0e5589c..9bfc24476c 100644 --- a/OsmAnd-java/src/net/osmand/util/OpeningHoursParser.java +++ b/OsmAnd-java/src/net/osmand/util/OpeningHoursParser.java @@ -28,6 +28,10 @@ public class OpeningHoursParser { private static final String[] monthsStr; private static final String[] localMothsStr; + private static final int LOW_TIME_LIMIT = 120; + private static final int HIGH_TIME_LIMIT = 300; + private static final int WITHOUT_TIME_LIMIT = -1; + static { DateFormatSymbols dateFormatSymbols = DateFormatSymbols.getInstance(Locale.US); monthsStr = dateFormatSymbols.getShortMonths(); @@ -186,6 +190,76 @@ public class OpeningHoursParser { return isOpenDay || isOpenPrevious; } + public boolean isOpened24_7() { + boolean opened24_7 = false; + for (OpeningHoursRule r : rules) { + opened24_7 = r.isOpened24_7(); + } + return opened24_7; + } + + public String getNearToOpeningTime(Calendar cal) { + return getTime(cal, LOW_TIME_LIMIT, true); + } + + public String getOpeningTime(Calendar cal) { + return getTime(cal, HIGH_TIME_LIMIT, true); + } + + public String getNearToClosingTime(Calendar cal) { + return getTime(cal, LOW_TIME_LIMIT, false); + } + + public String getClosingTime(Calendar cal) { + return getTime(cal, WITHOUT_TIME_LIMIT, false); + } + + public String getOpeningDay(Calendar calendar) { + Calendar cal = (Calendar) calendar.clone(); + String openingTime = ""; + for (int i = 0; i < 7; i++) { + cal.add(Calendar.DAY_OF_MONTH, 1); + for (OpeningHoursRule r : rules) { + if (r.containsDay(cal) && r.containsMonth(cal)) { + openingTime = r.getTime(cal, false, WITHOUT_TIME_LIMIT, true); + } + } + if (!Algorithms.isEmpty(openingTime)) { + openingTime += " " + localDaysStr[cal.get(Calendar.DAY_OF_WEEK)]; + break; + } + } + return openingTime; + } + + private String getTime(Calendar cal, int limit, boolean opening) { + String time = getTimeDay(cal, limit, opening); + if (Algorithms.isEmpty(time)) { + time = getTimeAnotherDay(cal, limit, opening); + } + return time; + } + + private String getTimeDay(Calendar cal, int limit, boolean opening) { + String atTime = ""; + for (OpeningHoursRule r : rules) { + if (r.containsDay(cal) && r.containsMonth(cal)) { + atTime = r.getTime(cal, false, limit, opening); + } + } + return atTime; + } + + private String getTimeAnotherDay(Calendar cal, int limit, boolean opening) { + String atTime = ""; + for (OpeningHoursRule r : rules) { + if (((opening && r.containsPreviousDay(cal)) || (!opening && r.containsNextDay(cal))) && r.containsMonth(cal)) { + atTime = r.getTime(cal, true, limit, opening); + } + } + return atTime; + } + public String getCurrentRuleTime(Calendar cal) { // make exception for overlapping times i.e. // (1) Mo 14:00-16:00; Tu off @@ -318,6 +392,14 @@ public class OpeningHoursParser { */ public boolean containsDay(Calendar cal); + /** + * Check if the next day after "cal" is part of this rule + * + * @param cal the time to check + * @return true if the next day is part of the rule + */ + boolean containsNextDay(Calendar cal); + /** * Check if the month of "cal" is part of this rule * @@ -341,6 +423,10 @@ public class OpeningHoursParser { public String toRuleString(); public String toLocalRuleString(); + + boolean isOpened24_7(); + + String getTime(Calendar cal, boolean checkAnotherDay, int limit, boolean opening); } /** @@ -558,6 +644,16 @@ public class OpeningHoursParser { return false; } + @Override + public boolean containsNextDay(Calendar cal) { + int i = cal.get(Calendar.DAY_OF_WEEK); + int p = (i + 6) % 7; + if (days[p]) { + return true; + } + return false; + } + /** * Check if the previous weekday of time "cal" is part of this rule * @@ -597,14 +693,10 @@ public class OpeningHoursParser { */ @Override public boolean isOpenedForTime(Calendar cal, boolean checkPrevious) { - int i = cal.get(Calendar.DAY_OF_WEEK); - int d = (i + 5) % 7; - int p = d - 1; - if (p < 0) { - p += 7; - } - int time = cal.get(Calendar.HOUR_OF_DAY) * 60 + cal.get(Calendar.MINUTE); // Time in minutes - for (i = 0; i < startTimes.size(); i++) { + int d = getCurrentDay(cal); + int p = getPreviousDay(d); + int time = getCurrentTimeInMinutes(cal); // Time in minutes + for (int i = 0; i < startTimes.size(); i++) { int startTime = this.startTimes.get(i); int endTime = this.endTimes.get(i); if (startTime < endTime || endTime == -1) { @@ -628,6 +720,30 @@ public class OpeningHoursParser { return false; } + private int getCurrentDay(Calendar cal) { + int i = cal.get(Calendar.DAY_OF_WEEK); + return (i + 5) % 7; + } + + private int getPreviousDay(int currentDay) { + int p = currentDay - 1; + if (p < 0) { + p += 7; + } + return p; + } + + private int getNextDay(int currentDay) { + int n = currentDay + 1; + if (n > 6) { + n -= 7; + } + return n; + } + + private int getCurrentTimeInMinutes(Calendar cal) { + return cal.get(Calendar.HOUR_OF_DAY) * 60 + cal.get(Calendar.MINUTE); + } @Override public String toRuleString() { @@ -658,24 +774,17 @@ public class OpeningHoursParser { addArray(dayMonths, null, b); } // Day - boolean open24_7 = true; - for (int i = 0; i < 7; i++) { - if (!days[i]) { - open24_7 = false; - break; - } - } appendDaysString(b, dayNames); // Time if (startTimes == null || startTimes.size() == 0) { b.append("off"); } else { + if (isOpened24_7()) { + return "24/7"; + } for (int i = 0; i < startTimes.size(); i++) { int startTime = startTimes.get(i); int endTime = endTimes.get(i); - if (open24_7 && startTime == 0 && endTime / 60 == 24) { - return "24/7"; - } if(i > 0) { b.append(", "); } @@ -725,6 +834,84 @@ public class OpeningHoursParser { return toRuleString(localDaysStr, localMothsStr); } + @Override + public boolean isOpened24_7() { + boolean opened24_7 = true; + for (int i = 0; i < 7; i++) { + if (!days[i]) { + opened24_7 = false; + break; + } + } + + if (opened24_7 && startTimes != null && startTimes.size() > 0) { + for (int i = 0; i < startTimes.size(); i++) { + int startTime = startTimes.get(i); + int endTime = endTimes.get(i); + if (startTime == 0 && endTime / 60 == 24) { + return true; + } + } + } + return false; + } + + @Override + public String getTime(Calendar cal, boolean checkAnotherDay, int limit, boolean opening) { + StringBuilder sb = new StringBuilder(); + int d = getCurrentDay(cal); + int ad = opening ? getNextDay(d) : getPreviousDay(d); + int time = getCurrentTimeInMinutes(cal); + for (int i = 0; i < startTimes.size(); i++) { + int startTime = startTimes.get(i); + int endTime = endTimes.get(i); + if (opening) { + if (startTime < endTime || endTime == -1) { + if (days[d] && !checkAnotherDay) { + int diff = startTime - time; + if (limit == WITHOUT_TIME_LIMIT || ((time <= startTime) && (diff <= limit))) { + formatTime(startTime, sb); + break; + } + } + } else { + int diff = -1; + if (time <= startTime && days[d] && !checkAnotherDay) { + diff = startTime - time; + } else if (time > endTime && days[ad] && checkAnotherDay) { + diff = 24 * 60 - endTime + time; + } + if (limit == WITHOUT_TIME_LIMIT || ((diff != -1) && (diff <= limit))) { + formatTime(startTime, sb); + break; + } + } + } else { + if (startTime < endTime && endTime != -1) { + if (days[d] && !checkAnotherDay) { + int diff = endTime - time; + if (limit == WITHOUT_TIME_LIMIT || ((time <= endTime) && (diff <= limit))) { + formatTime(endTime, sb); + break; + } + } + } else { + int diff = -1; + if (time <= endTime && days[d] && !checkAnotherDay) { + diff = 24 * 60 - time + endTime; + } else if (time < endTime && days[ad] && checkAnotherDay) { + diff = startTime - time; + } + if (limit == WITHOUT_TIME_LIMIT || ((diff != -1) && (diff <= limit))) { + formatTime(endTime, sb); + break; + } + } + } + } + return sb.toString(); + } + @Override public String toString() { return toRuleString(); @@ -900,6 +1087,11 @@ public class OpeningHoursParser { return false; } + @Override + public boolean containsNextDay(Calendar cal) { + return false; + } + @Override public boolean containsMonth(Calendar cal) { return false; @@ -915,6 +1107,16 @@ public class OpeningHoursParser { return toRuleString(); } + @Override + public boolean isOpened24_7() { + return false; + } + + @Override + public String getTime(Calendar cal, boolean checkAnotherDay, int limit, boolean opening) { + return ""; + } + @Override public String toString() { return toRuleString(); @@ -1260,6 +1462,11 @@ public class OpeningHoursParser { b.append(t); } + private static void formatTime(int minutes, StringBuilder sb) { + int hour = minutes / 60; + int time = minutes - hour * 60; + formatTime(hour, time, sb); + } /** * test if the calculated opening hours are what you expect diff --git a/OsmAnd/res/drawable/bg_map_context_menu_dark.xml b/OsmAnd/res/drawable/bg_map_context_menu_dark.xml index c584b75e83..1e7add2c05 100644 --- a/OsmAnd/res/drawable/bg_map_context_menu_dark.xml +++ b/OsmAnd/res/drawable/bg_map_context_menu_dark.xml @@ -6,7 +6,7 @@ + android:color="@color/ctx_menu_bg_dark" /> \ No newline at end of file diff --git a/OsmAnd/res/drawable/bg_map_context_menu_light.xml b/OsmAnd/res/drawable/bg_map_context_menu_light.xml index dd3d7d2a98..60af50f23c 100644 --- a/OsmAnd/res/drawable/bg_map_context_menu_light.xml +++ b/OsmAnd/res/drawable/bg_map_context_menu_light.xml @@ -6,7 +6,7 @@ + android:color="@color/ctx_menu_bg_light" /> \ No newline at end of file diff --git a/OsmAnd/res/drawable/context_menu_controller_bg_dark.xml b/OsmAnd/res/drawable/context_menu_controller_bg_dark.xml new file mode 100644 index 0000000000..913ba55c2e --- /dev/null +++ b/OsmAnd/res/drawable/context_menu_controller_bg_dark.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/OsmAnd/res/drawable/context_menu_controller_bg_dark_n.xml b/OsmAnd/res/drawable/context_menu_controller_bg_dark_n.xml new file mode 100644 index 0000000000..b9d62bc429 --- /dev/null +++ b/OsmAnd/res/drawable/context_menu_controller_bg_dark_n.xml @@ -0,0 +1,13 @@ + + + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/drawable/context_menu_controller_bg_dark_p.xml b/OsmAnd/res/drawable/context_menu_controller_bg_dark_p.xml new file mode 100644 index 0000000000..2cbe3de5a5 --- /dev/null +++ b/OsmAnd/res/drawable/context_menu_controller_bg_dark_p.xml @@ -0,0 +1,13 @@ + + + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/drawable/context_menu_controller_bg_dark_selected.xml b/OsmAnd/res/drawable/context_menu_controller_bg_dark_selected.xml new file mode 100644 index 0000000000..c6cb2f2464 --- /dev/null +++ b/OsmAnd/res/drawable/context_menu_controller_bg_dark_selected.xml @@ -0,0 +1,13 @@ + + + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/drawable/context_menu_controller_bg_dark_show_all.xml b/OsmAnd/res/drawable/context_menu_controller_bg_dark_show_all.xml new file mode 100644 index 0000000000..6fdfc0775a --- /dev/null +++ b/OsmAnd/res/drawable/context_menu_controller_bg_dark_show_all.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/OsmAnd/res/drawable/context_menu_controller_bg_dark_show_all_n.xml b/OsmAnd/res/drawable/context_menu_controller_bg_dark_show_all_n.xml new file mode 100644 index 0000000000..a46539b80e --- /dev/null +++ b/OsmAnd/res/drawable/context_menu_controller_bg_dark_show_all_n.xml @@ -0,0 +1,9 @@ + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/drawable/context_menu_controller_bg_dark_show_all_p.xml b/OsmAnd/res/drawable/context_menu_controller_bg_dark_show_all_p.xml new file mode 100644 index 0000000000..482f79662f --- /dev/null +++ b/OsmAnd/res/drawable/context_menu_controller_bg_dark_show_all_p.xml @@ -0,0 +1,9 @@ + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/drawable/context_menu_controller_bg_light.xml b/OsmAnd/res/drawable/context_menu_controller_bg_light.xml new file mode 100644 index 0000000000..d2e8148967 --- /dev/null +++ b/OsmAnd/res/drawable/context_menu_controller_bg_light.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/OsmAnd/res/drawable/context_menu_controller_bg_light_n.xml b/OsmAnd/res/drawable/context_menu_controller_bg_light_n.xml new file mode 100644 index 0000000000..eaddd95f5e --- /dev/null +++ b/OsmAnd/res/drawable/context_menu_controller_bg_light_n.xml @@ -0,0 +1,13 @@ + + + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/drawable/context_menu_controller_bg_light_p.xml b/OsmAnd/res/drawable/context_menu_controller_bg_light_p.xml new file mode 100644 index 0000000000..db337bcee9 --- /dev/null +++ b/OsmAnd/res/drawable/context_menu_controller_bg_light_p.xml @@ -0,0 +1,13 @@ + + + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/drawable/context_menu_controller_bg_light_selected.xml b/OsmAnd/res/drawable/context_menu_controller_bg_light_selected.xml new file mode 100644 index 0000000000..6f169dd925 --- /dev/null +++ b/OsmAnd/res/drawable/context_menu_controller_bg_light_selected.xml @@ -0,0 +1,13 @@ + + + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/drawable/context_menu_controller_bg_light_show_all.xml b/OsmAnd/res/drawable/context_menu_controller_bg_light_show_all.xml new file mode 100644 index 0000000000..2235057832 --- /dev/null +++ b/OsmAnd/res/drawable/context_menu_controller_bg_light_show_all.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/OsmAnd/res/drawable/context_menu_controller_bg_light_show_all_n.xml b/OsmAnd/res/drawable/context_menu_controller_bg_light_show_all_n.xml new file mode 100644 index 0000000000..6165ae7053 --- /dev/null +++ b/OsmAnd/res/drawable/context_menu_controller_bg_light_show_all_n.xml @@ -0,0 +1,9 @@ + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/drawable/context_menu_controller_bg_light_show_all_p.xml b/OsmAnd/res/drawable/context_menu_controller_bg_light_show_all_p.xml new file mode 100644 index 0000000000..d7a8a18369 --- /dev/null +++ b/OsmAnd/res/drawable/context_menu_controller_bg_light_show_all_p.xml @@ -0,0 +1,9 @@ + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/drawable/context_menu_controller_text_color_dark.xml b/OsmAnd/res/drawable/context_menu_controller_text_color_dark.xml new file mode 100644 index 0000000000..9ba8a5ee2f --- /dev/null +++ b/OsmAnd/res/drawable/context_menu_controller_text_color_dark.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/OsmAnd/res/drawable/context_menu_controller_text_color_light.xml b/OsmAnd/res/drawable/context_menu_controller_text_color_light.xml new file mode 100644 index 0000000000..8abe7a91ce --- /dev/null +++ b/OsmAnd/res/drawable/context_menu_controller_text_color_light.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/OsmAnd/res/drawable/route_info_go_btn_bg_dark.xml b/OsmAnd/res/drawable/route_info_go_btn_bg_dark.xml new file mode 100644 index 0000000000..ffda2162f3 --- /dev/null +++ b/OsmAnd/res/drawable/route_info_go_btn_bg_dark.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/OsmAnd/res/drawable/route_info_go_btn_bg_dark_n.xml b/OsmAnd/res/drawable/route_info_go_btn_bg_dark_n.xml new file mode 100644 index 0000000000..41b2d87e64 --- /dev/null +++ b/OsmAnd/res/drawable/route_info_go_btn_bg_dark_n.xml @@ -0,0 +1,13 @@ + + + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/drawable/route_info_go_btn_bg_dark_p.xml b/OsmAnd/res/drawable/route_info_go_btn_bg_dark_p.xml new file mode 100644 index 0000000000..541cc4b4c8 --- /dev/null +++ b/OsmAnd/res/drawable/route_info_go_btn_bg_dark_p.xml @@ -0,0 +1,13 @@ + + + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/drawable/route_info_go_btn_bg_light.xml b/OsmAnd/res/drawable/route_info_go_btn_bg_light.xml new file mode 100644 index 0000000000..22650894e3 --- /dev/null +++ b/OsmAnd/res/drawable/route_info_go_btn_bg_light.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/OsmAnd/res/drawable/route_info_go_btn_bg_light_n.xml b/OsmAnd/res/drawable/route_info_go_btn_bg_light_n.xml new file mode 100644 index 0000000000..3091141170 --- /dev/null +++ b/OsmAnd/res/drawable/route_info_go_btn_bg_light_n.xml @@ -0,0 +1,13 @@ + + + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/drawable/route_info_go_btn_bg_light_p.xml b/OsmAnd/res/drawable/route_info_go_btn_bg_light_p.xml new file mode 100644 index 0000000000..19b018171c --- /dev/null +++ b/OsmAnd/res/drawable/route_info_go_btn_bg_light_p.xml @@ -0,0 +1,13 @@ + + + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/drawable/route_info_menu_bg_dark.xml b/OsmAnd/res/drawable/route_info_menu_bg_dark.xml new file mode 100644 index 0000000000..d70013e6ab --- /dev/null +++ b/OsmAnd/res/drawable/route_info_menu_bg_dark.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/drawable/route_info_menu_bg_left_dark.xml b/OsmAnd/res/drawable/route_info_menu_bg_left_dark.xml new file mode 100644 index 0000000000..49659f9130 --- /dev/null +++ b/OsmAnd/res/drawable/route_info_menu_bg_left_dark.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/drawable/route_info_menu_bg_left_light.xml b/OsmAnd/res/drawable/route_info_menu_bg_left_light.xml new file mode 100644 index 0000000000..6737137cbf --- /dev/null +++ b/OsmAnd/res/drawable/route_info_menu_bg_left_light.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/drawable/route_info_menu_bg_light.xml b/OsmAnd/res/drawable/route_info_menu_bg_light.xml new file mode 100644 index 0000000000..994263f690 --- /dev/null +++ b/OsmAnd/res/drawable/route_info_menu_bg_light.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/drawable/transport_stop_route_bg.xml b/OsmAnd/res/drawable/transport_stop_route_bg.xml new file mode 100644 index 0000000000..ac8defb11b --- /dev/null +++ b/OsmAnd/res/drawable/transport_stop_route_bg.xml @@ -0,0 +1,9 @@ + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/layout-land/menu_obj_selection_fragment.xml b/OsmAnd/res/layout-land/menu_obj_selection_fragment.xml index 854dac8947..600e297f8c 100644 --- a/OsmAnd/res/layout-land/menu_obj_selection_fragment.xml +++ b/OsmAnd/res/layout-land/menu_obj_selection_fragment.xml @@ -5,16 +5,49 @@ android:layout_width="@dimen/dashboard_land_width" android:layout_height="match_parent" android:layout_gravity="bottom" - android:background="?attr/left_menu_view_bg" - android:orientation="vertical"> + tools:background="?attr/left_menu_view_bg" + android:orientation="vertical" + xmlns:tools="http://schemas.android.com/tools"> - + android:layout_height="match_parent"> - + + + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/layout-land/plan_route_info.xml b/OsmAnd/res/layout-land/plan_route_info.xml index 2dfadcb870..3ef7ec87a4 100644 --- a/OsmAnd/res/layout-land/plan_route_info.xml +++ b/OsmAnd/res/layout-land/plan_route_info.xml @@ -5,14 +5,15 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/color_transparent" - android:clickable="true"> + android:clickable="true" + xmlns:tools="http://schemas.android.com/tools"> @@ -24,7 +25,7 @@ - - - + + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content"> - - - + android:layout_height="@dimen/list_item_height" + android:orientation="horizontal"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + android:layout_height="match_parent"/> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + diff --git a/OsmAnd/res/layout/bottom_sheet_dialog_fragment_divider.xml b/OsmAnd/res/layout/bottom_sheet_dialog_fragment_divider.xml new file mode 100644 index 0000000000..05cc926985 --- /dev/null +++ b/OsmAnd/res/layout/bottom_sheet_dialog_fragment_divider.xml @@ -0,0 +1,16 @@ + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/layout/bottom_sheet_dialog_fragment_item.xml b/OsmAnd/res/layout/bottom_sheet_dialog_fragment_item.xml new file mode 100644 index 0000000000..b0b4855034 --- /dev/null +++ b/OsmAnd/res/layout/bottom_sheet_dialog_fragment_item.xml @@ -0,0 +1,31 @@ + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/layout/bottom_sheet_dialog_fragment_title.xml b/OsmAnd/res/layout/bottom_sheet_dialog_fragment_title.xml new file mode 100644 index 0000000000..a70510f0d2 --- /dev/null +++ b/OsmAnd/res/layout/bottom_sheet_dialog_fragment_title.xml @@ -0,0 +1,22 @@ + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/layout/ctx_menu_transport_route_layout.xml b/OsmAnd/res/layout/ctx_menu_transport_route_layout.xml new file mode 100644 index 0000000000..ea5082b912 --- /dev/null +++ b/OsmAnd/res/layout/ctx_menu_transport_route_layout.xml @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/layout/fragment_context_menu_actions_bottom_sheet_dialog.xml b/OsmAnd/res/layout/fragment_context_menu_actions_bottom_sheet_dialog.xml new file mode 100644 index 0000000000..bfbcb1756b --- /dev/null +++ b/OsmAnd/res/layout/fragment_context_menu_actions_bottom_sheet_dialog.xml @@ -0,0 +1,54 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/OsmAnd/res/layout/map_context_menu_fragment.xml b/OsmAnd/res/layout/map_context_menu_fragment.xml index bf1a78ede6..4a2ad7c61d 100644 --- a/OsmAnd/res/layout/map_context_menu_fragment.xml +++ b/OsmAnd/res/layout/map_context_menu_fragment.xml @@ -5,7 +5,8 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" - android:background="@android:color/transparent"> + android:background="@android:color/transparent" + xmlns:osmand="http://schemas.android.com/apk/res-auto"> - - - - - - - - - - - + android:text="@string/search_address_building" + style="@style/TextAppearance.ContextMenuTitle"/> - + - - - - - - -