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
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/fragment_edit_item"
android:overScrollMode="ifContentScrolls"
android:windowSoftInputMode="adjustPan"
android:fitsSystemWindows="true"
android:windowActionBarOverlay="true"
android:clickable="true"
android:focusable="true"
android:importantForAutofill="noExcludeDescendants"
tools:ignore="UnusedAttribute"
style="@style/EditItem">
<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_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent">
<androidx.constraintlayout.widget.ConstraintLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:ellipsize="end"
android:id="@+id/toolbarTitle"
android:gravity="center_vertical"
android:paddingEnd="50dp"
android:maxLines="1"
android:textSize="20sp"
android:fontFamily="sans-serif-medium"
android:textStyle="normal"
android:textColor="@color/text_white"
android:letterSpacing="0.01"
android:layout_gravity="center_vertical|start"
android:text="@null"
app:layout_constraintEnd_toStartOf="@id/saveEntryButton"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
tools:ignore="RtlSymmetry"/>
<Button
android:id="@+id/saveEntryButton"
android:layout_width="20dp"
android:layout_height="wrap_content"
android:drawableStart="@drawable/ic_check_white"
android:drawableTint="@color/background_white"
android:background="@null"
android:layout_marginEnd="16dp"
android:gravity="center_vertical|center_horizontal"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.appcompat.widget.Toolbar>
<androidx.cardview.widget.CardView
style="@style/EditItem"
android:id="@+id/cardView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="26dp"
android:paddingStart="16dp"
android:paddingEnd="16dp"
android:layout_gravity="center"
android:fitsSystemWindows="true"
card_view:layout_constraintTop_toBottomOf="@id/toolbar">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/editLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingTop="26dp"
android:paddingBottom="37dp"
android:paddingEnd="5dp"
tools:ignore="RtlSymmetry">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/entryHostname"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingEnd="16dp"
android:clickable="false"
android:focusable="false"
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:paddingStart="16dp"
android:clickable="false"
android:focusable="false"
android:colorControlHighlight="@color/black_60_percent"
android:colorControlActivated="@color/black_60_percent"
android:textColorHint="@color/black_60_percent"
android:contentDescription="@string/web_address_description"
app:layout_constraintTop_toTopOf="parent"
card_view:layout_constraintStart_toStartOf="parent"
card_view:layout_constraintEnd_toEndOf="parent"
tools:ignore="RtlSymmetry">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/inputHostname"
android:textSize="16sp"
android:fontFamily="sans-serif"
android:textStyle="normal"
android:paddingBottom="13dp"
android:textColor="@color/gray_73_percent"
android:textColorHint="@color/black_60_percent"
android:colorControlHighlight="@color/black_60_percent"
android:colorControlActivated="@color/black_60_percent"
android:letterSpacing="0.01"
android:lineSpacingExtra="8sp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/hint_hostname"
android:inputType="textNoSuggestions"
android:ellipsize="end"
android:maxLines="1"
android:singleLine="true"
android:clickable="false"
android:focusable="false"
android:textCursorDrawable="@android:color/transparent"
app:backgroundTint="@color/gray_divider"
tools:ignore="Autofill"/>
</com.google.android.material.textfield.TextInputLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/entryUsername"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:foregroundGravity="center_vertical"
android:layout_marginTop="16dp"
android:layout_marginEnd="16dp"
app:layout_constraintTop_toBottomOf="@id/entryHostname" >
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/inputLayoutUsername"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:paddingStart="16dp"
android:textColorHint="@color/black_60_percent"
android:colorControlActivated="@color/violet_70"
android:contentDescription="@string/username_description"
app:layout_constraintTop_toTopOf="parent"
card_view:layout_constraintStart_toStartOf="parent"
card_view:layout_constraintEnd_toEndOf="parent"
tools:ignore="RtlSymmetry">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/inputUsername"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/hint_username"
android:textSize="16sp"
android:fontFamily="sans-serif"
android:textStyle="normal"
android:textColor="@color/black_87_percent"
android:letterSpacing="0.01"
android:lineSpacingExtra="8sp"
android:inputType="textNoSuggestions"
android:singleLine="true"
android:ellipsize="end"
android:drawablePadding="5dp"
android:paddingBottom="14dp"
android:maxLines="1"
android:clickable="true"
android:focusable="true"
app:backgroundTint="@color/gray_divider"
tools:ignore="Autofill" />
</com.google.android.material.textfield.TextInputLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/entryPassword"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="18dp"
android:paddingEnd="16dp"
android:fontFamily="sans-serif"
app:layout_constraintTop_toBottomOf="@id/entryUsername" >
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/inputLayoutPassword"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="16dp"
android:paddingEnd="32dp"
android:layout_weight="1"
android:textColorHint="@color/hint_edit_text"
android:colorControlActivated="@color/violet_70"
android:contentDescription="@string/entry_password_description"
app:layout_constraintTop_toTopOf="parent"
card_view:layout_constraintStart_toStartOf="parent"
card_view:layout_constraintEnd_toEndOf="parent" >
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/inputPassword"
android:textSize="16sp"
android:textStyle="normal"
android:textColor="@color/black_87_percent"
android:lineSpacingExtra="8sp"
android:fontFamily="monospace"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/hint_password"
android:inputType="textNoSuggestions"
android:colorControlActivated="@color/violet_70"
android:singleLine="true"
android:clickable="true"
android:focusable="true"
android:paddingBottom="12dp"
android:foregroundGravity="center_vertical"
app:backgroundTint="@android:color/transparent"
tools:ignore="Autofill"/>
</com.google.android.material.textfield.TextInputLayout>
<ImageButton
android:id="@+id/btnPasswordToggle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="10dp"
android:background="@null"
android:foregroundGravity="center_horizontal|center_vertical"
android:contentDescription="@string/display_password_content_description"
app:layout_constraintTop_toTopOf="@+id/inputLayoutPassword"
app:layout_constraintBottom_toBottomOf="@+id/inputLayoutPassword"
card_view:layout_constraintEnd_toEndOf="@id/inputLayoutPassword"
app:srcCompat="@drawable/ic_show"/>
<View
android:layout_height="1dp"
android:layout_width="match_parent"
android:background="@color/gray_divider"
android:layout_marginStart="20dp"
android:layout_marginEnd="4dp"
android:layout_marginTop="12dp"
card_view:layout_constraintTop_toBottomOf="@id/btnPasswordToggle" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.cardview.widget.CardView>
</androidx.constraintlayout.widget.ConstraintLayout>