tor-browser

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

fragment_edit_bookmark.xml (4380B)


      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 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      6    xmlns:app="http://schemas.android.com/apk/res-auto"
      7    xmlns:tools="http://schemas.android.com/tools"
      8    android:layout_width="match_parent"
      9    android:layout_height="match_parent"
     10    android:layout_margin="16dp"
     11    android:orientation="vertical">
     12 
     13    <ProgressBar
     14        android:id="@+id/progress_bar_bookmark"
     15        style="@style/Widget.AppCompat.ProgressBar.Horizontal"
     16        android:layout_width="match_parent"
     17        android:layout_height="8dp"
     18        android:indeterminate="true"
     19        android:translationY="-3dp"
     20        android:visibility="gone"
     21        app:layout_constraintStart_toStartOf="parent"
     22        app:layout_constraintTop_toTopOf="parent" />
     23 
     24    <TextView
     25        android:id="@+id/bookmark_name_label"
     26        android:layout_width="match_parent"
     27        android:layout_height="wrap_content"
     28        android:layout_marginStart="4dp"
     29        android:layout_marginTop="16dp"
     30        android:labelFor="@id/bookmarkNameEdit"
     31        android:text="@string/bookmark_name_label"
     32        android:textAllCaps="true"
     33        android:textColor="?attr/textPrimary"
     34        android:textSize="12sp" />
     35 
     36    <org.mozilla.fenix.utils.ClearableEditText
     37        android:id="@+id/bookmarkNameEdit"
     38        android:layout_width="match_parent"
     39        android:layout_height="@dimen/bookmark_edit_text_height"
     40        android:layout_marginBottom="8dp"
     41        android:drawablePadding="8dp"
     42        android:ellipsize="none"
     43        android:fadingEdgeLength="8dp"
     44        android:inputType="textAutoComplete"
     45        android:requiresFadingEdge="horizontal"
     46        android:textColor="?attr/textSecondary"
     47        android:textSize="15sp"
     48        tools:text="Internet for people, not profit -- Mozilla" />
     49 
     50    <TextView
     51        android:id="@+id/bookmarkUrlLabel"
     52        android:layout_width="match_parent"
     53        android:layout_height="wrap_content"
     54        android:layout_marginStart="4dp"
     55        android:layout_marginTop="8dp"
     56        android:labelFor="@id/bookmarkUrlEdit"
     57        android:text="@string/bookmark_url_label"
     58        android:textAllCaps="true"
     59        android:textColor="?attr/textPrimary"
     60        android:textSize="12sp" />
     61 
     62    <com.google.android.material.textfield.TextInputLayout
     63        android:id="@+id/inputLayoutBookmarkUrl"
     64        android:layout_width="match_parent"
     65        android:layout_height="wrap_content">
     66 
     67        <org.mozilla.fenix.utils.ClearableEditText
     68            android:id="@+id/bookmarkUrlEdit"
     69            android:layout_width="match_parent"
     70            android:layout_height="@dimen/bookmark_edit_text_height"
     71            android:layout_marginBottom="8dp"
     72            android:drawablePadding="8dp"
     73            android:ellipsize="none"
     74            android:fadingEdgeLength="8dp"
     75            android:inputType="textUri"
     76            android:requiresFadingEdge="horizontal"
     77            android:textColor="?attr/textSecondary"
     78            android:textSize="15sp"
     79            tools:text="https://www.mozilla.org/en-US/" />
     80 
     81    </com.google.android.material.textfield.TextInputLayout>
     82 
     83    <TextView
     84        android:id="@+id/bookmark_folder_label"
     85        android:layout_width="match_parent"
     86        android:layout_height="wrap_content"
     87        android:layout_marginStart="4dp"
     88        android:layout_marginTop="8dp"
     89        android:labelFor="@id/bookmarkParentFolderSelector"
     90        android:text="@string/bookmark_folder_label"
     91        android:textAllCaps="true"
     92        android:textColor="?attr/textPrimary"
     93        android:textSize="12sp" />
     94 
     95    <TextView
     96        android:id="@+id/bookmarkParentFolderSelector"
     97        android:layout_width="match_parent"
     98        android:layout_height="48dp"
     99        android:layout_marginStart="4dp"
    100        android:layout_marginTop="8dp"
    101        android:drawablePadding="10dp"
    102        android:gravity="center_vertical"
    103        android:textColor="?attr/textSecondary"
    104        android:textSize="16sp"
    105        app:drawableStartCompat="@drawable/ic_folder_icon"
    106        app:drawableTint="?attr/textPrimary"
    107        tools:text="Mobile Bookmarks" />
    108 
    109 </LinearLayout>