diff --git a/myTracks/build.gradle b/myTracks/build.gradle index b6a81b28e..94617ec6e 100644 --- a/myTracks/build.gradle +++ b/myTracks/build.gradle @@ -23,6 +23,6 @@ dependencies { implementation project(':myTracksLib') implementation 'com.google.android.gms:play-services-location:17.0.0' - //implementation 'com.google.android.gms:play-services:12.0.1' - //implementation 'com.google.android.gms:play-services-auth:17.0.0' + + implementation 'androidx.appcompat:appcompat:1.0.0' } diff --git a/myTracks/src/main/java/com/google/android/apps/mytracks/AbstractTrackActivity.java b/myTracks/src/main/java/com/google/android/apps/mytracks/AbstractTrackActivity.java index f01e387bd..1d6339d34 100644 --- a/myTracks/src/main/java/com/google/android/apps/mytracks/AbstractTrackActivity.java +++ b/myTracks/src/main/java/com/google/android/apps/mytracks/AbstractTrackActivity.java @@ -28,6 +28,7 @@ import android.app.Activity; import android.app.SearchManager; import android.content.Context; import android.content.Intent; +import android.util.Log; import android.util.SparseBooleanArray; import android.view.ActionMode; import android.view.Menu; @@ -129,6 +130,7 @@ public abstract class AbstractTrackActivity extends AbstractActivity implements if (searchView == null) { //TODO This is a workaround and needs to be fixed; looks like a configuration issue. + Log.d(AbstractTrackActivity.class.getCanonicalName(), "Search is not yet implemented."); return; } diff --git a/myTracks/src/main/res/menu/list_context_menu.xml b/myTracks/src/main/res/menu/list_context_menu.xml index 5ec793768..59b5a6a97 100644 --- a/myTracks/src/main/res/menu/list_context_menu.xml +++ b/myTracks/src/main/res/menu/list_context_menu.xml @@ -13,30 +13,38 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> - + + app:showAsAction="ifRoom" /> + + app:showAsAction="ifRoom" /> + app:showAsAction="ifRoom" /> + app:showAsAction="ifRoom" /> + app:showAsAction="ifRoom" /> \ No newline at end of file diff --git a/myTracks/src/main/res/menu/marker_detail.xml b/myTracks/src/main/res/menu/marker_detail.xml index 98b58ebc7..056ed7b82 100644 --- a/myTracks/src/main/res/menu/marker_detail.xml +++ b/myTracks/src/main/res/menu/marker_detail.xml @@ -13,25 +13,26 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> - + + android:title="@string/menu_show_on_map" + app:showAsAction="ifRoom" /> + android:title="@string/menu_edit" + app:showAsAction="ifRoom" /> + android:title="@string/menu_delete" + app:showAsAction="ifRoom" /> + android:title="@string/menu_view_photo" + app:showAsAction="ifRoom" /> \ No newline at end of file diff --git a/myTracks/src/main/res/menu/marker_list.xml b/myTracks/src/main/res/menu/marker_list.xml index 4d87bddcd..79487d142 100644 --- a/myTracks/src/main/res/menu/marker_list.xml +++ b/myTracks/src/main/res/menu/marker_list.xml @@ -13,16 +13,17 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> - + + android:icon="@drawable/ic_menu_insert_marker" + android:title="@string/menu_insert_marker" + app:showAsAction="ifRoom" /> + app:actionViewClass="androidx.appcompat.widget.SearchView" + app:showAsAction="ifRoom|collapseActionView" /> \ No newline at end of file diff --git a/myTracks/src/main/res/menu/search_list.xml b/myTracks/src/main/res/menu/search_list.xml index bd67cbd31..eb067a82d 100644 --- a/myTracks/src/main/res/menu/search_list.xml +++ b/myTracks/src/main/res/menu/search_list.xml @@ -13,11 +13,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> - + + app:actionViewClass="androidx.appcompat.widget.SearchView" + app:showAsAction="ifRoom|collapseActionView" /> \ No newline at end of file diff --git a/myTracks/src/main/res/menu/track_detail.xml b/myTracks/src/main/res/menu/track_detail.xml index 621510172..e4a8bd230 100644 --- a/myTracks/src/main/res/menu/track_detail.xml +++ b/myTracks/src/main/res/menu/track_detail.xml @@ -13,58 +13,60 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> - + + android:title="@string/menu_insert_marker" + app:showAsAction="ifRoom" /> + android:title="@string/menu_insert_photo" + app:showAsAction="ifRoom" /> + android:title="@string/menu_share" + app:actionProviderClass="androidx.appcompat.widget.ShareActionProvider" + app:showAsAction="never" /> \ No newline at end of file diff --git a/myTracks/src/main/res/menu/track_list.xml b/myTracks/src/main/res/menu/track_list.xml index 0277f12e5..87e65a7c6 100644 --- a/myTracks/src/main/res/menu/track_list.xml +++ b/myTracks/src/main/res/menu/track_list.xml @@ -13,37 +13,37 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> - + + app:actionViewClass="androidx.appcompat.widget.SearchView" + app:showAsAction="always" /> + app:showAsAction="ifRoom" /> \ No newline at end of file