tor-browser

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

fragment_add_login.xml (10348B)


      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/addLoginLayout"
     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    tools:ignore="RtlSymmetry" >
     19 
     20    <TextView
     21        android:id="@+id/hostnameHeaderText"
     22        style="@style/CaptionTextStyle"
     23        android:layout_width="0dp"
     24        android:layout_height="wrap_content"
     25        android:paddingStart="3dp"
     26        android:paddingEnd="0dp"
     27        android:gravity="center_vertical"
     28        android:text="@string/preferences_passwords_saved_logins_site"
     29        android:textColor="?attr/textPrimary"
     30        android:letterSpacing="0.05"
     31        app:layout_constraintEnd_toEndOf="parent"
     32        app:layout_constraintStart_toStartOf="parent"
     33        app:layout_constraintTop_toTopOf="parent"
     34        app:layout_constraintVertical_chainStyle="packed" />
     35 
     36    <com.google.android.material.textfield.TextInputLayout
     37        android:id="@+id/inputLayoutHostname"
     38        android:layout_width="0dp"
     39        android:layout_height="wrap_content"
     40        android:colorControlHighlight="?attr/textPrimary"
     41        android:colorControlActivated="?attr/textPrimary"
     42        android:textColor="?attr/textPrimary"
     43        app:layout_constraintEnd_toEndOf="parent"
     44        app:layout_constraintStart_toStartOf="parent"
     45        app:layout_constraintTop_toBottomOf="@id/hostnameHeaderText"
     46        app:helperTextEnabled="true"
     47        app:helperText="@string/add_login_hostname_invalid_text_3"
     48        app:hintEnabled="false" >
     49 
     50        <com.google.android.material.textfield.TextInputEditText
     51            android:id="@+id/hostnameText"
     52            android:layout_width="match_parent"
     53            android:layout_height="wrap_content"
     54            android:minHeight="48dp"
     55            android:paddingEnd="48dp"
     56            android:textSize="16sp"
     57            android:fontFamily="sans-serif"
     58            android:textStyle="normal"
     59            android:colorControlHighlight="?attr/textPrimary"
     60            android:colorControlActivated="?attr/textPrimary"
     61            android:textColor="?attr/textPrimary"
     62            android:letterSpacing="0.01"
     63            android:lineSpacingExtra="8sp"
     64            android:hint="@string/add_login_hostname_hint_text"
     65            android:inputType="textNoSuggestions"
     66            android:ellipsize="end"
     67            android:maxLines="1"
     68            android:singleLine="true"
     69            android:clickable="true"
     70            android:focusable="true"
     71            android:cursorVisible="true"
     72            android:textCursorDrawable="@null"
     73            app:backgroundTint="?attr/textPrimary"
     74            tools:ignore="Autofill"/>
     75    </com.google.android.material.textfield.TextInputLayout>
     76 
     77    <ImageButton
     78        android:id="@+id/clearHostnameTextButton"
     79        android:layout_width="48dp"
     80        android:layout_height="48dp"
     81        android:layout_marginTop="3dp"
     82        android:layout_marginBottom="10dp"
     83        android:background="@null"
     84        android:contentDescription="@string/saved_login_clear_hostname"
     85        android:visibility="invisible"
     86        app:tint="@color/saved_login_clear_edit_text_tint"
     87        app:layout_constraintEnd_toEndOf="parent"
     88        app:layout_constraintTop_toTopOf="@id/inputLayoutHostname"
     89        app:srcCompat="@drawable/mozac_ic_cross_circle_fill_24" />
     90 
     91    <TextView
     92        android:id="@+id/usernameHeader"
     93        style="@style/CaptionTextStyle"
     94        android:layout_width="0dp"
     95        android:layout_height="wrap_content"
     96        android:gravity="center_vertical"
     97        android:paddingStart="3dp"
     98        android:paddingEnd="0dp"
     99        android:layout_marginTop="20dp"
    100        android:text="@string/preferences_passwords_saved_logins_username"
    101        android:textColor="?attr/textPrimary"
    102        android:letterSpacing="0.05"
    103        app:layout_constraintBottom_toTopOf="@id/inputLayoutUsername"
    104        app:layout_constraintEnd_toEndOf="parent"
    105        app:layout_constraintStart_toStartOf="parent"
    106        app:layout_constraintTop_toBottomOf="@id/inputLayoutHostname"
    107        app:layout_constraintVertical_chainStyle="packed" />
    108 
    109    <com.google.android.material.textfield.TextInputLayout
    110        android:id="@+id/inputLayoutUsername"
    111        android:layout_width="0dp"
    112        android:layout_height="wrap_content"
    113        android:colorControlHighlight="?attr/textPrimary"
    114        android:colorControlActivated="?attr/textPrimary"
    115        android:textColor="?attr/textPrimary"
    116        android:contentDescription="@string/saved_login_username_description_3"
    117        app:layout_constraintEnd_toEndOf="parent"
    118        app:layout_constraintStart_toStartOf="parent"
    119        app:layout_constraintTop_toBottomOf="@id/usernameHeader"
    120        app:layout_constraintVertical_chainStyle="packed"
    121        app:hintEnabled="false">
    122 
    123        <com.google.android.material.textfield.TextInputEditText
    124            android:id="@+id/usernameText"
    125            android:layout_width="match_parent"
    126            android:layout_height="wrap_content"
    127            android:minHeight="48dp"
    128            android:paddingEnd="48dp"
    129            android:textSize="16sp"
    130            android:fontFamily="sans-serif"
    131            android:textStyle="normal"
    132            android:colorControlHighlight="?attr/textPrimary"
    133            android:colorControlActivated="?attr/textPrimary"
    134            android:textColor="?attr/textPrimary"
    135            android:letterSpacing="0.01"
    136            android:lineSpacingExtra="8sp"
    137            android:inputType="textNoSuggestions"
    138            android:ellipsize="end"
    139            android:maxLines="1"
    140            android:singleLine="true"
    141            android:clickable="true"
    142            android:focusable="true"
    143            android:cursorVisible="true"
    144            android:textCursorDrawable="@null"
    145            app:backgroundTint="?attr/textPrimary"
    146            tools:ignore="Autofill"/>
    147    </com.google.android.material.textfield.TextInputLayout>
    148 
    149    <ImageButton
    150        android:id="@+id/clearUsernameTextButton"
    151        android:layout_width="48dp"
    152        android:layout_height="48dp"
    153        android:background="@null"
    154        android:contentDescription="@string/saved_login_clear_username"
    155        android:visibility="invisible"
    156        app:tint="@color/saved_login_clear_edit_text_tint"
    157        app:layout_constraintEnd_toEndOf="parent"
    158        app:layout_constraintTop_toTopOf="@id/inputLayoutUsername"
    159        app:layout_constraintBottom_toBottomOf="@+id/inputLayoutUsername"
    160        app:srcCompat="@drawable/mozac_ic_cross_circle_fill_24" />
    161 
    162    <TextView
    163        android:id="@+id/passwordHeader"
    164        style="@style/CaptionTextStyle"
    165        android:layout_width="0dp"
    166        android:layout_height="wrap_content"
    167        android:layout_marginTop="10dp"
    168        android:gravity="center_vertical"
    169        android:letterSpacing="0.05"
    170        android:paddingStart="3dp"
    171        android:paddingEnd="0dp"
    172        android:text="@string/preferences_passwords_saved_logins_password"
    173        android:textColor="?attr/textPrimary"
    174        app:layout_constraintBottom_toTopOf="@id/inputLayoutPassword"
    175        app:layout_constraintEnd_toEndOf="parent"
    176        app:layout_constraintStart_toStartOf="parent"
    177        app:layout_constraintTop_toBottomOf="@id/inputLayoutUsername"
    178        app:layout_constraintVertical_chainStyle="packed" />
    179 
    180    <com.google.android.material.textfield.TextInputLayout
    181        android:id="@+id/inputLayoutPassword"
    182        android:layout_width="0dp"
    183        android:layout_height="wrap_content"
    184        android:colorControlActivated="?attr/textPrimary"
    185        android:colorControlHighlight="?attr/textPrimary"
    186        android:contentDescription="@string/saved_login_password_description_2"
    187        android:paddingBottom="11dp"
    188        android:textColor="?attr/textPrimary"
    189        app:hintEnabled="false"
    190        app:layout_constraintEnd_toEndOf="parent"
    191        app:layout_constraintStart_toStartOf="parent"
    192        app:layout_constraintTop_toBottomOf="@id/passwordHeader"
    193        app:layout_constraintVertical_chainStyle="packed">
    194 
    195        <com.google.android.material.textfield.TextInputEditText
    196            android:id="@+id/passwordText"
    197            android:layout_width="match_parent"
    198            android:layout_height="wrap_content"
    199            android:minHeight="48dp"
    200            android:paddingEnd="48dp"
    201            android:clickable="true"
    202            android:colorControlActivated="?attr/textPrimary"
    203            android:colorControlHighlight="?attr/textPrimary"
    204            android:cursorVisible="true"
    205            android:ellipsize="end"
    206            android:focusable="true"
    207            android:fontFamily="sans-serif"
    208            android:inputType="textNoSuggestions"
    209            android:letterSpacing="0.01"
    210            android:lineSpacingExtra="8sp"
    211            android:maxLines="1"
    212            android:singleLine="true"
    213            android:textColor="?attr/textPrimary"
    214            android:textCursorDrawable="@null"
    215            android:textSize="16sp"
    216            android:textStyle="normal"
    217            app:backgroundTint="?attr/textPrimary"
    218            tools:ignore="Autofill" />
    219    </com.google.android.material.textfield.TextInputLayout>
    220 
    221    <ImageButton
    222        android:id="@+id/clearPasswordTextButton"
    223        android:layout_width="48dp"
    224        android:layout_height="48dp"
    225        android:background="@null"
    226        android:contentDescription="@string/saved_logins_clear_password"
    227        android:visibility="invisible"
    228        app:layout_constraintEnd_toEndOf="parent"
    229        app:layout_constraintTop_toTopOf="@id/inputLayoutPassword"
    230        app:srcCompat="@drawable/mozac_ic_cross_circle_fill_24"
    231        app:tint="@color/saved_login_clear_edit_text_tint" />
    232 
    233 </androidx.constraintlayout.widget.ConstraintLayout>