Login screens: fix lint issues

This commit is contained in:
Benoit Marty 2019-11-22 10:47:29 +01:00
parent d2b516bdc2
commit e0a36b794f
10 changed files with 72 additions and 20 deletions

View File

@ -6,11 +6,17 @@
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView style="@style/LoginLogo" />
<!-- Missing attributes are in the style -->
<ImageView
style="@style/LoginLogo"
tools:ignore="ContentDescription,MissingConstraints" />
<!-- Missing attributes are in the style -->
<!--suppress AndroidDomInspection -->
<LinearLayout
style="@style/LoginFormContainer"
android:orientation="vertical">
android:orientation="vertical"
tools:ignore="MissingConstraints">
<ImageView
android:id="@+id/loginServerIcon"

View File

@ -1,11 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView style="@style/LoginLogo" />
<!-- Missing attributes are in the style -->
<ImageView
style="@style/LoginLogo"
tools:ignore="ContentDescription,MissingConstraints" />
<!-- Missing attributes are in the style -->
<LinearLayout
style="@style/LoginFormContainer"
android:layout_height="0dp"
@ -13,7 +18,8 @@
android:paddingStart="16dp"
android:paddingTop="8dp"
android:paddingEnd="16dp"
android:paddingBottom="16dp">
android:paddingBottom="16dp"
tools:ignore="MissingConstraints">
<TextView
android:id="@+id/loginCaptchaNotice"

View File

@ -6,11 +6,16 @@
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView style="@style/LoginLogo" />
<!-- Missing attributes are in the style -->
<ImageView
style="@style/LoginLogo"
tools:ignore="ContentDescription,MissingConstraints" />
<!-- Missing attributes are in the style -->
<LinearLayout
style="@style/LoginFormContainer"
android:orientation="vertical">
android:orientation="vertical"
tools:ignore="MissingConstraints">
<TextView
android:id="@+id/loginGenericTextInputFormTitle"

View File

@ -5,11 +5,16 @@
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView style="@style/LoginLogo" />
<!-- Missing attributes are in the style -->
<ImageView
style="@style/LoginLogo"
tools:ignore="ContentDescription,MissingConstraints" />
<!-- Missing attributes are in the style -->
<LinearLayout
style="@style/LoginFormContainer"
android:orientation="vertical">
android:orientation="vertical"
tools:ignore="MissingConstraints">
<TextView
android:id="@+id/resetPasswordTitle"

View File

@ -4,11 +4,16 @@
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView style="@style/LoginLogo" />
<!-- Missing attributes are in the style -->
<ImageView
style="@style/LoginLogo"
tools:ignore="ContentDescription,MissingConstraints" />
<!-- Missing attributes are in the style -->
<LinearLayout
style="@style/LoginFormContainer"
android:orientation="vertical">
android:orientation="vertical"
tools:ignore="MissingConstraints">
<TextView
android:layout_width="wrap_content"

View File

@ -1,13 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView style="@style/LoginLogo" />
<!-- Missing attributes are in the style -->
<ImageView
style="@style/LoginLogo"
tools:ignore="ContentDescription,MissingConstraints" />
<!-- Missing attributes are in the style -->
<LinearLayout
style="@style/LoginFormContainer"
android:orientation="vertical">
android:orientation="vertical"
tools:ignore="MissingConstraints">
<TextView
android:layout_width="wrap_content"

View File

@ -6,11 +6,16 @@
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView style="@style/LoginLogo" />
<!-- Missing attributes are in the style -->
<ImageView
style="@style/LoginLogo"
tools:ignore="ContentDescription,MissingConstraints" />
<!-- Missing attributes are in the style -->
<LinearLayout
style="@style/LoginFormContainer"
android:orientation="vertical">
android:orientation="vertical"
tools:ignore="MissingConstraints">
<ImageView
android:id="@+id/loginServerUrlFormIcon"

View File

@ -5,11 +5,15 @@
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView style="@style/LoginLogo" />
<!-- Missing attributes are in the style -->
<ImageView
style="@style/LoginLogo"
tools:ignore="ContentDescription,MissingConstraints" />
<!-- Missing attributes are in the style -->
<androidx.constraintlayout.widget.ConstraintLayout
style="@style/LoginFormContainer"
android:orientation="vertical">
tools:ignore="MissingConstraints">
<ImageView
android:id="@+id/loginSignupSigninServerIcon"

View File

@ -5,11 +5,16 @@
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView style="@style/LoginLogo" />
<!-- Missing attributes are in the style -->
<ImageView
style="@style/LoginLogo"
tools:ignore="ContentDescription,MissingConstraints" />
<!-- Missing attributes are in the style -->
<androidx.constraintlayout.widget.ConstraintLayout
style="@style/LoginFormContainer"
android:layout_height="0dp">
android:layout_height="0dp"
tools:ignore="MissingConstraints">
<TextView
android:id="@+id/loginTermsTitle"

View File

@ -5,11 +5,16 @@
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView style="@style/LoginLogo" />
<!-- Missing attributes are in the style -->
<ImageView
style="@style/LoginLogo"
tools:ignore="ContentDescription,MissingConstraints" />
<!-- Missing attributes are in the style -->
<LinearLayout
style="@style/LoginFormContainer"
android:orientation="vertical">
android:orientation="vertical"
tools:ignore="MissingConstraints">
<TextView
android:id="@+id/loginWaitForEmailTitle"