diff --git a/OsmAnd/res/drawable-hdpi/ic_play_dark.png b/OsmAnd/res/drawable-hdpi/ic_play_dark.png
new file mode 100644
index 0000000000..c25b806686
Binary files /dev/null and b/OsmAnd/res/drawable-hdpi/ic_play_dark.png differ
diff --git a/OsmAnd/res/drawable-hdpi/ic_play_light.png b/OsmAnd/res/drawable-hdpi/ic_play_light.png
new file mode 100644
index 0000000000..39c080a9f4
Binary files /dev/null and b/OsmAnd/res/drawable-hdpi/ic_play_light.png differ
diff --git a/OsmAnd/res/drawable-hdpi/ic_type_audio.png b/OsmAnd/res/drawable-hdpi/ic_type_audio.png
new file mode 100644
index 0000000000..e53e8f8b9e
Binary files /dev/null and b/OsmAnd/res/drawable-hdpi/ic_type_audio.png differ
diff --git a/OsmAnd/res/drawable-hdpi/ic_type_img.png b/OsmAnd/res/drawable-hdpi/ic_type_img.png
new file mode 100644
index 0000000000..86276bf41b
Binary files /dev/null and b/OsmAnd/res/drawable-hdpi/ic_type_img.png differ
diff --git a/OsmAnd/res/drawable-hdpi/ic_type_video.png b/OsmAnd/res/drawable-hdpi/ic_type_video.png
new file mode 100644
index 0000000000..767c0de2cc
Binary files /dev/null and b/OsmAnd/res/drawable-hdpi/ic_type_video.png differ
diff --git a/OsmAnd/res/drawable-mdpi/ic_play_dark.png b/OsmAnd/res/drawable-mdpi/ic_play_dark.png
new file mode 100644
index 0000000000..c7f4bcd42d
Binary files /dev/null and b/OsmAnd/res/drawable-mdpi/ic_play_dark.png differ
diff --git a/OsmAnd/res/drawable-mdpi/ic_play_light.png b/OsmAnd/res/drawable-mdpi/ic_play_light.png
new file mode 100644
index 0000000000..448a290591
Binary files /dev/null and b/OsmAnd/res/drawable-mdpi/ic_play_light.png differ
diff --git a/OsmAnd/res/drawable-mdpi/ic_type_audio.png b/OsmAnd/res/drawable-mdpi/ic_type_audio.png
new file mode 100644
index 0000000000..0af1472389
Binary files /dev/null and b/OsmAnd/res/drawable-mdpi/ic_type_audio.png differ
diff --git a/OsmAnd/res/drawable-mdpi/ic_type_img.png b/OsmAnd/res/drawable-mdpi/ic_type_img.png
new file mode 100644
index 0000000000..30fb103d64
Binary files /dev/null and b/OsmAnd/res/drawable-mdpi/ic_type_img.png differ
diff --git a/OsmAnd/res/drawable-mdpi/ic_type_video.png b/OsmAnd/res/drawable-mdpi/ic_type_video.png
new file mode 100644
index 0000000000..f01af0b201
Binary files /dev/null and b/OsmAnd/res/drawable-mdpi/ic_type_video.png differ
diff --git a/OsmAnd/res/drawable-xhdpi/ic_play_dark.png b/OsmAnd/res/drawable-xhdpi/ic_play_dark.png
new file mode 100644
index 0000000000..518dac837d
Binary files /dev/null and b/OsmAnd/res/drawable-xhdpi/ic_play_dark.png differ
diff --git a/OsmAnd/res/drawable-xhdpi/ic_play_light.png b/OsmAnd/res/drawable-xhdpi/ic_play_light.png
new file mode 100644
index 0000000000..6b22269e41
Binary files /dev/null and b/OsmAnd/res/drawable-xhdpi/ic_play_light.png differ
diff --git a/OsmAnd/res/drawable-xhdpi/ic_type_audio.png b/OsmAnd/res/drawable-xhdpi/ic_type_audio.png
new file mode 100644
index 0000000000..f0bf0add76
Binary files /dev/null and b/OsmAnd/res/drawable-xhdpi/ic_type_audio.png differ
diff --git a/OsmAnd/res/drawable-xhdpi/ic_type_img.png b/OsmAnd/res/drawable-xhdpi/ic_type_img.png
new file mode 100644
index 0000000000..10a4296079
Binary files /dev/null and b/OsmAnd/res/drawable-xhdpi/ic_type_img.png differ
diff --git a/OsmAnd/res/drawable-xhdpi/ic_type_video.png b/OsmAnd/res/drawable-xhdpi/ic_type_video.png
new file mode 100644
index 0000000000..b400e34728
Binary files /dev/null and b/OsmAnd/res/drawable-xhdpi/ic_type_video.png differ
diff --git a/OsmAnd/res/drawable-xxhdpi/ic_play_dark.png b/OsmAnd/res/drawable-xxhdpi/ic_play_dark.png
new file mode 100644
index 0000000000..aaaad57230
Binary files /dev/null and b/OsmAnd/res/drawable-xxhdpi/ic_play_dark.png differ
diff --git a/OsmAnd/res/drawable-xxhdpi/ic_play_light.png b/OsmAnd/res/drawable-xxhdpi/ic_play_light.png
new file mode 100644
index 0000000000..6ed91cf3ad
Binary files /dev/null and b/OsmAnd/res/drawable-xxhdpi/ic_play_light.png differ
diff --git a/OsmAnd/res/drawable-xxhdpi/ic_type_audio.png b/OsmAnd/res/drawable-xxhdpi/ic_type_audio.png
new file mode 100644
index 0000000000..a9bb8a95ab
Binary files /dev/null and b/OsmAnd/res/drawable-xxhdpi/ic_type_audio.png differ
diff --git a/OsmAnd/res/drawable-xxhdpi/ic_type_img.png b/OsmAnd/res/drawable-xxhdpi/ic_type_img.png
new file mode 100644
index 0000000000..86755a9755
Binary files /dev/null and b/OsmAnd/res/drawable-xxhdpi/ic_type_img.png differ
diff --git a/OsmAnd/res/drawable-xxhdpi/ic_type_video.png b/OsmAnd/res/drawable-xxhdpi/ic_type_video.png
new file mode 100644
index 0000000000..1aa8abcebb
Binary files /dev/null and b/OsmAnd/res/drawable-xxhdpi/ic_type_video.png differ
diff --git a/OsmAnd/res/layout-large-land/dashboard.xml b/OsmAnd/res/layout-large-land/dashboard.xml
index da8dd7965d..569f52b4c6 100644
--- a/OsmAnd/res/layout-large-land/dashboard.xml
+++ b/OsmAnd/res/layout-large-land/dashboard.xml
@@ -63,6 +63,12 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/OsmAnd/res/layout/dash_note_item.xml b/OsmAnd/res/layout/dash_note_item.xml
new file mode 100644
index 0000000000..c64070d8a5
--- /dev/null
+++ b/OsmAnd/res/layout/dash_note_item.xml
@@ -0,0 +1,52 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/OsmAnd/res/layout/dashboard.xml b/OsmAnd/res/layout/dashboard.xml
index 658fd6887b..f4509efc7c 100644
--- a/OsmAnd/res/layout/dashboard.xml
+++ b/OsmAnd/res/layout/dashboard.xml
@@ -37,6 +37,12 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
+
+
notes = new ArrayList(plugin.getAllRecordings());
+ if (notes.size() == 0){
+ (mainView.findViewById(R.id.main_notes)).setVisibility(View.GONE);
+ return;
+ } else {
+ (mainView.findViewById(R.id.main_notes)).setVisibility(View.VISIBLE);
+ }
+
+ LinearLayout notesLayout = (LinearLayout) mainView.findViewById(R.id.notes);
+ notesLayout.removeAllViews();
+ if (notes.size() > 3){
+ while (notes.size() != 3){
+ notes.remove(3);
+ }
+ }
+
+ for (final AudioVideoNotesPlugin.Recording recording : notes){
+ LayoutInflater inflater = getActivity().getLayoutInflater();
+ View view = inflater.inflate(R.layout.dash_note_item, null, false);
+
+ if (recording.name != null){
+ ((TextView) view.findViewById(R.id.name)).setText(recording.name);
+ ((TextView) view.findViewById(R.id.descr)).setText(recording.getDescription(getActivity()));
+ } else {
+ ((TextView) view.findViewById(R.id.name)).setText(recording.getDescription(getActivity()));
+ }
+
+ ImageView icon = (ImageView) view.findViewById(R.id.icon);
+ if (recording.isAudio()){
+ icon.setImageResource(R.drawable.ic_type_audio);
+ } else if (recording.isVideo()){
+ icon.setImageResource(R.drawable.ic_type_video);
+ } else {
+ icon.setImageResource(R.drawable.ic_type_img);
+ }
+ view.findViewById(R.id.play).setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ plugin.playRecording(getActivity(), recording);
+ }
+ });
+ int height = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 50, getResources().getDisplayMetrics());
+
+ LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, height);
+ view.setLayoutParams(lp);
+ notesLayout.addView(view);
+
+ }
+ }
+
+}
diff --git a/OsmAnd/src/net/osmand/plus/dashboard/DashFavoritesFragment.java b/OsmAnd/src/net/osmand/plus/dashboard/DashFavoritesFragment.java
index 2c1c730b24..ae9069151a 100644
--- a/OsmAnd/src/net/osmand/plus/dashboard/DashFavoritesFragment.java
+++ b/OsmAnd/src/net/osmand/plus/dashboard/DashFavoritesFragment.java
@@ -59,8 +59,6 @@ public class DashFavoritesFragment extends DashBaseFragment implements OsmAndLoc
}
});
-
-
return view;
}