Skip to content

Commit

Permalink
Move the location FAB so it doesn't cover the Google logo in left han…
Browse files Browse the repository at this point in the history
…d mode

Fixes #871
  • Loading branch information
aaronbrethorst committed Dec 17, 2023
1 parent 177bde8 commit 5ad4daf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions onebusaway-android/src/main/res/layout/main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_marginRight="@dimen/fab_margin"
android:layout_marginLeft="@dimen/fab_margin"
android:layout_marginBottom="@dimen/fab_margin"
android:layout_marginRight="@dimen/fab_margin_horizontal"
android:layout_marginLeft="@dimen/fab_margin_horizontal"
android:layout_marginBottom="@dimen/fab_margin_vertical"
android:src="@drawable/ic_maps_my_location"
android:contentDescription="@string/map_option_mylocation"
app:elevation="6dp"
Expand Down
3 changes: 2 additions & 1 deletion onebusaway-android/src/main/res/values/dimens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@

<!-- Floating action button (FAB) dimensions -->
<dimen name="fab_size">56dp</dimen>
<dimen name="fab_margin">16dp</dimen>
<dimen name="fab_margin_vertical">32dp</dimen>
<dimen name="fab_margin_horizontal">16dp</dimen>

<!-- Shadows, for FAB on platforms before Lollipop -->
<dimen name="fab_shadow_size_1">@dimen/fab_size</dimen>
Expand Down

0 comments on commit 5ad4daf

Please sign in to comment.