tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

fragment_edit_login.xml (10658B)


      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- This Source Code Form is subject to the terms of the Mozilla Public
      3   - License, v. 2.0. If a copy of the MPL was not distributed with this
      4   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
      5 
      6 <androidx.constraintlayout.widget.ConstraintLayout
      7    xmlns:android="http://schemas.android.com/apk/res/android"
      8    xmlns:app="http://schemas.android.com/apk/res-auto"
      9    xmlns:tools="http://schemas.android.com/tools"
     10    android:id="@+id/editLoginLayout"
     11    android:layout_width="match_parent"
     12    android:layout_height="wrap_content"
     13    android:layout_marginStart="20dp"
     14    android:layout_marginEnd="20dp"
     15    android:layout_marginTop="16dp"
     16    android:clickable="true"
     17    android:focusable="true" >
     18 
     19    <TextView
     20        android:id="@+id/hostnameHeaderText"
     21        style="@style/CaptionTextStyle"
     22        android:layout_width="0dp"
     23        android:layout_height="wrap_content"
     24        android:paddingStart="3dp"
     25        android:paddingEnd="0dp"
     26        android:gravity="center_vertical"
     27        android:text="@string/preferences_passwords_saved_logins_site"
     28        android:textColor="?attr/textPrimary"
     29        android:letterSpacing="0.05"
     30        app:layout_constraintEnd_toEndOf="parent"
     31        app:layout_constraintStart_toStartOf="parent"
     32        app:layout_constraintTop_toTopOf="parent"
     33        app:layout_constraintVertical_chainStyle="packed" />
     34 
     35    <com.google.android.material.textfield.TextInputLayout
     36        android:id="@+id/inputLayoutHostname"
     37        android:layout_width="match_parent"
     38        android:layout_height="wrap_content"
     39        android:clickable="false"
     40        android:focusable="false"
     41        android:background="@android:color/transparent"
     42        android:textColor="?attr/textPrimary"
     43        android:layout_marginStart="3dp"
     44        android:contentDescription="@string/saved_login_hostname_description_3"
     45        app:backgroundTint="@android:color/transparent"
     46        app:hintEnabled="false"
     47        app:layout_constraintEnd_toEndOf="@id/hostnameHeaderText"
     48        app:layout_constraintStart_toStartOf="@id/hostnameHeaderText"
     49        app:layout_constraintTop_toBottomOf="@id/hostnameHeaderText">
     50 
     51        <com.google.android.material.textfield.TextInputEditText
     52            android:id="@+id/hostnameText"
     53            android:layout_width="match_parent"
     54            android:layout_height="wrap_content"
     55            android:paddingTop="12dp"
     56            android:paddingBottom="14dp"
     57            android:textSize="16sp"
     58            android:fontFamily="sans-serif"
     59            android:textStyle="normal"
     60            android:textColor="?attr/textDisabled"
     61            android:letterSpacing="0.01"
     62            android:lineSpacingExtra="8sp"
     63            android:hint="@string/saved_login_hostname_description_3"
     64            android:inputType="textNoSuggestions"
     65            android:ellipsize="end"
     66            android:maxLines="1"
     67            android:singleLine="true"
     68            android:clickable="false"
     69            android:focusable="false"
     70            android:textCursorDrawable="@android:color/transparent"
     71            android:background="@android:color/transparent"
     72            app:backgroundTint="@android:color/transparent"
     73            tools:ignore="Autofill"/>
     74    </com.google.android.material.textfield.TextInputLayout>
     75 
     76    <TextView
     77        android:id="@+id/usernameHeader"
     78        style="@style/CaptionTextStyle"
     79        android:layout_width="0dp"
     80        android:layout_height="wrap_content"
     81        android:gravity="center_vertical"
     82        android:paddingStart="3dp"
     83        android:paddingEnd="0dp"
     84        android:layout_marginTop="6dp"
     85        android:text="@string/preferences_passwords_saved_logins_username"
     86        android:textColor="?attr/textPrimary"
     87        android:letterSpacing="0.05"
     88        app:layout_constraintBottom_toTopOf="@id/inputLayoutUsername"
     89        app:layout_constraintEnd_toStartOf="@id/clearUsernameTextButton"
     90        app:layout_constraintStart_toStartOf="parent"
     91        app:layout_constraintTop_toBottomOf="@id/inputLayoutHostname"
     92        app:layout_constraintVertical_chainStyle="packed" />
     93 
     94    <com.google.android.material.textfield.TextInputLayout
     95        android:id="@+id/inputLayoutUsername"
     96        android:layout_width="match_parent"
     97        android:layout_height="wrap_content"
     98        android:colorControlHighlight="?attr/textPrimary"
     99        android:colorControlActivated="?attr/textPrimary"
    100        android:textColor="?attr/textPrimary"
    101        android:contentDescription="@string/saved_login_username_description_3"
    102        app:layout_constraintEnd_toEndOf="@id/usernameHeader"
    103        app:layout_constraintStart_toStartOf="@id/usernameHeader"
    104        app:layout_constraintTop_toBottomOf="@id/usernameHeader"
    105        app:layout_constraintVertical_chainStyle="packed"
    106        app:hintEnabled="false">
    107 
    108        <com.google.android.material.textfield.TextInputEditText
    109            android:id="@+id/usernameText"
    110            android:layout_width="match_parent"
    111            android:layout_height="wrap_content"
    112            android:minHeight="@dimen/accessibility_min_height"
    113            android:textSize="16sp"
    114            android:fontFamily="sans-serif"
    115            android:textStyle="normal"
    116            android:colorControlHighlight="?attr/textPrimary"
    117            android:colorControlActivated="?attr/textPrimary"
    118            android:textColor="?attr/textPrimary"
    119            android:letterSpacing="0.01"
    120            android:lineSpacingExtra="8sp"
    121            android:inputType="textNoSuggestions"
    122            android:ellipsize="end"
    123            android:maxLines="1"
    124            android:singleLine="true"
    125            android:clickable="true"
    126            android:focusable="true"
    127            android:cursorVisible="true"
    128            android:textCursorDrawable="@null"
    129            app:backgroundTint="?attr/textPrimary"
    130            tools:ignore="Autofill"/>
    131    </com.google.android.material.textfield.TextInputLayout>
    132 
    133    <ImageButton
    134        android:id="@+id/clearUsernameTextButton"
    135        android:layout_width="48dp"
    136        android:layout_height="@dimen/accessibility_min_height"
    137        android:layout_marginTop="3dp"
    138        android:layout_marginBottom="10dp"
    139        android:background="@null"
    140        android:contentDescription="@string/saved_login_clear_username"
    141        app:tint="@color/saved_login_clear_edit_text_tint"
    142        app:layout_constraintBottom_toBottomOf="@id/inputLayoutUsername"
    143        app:layout_constraintEnd_toEndOf="parent"
    144        app:layout_constraintTop_toTopOf="@id/inputLayoutUsername"
    145        app:srcCompat="@drawable/mozac_ic_cross_circle_fill_24" />
    146 
    147    <TextView
    148        android:id="@+id/passwordHeader"
    149        style="@style/CaptionTextStyle"
    150        android:layout_width="0dp"
    151        android:layout_height="wrap_content"
    152        android:gravity="center_vertical"
    153        android:paddingStart="3dp"
    154        android:paddingEnd="0dp"
    155        android:text="@string/preferences_passwords_saved_logins_password"
    156        android:textColor="?attr/textPrimary"
    157        android:layout_marginTop="5dp"
    158        android:letterSpacing="0.05"
    159        app:layout_constraintBottom_toTopOf="@id/inputLayoutPassword"
    160        app:layout_constraintEnd_toStartOf="@id/revealPasswordButton"
    161        app:layout_constraintStart_toStartOf="parent"
    162        app:layout_constraintTop_toBottomOf="@id/inputLayoutUsername"
    163        app:layout_constraintVertical_chainStyle="packed" />
    164 
    165    <com.google.android.material.textfield.TextInputLayout
    166        android:id="@+id/inputLayoutPassword"
    167        android:layout_width="match_parent"
    168        android:layout_height="wrap_content"
    169        android:colorControlHighlight="?attr/textPrimary"
    170        android:colorControlActivated="?attr/textPrimary"
    171        android:textColor="?attr/textPrimary"
    172        android:contentDescription="@string/saved_login_password_description_2"
    173        app:hintEnabled="false"
    174        app:layout_constraintBottom_toBottomOf="parent"
    175        app:layout_constraintEnd_toEndOf="@id/passwordHeader"
    176        app:layout_constraintStart_toStartOf="@id/passwordHeader"
    177        app:layout_constraintTop_toBottomOf="@id/passwordHeader"
    178        app:layout_constraintVertical_chainStyle="packed">
    179 
    180        <com.google.android.material.textfield.TextInputEditText
    181            android:id="@+id/passwordText"
    182            android:layout_width="match_parent"
    183            android:layout_height="wrap_content"
    184            android:minHeight="@dimen/accessibility_min_height"
    185            android:clickable="true"
    186            android:colorControlActivated="?attr/textPrimary"
    187            android:colorControlHighlight="?attr/textPrimary"
    188            android:cursorVisible="true"
    189            android:textCursorDrawable="@null"
    190            android:ellipsize="end"
    191            android:focusable="true"
    192            android:fontFamily="sans-serif"
    193            android:inputType="textNoSuggestions"
    194            android:letterSpacing="0.01"
    195            android:lineSpacingExtra="8sp"
    196            android:maxLines="1"
    197            android:singleLine="true"
    198            android:textColor="?attr/textPrimary"
    199            android:textSize="16sp"
    200            android:textStyle="normal"
    201            app:backgroundTint="?attr/textPrimary"
    202            tools:ignore="Autofill" />
    203    </com.google.android.material.textfield.TextInputLayout>
    204 
    205    <ImageButton
    206        android:id="@+id/revealPasswordButton"
    207        android:layout_width="48dp"
    208        android:layout_height="@dimen/accessibility_min_height"
    209        android:layout_marginTop="3dp"
    210        android:layout_marginBottom="10dp"
    211        android:background="@null"
    212        android:contentDescription="@string/saved_login_reveal_password"
    213        app:tint="?attr/textPrimary"
    214        app:layout_constraintBottom_toBottomOf="@id/inputLayoutPassword"
    215        app:layout_constraintEnd_toStartOf="@id/clearPasswordTextButton"
    216        app:layout_constraintTop_toTopOf="@id/inputLayoutPassword"
    217        app:srcCompat="@drawable/mozac_ic_eye_24" />
    218 
    219    <ImageButton
    220        android:id="@+id/clearPasswordTextButton"
    221        android:layout_width="48dp"
    222        android:layout_height="@dimen/accessibility_min_height"
    223        android:background="@null"
    224        android:contentDescription="@string/saved_logins_clear_password"
    225        app:tint="@color/saved_login_clear_edit_text_tint"
    226        app:layout_constraintBottom_toBottomOf="@id/revealPasswordButton"
    227        app:layout_constraintEnd_toEndOf="parent"
    228        app:layout_constraintTop_toTopOf="@id/revealPasswordButton"
    229        app:srcCompat="@drawable/mozac_ic_cross_circle_fill_24" />
    230 </androidx.constraintlayout.widget.ConstraintLayout>