Revision control
Copy as Markdown
<?xml version="1.0" encoding="utf-8"?><!--
~ This Source Code Form is subject to the terms of the Mozilla Public
~ License, v. 2.0. If a copy of the MPL was not distributed with this
-->
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/fragment_display_item"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/background_grey"
android:importantForAutofill="noExcludeDescendants"
tools:ignore="UnusedAttribute">
<include
layout="@layout/fragment_warning"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintBottom_toTopOf="@id/cardView"
app:layout_constraintTop_toBottomOf="@id/toolbar"
tools:text="@string/no_internet_connection" />
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
android:theme="@style/ToolBar"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
<TextView
android:id="@+id/entryTitle"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_gravity="center_vertical|start"
android:layout_weight="1"
android:ellipsize="end"
android:fontFamily="sans-serif-medium"
android:letterSpacing="0.01"
android:maxLines="1"
android:paddingEnd="50dp"
android:textColor="@color/text_white"
android:textSize="20sp"
android:textStyle="normal"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="RtlSymmetry" />
<ImageButton
android:id="@+id/kebabMenuButton"
style="@style/PopupKebabMenu"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="14dp"
android:background="@drawable/ic_menu_kebab"
android:contentDescription="@string/kebab_menu"
android:paddingTop="10dp"
android:paddingBottom="10dp"
android:textAllCaps="false"
android:textSize="20sp"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.appcompat.widget.Toolbar>
android:id="@+id/cardView"
style="@style/EditItem"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
card_view:layout_constraintTop_toBottomOf="@id/networkWarning">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="26dp"
android:paddingEnd="14dp"
android:paddingStart="16dp"
android:paddingBottom="32dp"
tools:ignore="RtlSymmetry">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/hostname"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/inputLayoutHostname"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:contentDescription="@string/launch_hostname_content_description"
android:paddingEnd="42dp"
android:scrollbars="none"
android:textColorHint="@color/black_60_percent"
app:layout_constraintEnd_toStartOf="@id/btnHostnameLaunch"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="RtlSymmetry">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/inputHostname"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clickable="true"
android:colorControlActivated="@color/violet_70"
android:ellipsize="end"
android:focusable="true"
android:hint="@string/hint_hostname"
android:inputType="textNoSuggestions"
android:lines="1"
android:scrollHorizontally="true"
android:textColor="@color/violet_70"
android:theme="@style/EditItemTextStyle"
tools:ignore="Autofill" />
</com.google.android.material.textfield.TextInputLayout>
<ImageView
android:id="@+id/btnHostnameLaunch"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:background="@null"
android:paddingTop="8dp"
android:paddingEnd="16dp"
android:paddingBottom="8dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/ic_launch"
tools:ignore="ContentDescription" />
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginStart="4dp"
android:layout_marginTop="2dp"
android:layout_marginEnd="11dp"
android:background="@color/gray_divider"
app:layout_constraintTop_toBottomOf="@id/btnHostnameLaunch" />
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/username"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
app:layout_constraintTop_toBottomOf="@id/hostname">
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/inputLayoutUsername"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="17dp"
android:layout_weight="1"
android:contentDescription="@string/copy_username_content_description"
android:paddingTop="1dp"
android:paddingEnd="42dp"
android:textColorHint="@color/black_60_percent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/inputUsername"
style="@style/EditItemTextStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:colorControlActivated="@color/violet_70"
android:ellipsize="end"
android:layout_weight="1"
android:hint="@string/hint_username"
android:inputType="textNoSuggestions"
android:paddingBottom="15dp"
android:lines="1"
app:layout_constraintEnd_toEndOf="@+id/inputLayoutUsername"
app:layout_constraintTop_toTopOf="@+id/inputLayoutUsername"
tools:ignore="Autofill" />
</com.google.android.material.textfield.TextInputLayout>
<ImageView
android:id="@+id/btnUsernameCopy"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@null"
android:paddingTop="8dp"
android:paddingEnd="16dp"
android:paddingBottom="7dp"
app:layout_constraintBottom_toBottomOf="@+id/inputLayoutUsername"
app:layout_constraintRight_toRightOf="@+id/inputLayoutUsername"
app:layout_constraintTop_toTopOf="@+id/inputLayoutUsername"
app:srcCompat="@drawable/ic_copy"
tools:ignore="ContentDescription,RtlSymmetry" />
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginTop="2dp"
android:layout_marginEnd="11dp"
android:layout_marginStart="4dp"
android:background="@color/gray_divider"
card_view:layout_constraintTop_toBottomOf="@id/btnUsernameCopy" />
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/password"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:fontFamily="sans-serif"
android:layout_marginEnd="12dp"
card_view:layout_constraintEnd_toEndOf="parent"
card_view:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/username">
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/inputLayoutPassword"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="17dp"
android:layout_weight="1"
android:paddingTop="1dp"
android:paddingEnd="42dp"
android:textColorHint="@color/black_60_percent"
android:contentDescription="@string/copy_password_content_description"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/inputPassword"
style="@style/EditItemTextStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:backgroundTint="@color/background_white"
android:clickable="true"
android:colorControlActivated="@color/violet_70"
android:ellipsize="end"
android:focusable="true"
android:fontFamily="monospace"
android:hint="@string/hint_password"
android:isScrollContainer="false"
android:letterSpacing="0.01"
android:lineSpacingExtra="8sp"
android:paddingBottom="16dp"
android:popupBackground="@android:color/transparent"
android:singleLine="true"
android:textColor="@color/black_87_percent"
android:textSize="16sp"
android:textStyle="normal"
app:layout_constraintEnd_toEndOf="@+id/inputLayoutPassword"
app:layout_constraintTop_toTopOf="@+id/inputLayoutPassword"
tools:ignore="Autofill" />
</com.google.android.material.textfield.TextInputLayout>
<ImageButton
android:id="@+id/btnPasswordToggle"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_marginBottom="10dp"
android:paddingTop="12dp"
android:background="@null"
android:contentDescription="@string/display_password_content_description"
card_view:layout_constraintEnd_toStartOf="@id/btnPasswordCopy"
card_view:layout_constraintTop_toTopOf="@id/btnPasswordCopy"
app:srcCompat="@drawable/ic_show" />
<ImageButton
android:id="@+id/btnPasswordCopy"
android:layout_width="40dp"
android:layout_height="40dp"
android:background="@null"
android:contentDescription="@string/copy_password_content_description"
android:paddingStart="16dp"
android:paddingTop="12dp"
android:paddingEnd="4dp"
app:layout_constraintBottom_toBottomOf="@id/inputLayoutPassword"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/ic_copy" />
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginStart="4dp"
android:layout_marginTop="8dp"
android:background="@color/gray_divider"
card_view:layout_constraintStart_toStartOf="parent"
card_view:layout_constraintEnd_toEndOf="parent"
card_view:layout_constraintTop_toBottomOf="@id/btnPasswordCopy"/>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.cardview.widget.CardView>
</androidx.constraintlayout.widget.ConstraintLayout>