mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 04:53:36 +00:00
[android] Remove useless tools property in views
Signed-off-by: Jean-Baptiste <jeanbaptiste.charron@outlook.fr>
This commit is contained in:
@@ -27,8 +27,7 @@
|
||||
app:cardBackgroundColor="?colorPrimary">
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/nav_street_height"
|
||||
tools:ignore="UselessParent">
|
||||
android:layout_height="@dimen/nav_street_height">
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/street"
|
||||
style="@style/MwmWidget.TextView.NavStreet"
|
||||
|
||||
@@ -17,8 +17,7 @@
|
||||
android:clipToPadding="false"
|
||||
android:clipChildren="false"
|
||||
android:layout_gravity="center"
|
||||
android:gravity="center"
|
||||
tools:ignore="UselessParent">
|
||||
android:gravity="center">
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -64,8 +63,7 @@
|
||||
android:fontFamily="@string/robotoMedium"
|
||||
android:textStyle="normal"
|
||||
android:gravity="center_horizontal"
|
||||
tools:text="Some name very loooooooooong name"
|
||||
tools:ignore="UnusedAttribute"/>
|
||||
tools:text="Some name very loooooooooong name" />
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/downloader_size"
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
@@ -5,8 +5,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/elevation_profile_height"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
tools:background="@color/black_54"
|
||||
tools:ignore="Overdraw">
|
||||
tools:background="@color/black_54">
|
||||
<com.google.android.material.imageview.ShapeableImageView
|
||||
android:id="@+id/image"
|
||||
android:layout_width="@dimen/elevation_profile_marker_width"
|
||||
@@ -20,8 +19,7 @@
|
||||
android:layout_marginStart="@dimen/margin_eighth"
|
||||
android:layout_marginEnd="@dimen/margin_eighth"
|
||||
android:layout_toEndOf="@id/image"
|
||||
android:clipChildren="false"
|
||||
tools:ignore="UnusedAttribute">
|
||||
android:clipChildren="false">
|
||||
<com.google.android.material.imageview.ShapeableImageView
|
||||
android:id="@+id/floating_triangle"
|
||||
android:layout_width="wrap_content"
|
||||
@@ -42,8 +40,7 @@
|
||||
android:background="?elevationProfileSelectedPointBg"
|
||||
android:elevation="@dimen/margin_eighth"
|
||||
android:maxWidth="@dimen/dialog_min_height"
|
||||
android:padding="@dimen/margin_quarter_plus"
|
||||
tools:ignore="UnusedAttribute">
|
||||
android:padding="@dimen/margin_quarter_plus">
|
||||
<com.google.android.material.imageview.ShapeableImageView
|
||||
android:id="@+id/distance_icon"
|
||||
android:layout_width="@dimen/margin_half_plus"
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:background="?attr/cardBackground"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
@@ -13,8 +12,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:background="?colorPrimary"
|
||||
android:gravity="end|center_vertical"
|
||||
android:theme="@style/MwmWidget.ToolbarTheme"
|
||||
tools:ignore="UnusedAttribute">
|
||||
android:theme="@style/MwmWidget.ToolbarTheme">
|
||||
</com.google.android.material.appbar.MaterialToolbar>
|
||||
<LinearLayout
|
||||
android:layout_marginTop="@dimen/margin_half_double_plus"
|
||||
|
||||
@@ -78,8 +78,7 @@
|
||||
android:layout_marginTop="@dimen/margin_base"
|
||||
android:fontFamily="@string/robotoMedium"
|
||||
android:text="@string/charging_station_available_sockets"
|
||||
android:textAppearance="@style/MwmTextAppearance.Body3"
|
||||
tools:ignore="UnusedAttribute"/>
|
||||
android:textAppearance="@style/MwmTextAppearance.Body3" />
|
||||
<include
|
||||
android:id="@+id/block_charge_sockets"
|
||||
layout="@layout/item_charging_sockets"/>
|
||||
@@ -105,8 +104,7 @@
|
||||
android:layout_marginTop="@dimen/margin_base"
|
||||
android:fontFamily="@string/robotoMedium"
|
||||
android:text="@string/address"
|
||||
android:textAppearance="@style/MwmTextAppearance.Body3"
|
||||
tools:ignore="UnusedAttribute"/>
|
||||
android:textAppearance="@style/MwmTextAppearance.Body3" />
|
||||
<RelativeLayout
|
||||
android:id="@+id/block_street"
|
||||
style="@style/MwmWidget.Editor.MetadataBlock.Clickable"
|
||||
@@ -114,8 +112,7 @@
|
||||
android:paddingTop="@dimen/margin_half">
|
||||
<com.google.android.material.imageview.ShapeableImageView
|
||||
style="@style/MwmWidget.Editor.MetadataIcon"
|
||||
app:srcCompat="@drawable/ic_street_address"
|
||||
tools:ignore="ContentDescription" />
|
||||
app:srcCompat="@drawable/ic_street_address" />
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/street_title"
|
||||
android:layout_width="match_parent"
|
||||
@@ -164,8 +161,7 @@
|
||||
android:paddingBottom="@dimen/margin_half"
|
||||
android:fontFamily="@string/robotoMedium"
|
||||
android:text="@string/details"
|
||||
android:textAppearance="@style/MwmTextAppearance.Body3"
|
||||
tools:ignore="UnusedAttribute"/>
|
||||
android:textAppearance="@style/MwmTextAppearance.Body3" />
|
||||
|
||||
<include
|
||||
android:id="@+id/block_opening_hours"
|
||||
@@ -178,8 +174,7 @@
|
||||
android:paddingTop="@dimen/margin_half">
|
||||
<com.google.android.material.imageview.ShapeableImageView
|
||||
style="@style/MwmWidget.Editor.MetadataIcon"
|
||||
app:srcCompat="@drawable/ic_cuisine"
|
||||
tools:ignore="ContentDescription" />
|
||||
app:srcCompat="@drawable/ic_cuisine" />
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/title_cuisine"
|
||||
android:layout_width="match_parent"
|
||||
@@ -221,8 +216,7 @@
|
||||
style="@style/MwmWidget.Editor.MetadataBlock.Clickable">
|
||||
<com.google.android.material.imageview.ShapeableImageView
|
||||
style="@style/MwmWidget.Editor.MetadataIcon"
|
||||
app:srcCompat="@drawable/ic_phone"
|
||||
tools:ignore="ContentDescription"/>
|
||||
app:srcCompat="@drawable/ic_phone" />
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/phone"
|
||||
style="@style/MwmWidget.Editor.FieldLayout.EditText"
|
||||
@@ -258,8 +252,7 @@
|
||||
style="@style/MwmWidget.Editor.MetadataBlock.Clickable">
|
||||
<com.google.android.material.imageview.ShapeableImageView
|
||||
style="@style/MwmWidget.Editor.MetadataIcon"
|
||||
app:srcCompat="@drawable/ic_wifi"
|
||||
tools:ignore="ContentDescription" />
|
||||
app:srcCompat="@drawable/ic_wifi" />
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
style="@style/MwmWidget.Editor.FieldLayout.EditText"
|
||||
android:layout_width="match_parent"
|
||||
@@ -283,8 +276,7 @@
|
||||
android:paddingTop="@dimen/margin_half">
|
||||
<com.google.android.material.imageview.ShapeableImageView
|
||||
style="@style/MwmWidget.Editor.MetadataIcon"
|
||||
app:srcCompat="@drawable/ic_self_service"
|
||||
tools:ignore="ContentDescription" />
|
||||
app:srcCompat="@drawable/ic_self_service" />
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/self_service_title"
|
||||
android:layout_width="match_parent"
|
||||
@@ -314,8 +306,7 @@
|
||||
style="@style/MwmWidget.Editor.MetadataBlock.Clickable">
|
||||
<com.google.android.material.imageview.ShapeableImageView
|
||||
style="@style/MwmWidget.Editor.MetadataIcon"
|
||||
app:srcCompat="@drawable/ic_outdoor_seating"
|
||||
tools:ignore="ContentDescription" />
|
||||
app:srcCompat="@drawable/ic_outdoor_seating" />
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
style="@style/MwmWidget.Editor.FieldLayout.EditText"
|
||||
android:layout_width="match_parent"
|
||||
@@ -350,8 +341,7 @@
|
||||
android:paddingBottom="@dimen/margin_half"
|
||||
android:fontFamily="@string/robotoMedium"
|
||||
android:text="@string/social_media"
|
||||
android:textAppearance="@style/MwmTextAppearance.Body3"
|
||||
tools:ignore="UnusedAttribute"/>
|
||||
android:textAppearance="@style/MwmTextAppearance.Body3" />
|
||||
|
||||
<include
|
||||
android:id="@+id/block_fediverse"
|
||||
@@ -393,8 +383,7 @@
|
||||
android:paddingBottom="@dimen/margin_half"
|
||||
android:fontFamily="@string/robotoMedium"
|
||||
android:text="@string/building"
|
||||
android:textAppearance="@style/MwmTextAppearance.Body3"
|
||||
tools:ignore="UnusedAttribute"/>
|
||||
android:textAppearance="@style/MwmTextAppearance.Body3" />
|
||||
|
||||
<include
|
||||
android:id="@+id/block_levels"
|
||||
|
||||
@@ -14,8 +14,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:background="?colorPrimary"
|
||||
android:gravity="end|center_vertical"
|
||||
android:theme="@style/MwmWidget.ToolbarTheme"
|
||||
tools:ignore="UnusedAttribute">
|
||||
android:theme="@style/MwmWidget.ToolbarTheme">
|
||||
<com.google.android.material.imageview.ShapeableImageView
|
||||
android:id="@+id/logout"
|
||||
android:layout_width="?actionBarSize"
|
||||
|
||||
@@ -12,8 +12,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="end|center_vertical"
|
||||
android:theme="@style/MwmWidget.ToolbarTheme"
|
||||
tools:ignore="UnusedAttribute">
|
||||
android:theme="@style/MwmWidget.ToolbarTheme">
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/save"
|
||||
style="@style/MwmWidget.Downloader.ToolbarButton"
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
app:layout_constraintEnd_toStartOf="@+id/custom_input"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:ignore="ContentDescription"
|
||||
tools:src="@drawable/ic_phone" />
|
||||
<com.google.android.material.textfield.TextInputLayout
|
||||
android:id="@+id/custom_input"
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
android:background="?clickableBackground"
|
||||
android:minHeight="@dimen/editor_height_field"
|
||||
android:paddingEnd="@dimen/margin_quarter"
|
||||
android:paddingStart="@dimen/margin_half_plus_eight"
|
||||
tools:ignore="RtlSymmetry">
|
||||
android:paddingStart="@dimen/margin_half_plus_eight">
|
||||
|
||||
<com.google.android.material.imageview.ShapeableImageView
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
@@ -15,8 +15,7 @@
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintEnd_toStartOf="@+id/phone_input"
|
||||
app:srcCompat="@drawable/ic_phone"
|
||||
tools:ignore="ContentDescription" />
|
||||
app:srcCompat="@drawable/ic_phone" />
|
||||
|
||||
<com.google.android.material.textfield.TextInputLayout
|
||||
android:id="@+id/phone_input"
|
||||
@@ -46,7 +45,6 @@
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@+id/phone_input"
|
||||
app:srcCompat="@drawable/ic_delete"
|
||||
tools:ignore="ContentDescription" />
|
||||
app:srcCompat="@drawable/ic_delete" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
@@ -5,8 +5,7 @@
|
||||
android:layout_height="65sp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
tools:background="#3000FF00"
|
||||
tools:ignore="RtlSymmetry">
|
||||
tools:background="#3000FF00">
|
||||
|
||||
<Space
|
||||
android:layout_width="0dp"
|
||||
|
||||
@@ -28,8 +28,7 @@
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:minHeight="60dp"
|
||||
tools:ignore="UselessParent">
|
||||
android:minHeight="60dp">
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/street"
|
||||
style="@style/MwmWidget.TextView.NavStreet"
|
||||
|
||||
@@ -18,8 +18,7 @@
|
||||
android:gravity="center_vertical"
|
||||
android:text="@string/editor_edit_place_name_hint"
|
||||
android:textAppearance="@style/MwmTextAppearance.Body3"
|
||||
tools:drawableEnd="@drawable/ic_expand_more"
|
||||
tools:ignore="UnusedAttribute" />
|
||||
tools:drawableEnd="@drawable/ic_expand_more" />
|
||||
|
||||
<include layout="@layout/recycler_default" />
|
||||
|
||||
|
||||
@@ -16,8 +16,7 @@
|
||||
android:clipChildren="false"
|
||||
android:layout_gravity="center"
|
||||
android:gravity="center_horizontal"
|
||||
android:background="@drawable/onmap_downloader_background"
|
||||
tools:ignore="UselessParent">
|
||||
android:background="@drawable/onmap_downloader_background">
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:layout_width="@dimen/square_block_size"
|
||||
@@ -58,8 +57,7 @@
|
||||
android:fontFamily="@string/robotoMedium"
|
||||
android:textStyle="normal"
|
||||
android:gravity="center_horizontal"
|
||||
tools:text="Some name very loooooooooong name"
|
||||
tools:ignore="UnusedAttribute"/>
|
||||
tools:text="Some name very loooooooooong name"/>
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/downloader_size"
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
style="@style/PlacePageButton"
|
||||
tools:layout_width="100dp"
|
||||
tools:layout_height="@dimen/place_page_buttons_height"
|
||||
tools:ignore="UseCompoundDrawables"
|
||||
tools:background="#40202020">
|
||||
<com.google.android.material.imageview.ShapeableImageView
|
||||
android:id="@+id/icon"
|
||||
|
||||
@@ -5,8 +5,7 @@
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/ll__place_cuisine"
|
||||
style="@style/PlacePageItemFrame"
|
||||
tools:visibility="visible"
|
||||
tools:ignore="UseCompoundDrawables">
|
||||
tools:visibility="visible">
|
||||
|
||||
<com.google.android.material.imageview.ShapeableImageView
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
@@ -21,8 +21,7 @@
|
||||
android:lineSpacingExtra="@dimen/line_spacing_extra_2"
|
||||
android:textColor="?android:attr/textColorPrimary"
|
||||
android:textAppearance="?android:attr/textAppearance"
|
||||
tools:text="asdasdadadasdasdasdasdasdasdasdadas"
|
||||
tools:ignore="UnusedAttribute"/>
|
||||
tools:text="asdasdadadasdasdasdasdasdasdasdadas" />
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/more_btn"
|
||||
|
||||
@@ -59,7 +59,6 @@
|
||||
android:maxLines="@integer/pp_title_lines"
|
||||
android:textAppearance="@style/MwmTextAppearance.Body1"
|
||||
tools:background="#C0800000"
|
||||
tools:ignore="UnusedAttribute"
|
||||
tools:text="Secondary Title" />
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/tv__subtitle"
|
||||
|
||||
@@ -179,7 +179,6 @@
|
||||
android:textAllCaps="true"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textColor="@color/text_light"
|
||||
tools:ignore="UnusedAttribute"
|
||||
tools:text="test" />
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
|
||||
@@ -32,8 +32,7 @@
|
||||
android:inputType="text"
|
||||
android:padding="@dimen/margin_half_plus"
|
||||
android:singleLine="true"
|
||||
android:textCursorDrawable="@drawable/cursor_drawable"
|
||||
tools:ignore="UnusedAttribute"/>
|
||||
android:textCursorDrawable="@drawable/cursor_drawable" />
|
||||
|
||||
<ProgressBar
|
||||
android:id="@+id/progress"
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
<item name="android:textAppearance">@style/MwmTextAppearance.Body1</item>
|
||||
</style>
|
||||
|
||||
<style name="MwmWidget.Editor.Problem" tools:ignore="NewApi">
|
||||
<style name="MwmWidget.Editor.Problem">
|
||||
<item name="android:layout_width">match_parent</item>
|
||||
<item name="android:layout_height">@dimen/height_block_base</item>
|
||||
<item name="android:gravity">center_vertical</item>
|
||||
|
||||
Reference in New Issue
Block a user