Skip to content

Commit

Permalink
blink navigation icon when GPS signal lost (#3944)
Browse files Browse the repository at this point in the history
  • Loading branch information
westnordost committed Apr 19, 2022
1 parent f6b61c3 commit b6c8de3
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<vector
xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M12,2L4.5,20.29l0.71,0.71L12,18l6.79,3 0.71,-0.71z M12,6.5L17,18.5L12,16L7,18.5z" />
</vector>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<animation-list android:id="@+id/selected"
android:oneshot="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/ic_location_navigation_no_location_24dp" android:duration="750" />
<item android:drawable="@drawable/ic_location_navigation_24dp" android:duration="750" />
</animation-list>
3 changes: 2 additions & 1 deletion app/src/main/res/drawable/ic_location_state_24dp.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>

<selector xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
<item app:is_navigation="true" android:drawable="@drawable/ic_location_navigation_24dp"/>
<item app:is_navigation="true" app:state_updating="true" android:drawable="@drawable/ic_location_navigation_24dp"/>
<item app:is_navigation="true" android:drawable="@drawable/ic_location_navigation_searching_24dp"/>
<item app:state_updating="true" android:drawable="@drawable/ic_location_24dp"/>
<item app:state_searching="true" android:drawable="@drawable/ic_location_searching_24dp"/>
<item app:state_enabled="true" android:drawable="@drawable/ic_location_no_location_24dp"/>
Expand Down

0 comments on commit b6c8de3

Please sign in to comment.