diff --git a/app/src/main/java/it/reyboz/bustorino/fragments/MapLibreFragment.kt b/app/src/main/java/it/reyboz/bustorino/fragments/MapLibreFragment.kt --- a/app/src/main/java/it/reyboz/bustorino/fragments/MapLibreFragment.kt +++ b/app/src/main/java/it/reyboz/bustorino/fragments/MapLibreFragment.kt @@ -1089,9 +1089,9 @@ */ private fun updateFollowingIcon(enabled: Boolean){ if(enabled) - followUserButton.setImageDrawable(ContextCompat.getDrawable(requireContext(), R.drawable.ic_follow_me_on)) + followUserButton.setImageDrawable(ContextCompat.getDrawable(requireContext(), R.drawable.walk_circle_active)) else - followUserButton.setImageDrawable(ContextCompat.getDrawable(requireContext(), R.drawable.ic_follow_me)) + followUserButton.setImageDrawable(ContextCompat.getDrawable(requireContext(), R.drawable.walk_circle_inactive)) } private fun setFollowingUser(following: Boolean){ diff --git a/app/src/main/res/drawable/crosshair_circle_grey.xml b/app/src/main/res/drawable/crosshair_circle_grey.xml new file mode 100644 --- /dev/null +++ b/app/src/main/res/drawable/crosshair_circle_grey.xml @@ -0,0 +1,9 @@ + + + + + + + diff --git a/app/src/main/res/drawable/location_circlew_grey.xml b/app/src/main/res/drawable/location_circlew_grey.xml --- a/app/src/main/res/drawable/location_circlew_grey.xml +++ b/app/src/main/res/drawable/location_circlew_grey.xml @@ -1,5 +1,5 @@ - diff --git a/app/src/main/res/drawable/location_circlew_red.xml b/app/src/main/res/drawable/location_circlew_red.xml --- a/app/src/main/res/drawable/location_circlew_red.xml +++ b/app/src/main/res/drawable/location_circlew_red.xml @@ -1,9 +1,9 @@ - - + + + + + + diff --git a/app/src/main/res/drawable/walk_circle_inactive.xml b/app/src/main/res/drawable/walk_circle_inactive.xml new file mode 100644 --- /dev/null +++ b/app/src/main/res/drawable/walk_circle_inactive.xml @@ -0,0 +1,13 @@ + + + + + + + diff --git a/app/src/main/res/layout/fragment_map_libre.xml b/app/src/main/res/layout/fragment_map_libre.xml --- a/app/src/main/res/layout/fragment_map_libre.xml +++ b/app/src/main/res/layout/fragment_map_libre.xml @@ -163,18 +163,20 @@ android:contentDescription="@string/enable_position" android:layout_alignParentTop="true" android:layout_alignParentEnd="true" - android:layout_marginEnd="4dp" + android:layout_marginEnd="1dp" android:cropToPadding="true"/> @@ -187,10 +189,12 @@ android:background="#00ffffff" android:contentDescription="@string/bt_follow_me_description" android:cropToPadding="true" + android:layout_marginEnd="1dp" + android:layout_below="@+id/centerMapImageButton" android:layout_alignStart="@+id/centerMapImageButton" - android:layout_marginTop="6dp" /> + android:layout_marginTop="7dp" /> \ No newline at end of file diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml --- a/app/src/main/res/values/dimens.xml +++ b/app/src/main/res/values/dimens.xml @@ -12,4 +12,6 @@ 5dp 28sp + 43dp +