Resolved warnings on main activity layout

This commit is contained in:
Daniele Verducci (Slimpenguin) 2024-02-19 08:26:55 +01:00
parent ca2b7a7064
commit a396406877
4 changed files with 20 additions and 6 deletions

View File

@ -84,7 +84,8 @@
android:paddingEnd="@dimen/spacer_1x"
android:paddingBottom="@dimen/spacer_2x"
android:tint="@color/text_color"
android:src="@drawable/ic_menu_grey"/>
android:src="@drawable/ic_menu_grey"
android:contentDescription="@string/menu"/>
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/search_text"
android:layout_width="0dp"
@ -110,7 +111,8 @@
android:id="@+id/fragment_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:name="it.danieleverducci.nextcloudmaps.fragments.GeofavoriteListFragment" />
android:name="it.danieleverducci.nextcloudmaps.fragments.GeofavoriteListFragment"
tools:layout="@layout/fragment_geofavorite_list" />
<!-- Add from map FAB -->
@ -124,7 +126,8 @@
app:backgroundTint="@color/defaultBrand"
app:fabSize="mini"
app:tint="@color/white"
tools:ignore="DuplicateClickableBoundsCheck" />
tools:ignore="DuplicateClickableBoundsCheck"
android:contentDescription="@string/add_from_map" />
<!-- Add from current position FAB -->
<com.google.android.material.floatingactionbutton.FloatingActionButton
@ -136,7 +139,8 @@
app:fabSize="mini"
android:src="@drawable/ic_add_gps"
app:backgroundTint="@color/defaultBrand"
app:tint="@color/white"/>
app:tint="@color/white"
android:contentDescription="@string/add_from_gps"/>
<!-- Main FAB -->
<com.google.android.material.floatingactionbutton.FloatingActionButton
@ -147,6 +151,7 @@
android:layout_height="wrap_content"
android:src="@drawable/ic_add"
app:backgroundTint="@color/defaultBrand"
app:tint="@color/white"/>
app:tint="@color/white"
android:contentDescription="@string/open_fab"/>
</androidx.coordinatorlayout.widget.CoordinatorLayout>

View File

@ -97,4 +97,9 @@
<string name="new_geobookmark_gps">Crea dalla posizione corrente</string>
<string name="new_geobookmark_map">Crea dalla mappa</string>
<!-- Accessibility (content descriptions) -->
<string name="open_fab">Aggiungi</string>
<string name="add_from_gps">Crea dalla posizione corrente</string>
<string name="add_from_map">Crea dalla mappa</string>
</resources>

View File

@ -96,4 +96,9 @@
<string name="new_geobookmark_gps">New from current position</string>
<string name="new_geobookmark_map">New from map</string>
<!-- Accessibility (content descriptions) -->
<string name="open_fab">Add geofavorite</string>
<string name="add_from_gps">Add geofavorite at current GPS position</string>
<string name="add_from_map">Add geofavorite from map</string>
<string name="menu">Open menu</string>
</resources>

View File

@ -17,7 +17,6 @@
<resources>
<!-- Base application theme. -->
<!--<style name="BaseTheme" parent="Theme.AppCompat.DayNight.NoActionBar">-->
<style name="BaseTheme" parent="Theme.MaterialComponents.DayNight.NoActionBar">
<item name="colorAccent">@color/defaultBrand</item>
<item name="colorControlNormal">?attr/colorAccent</item>