1
0
Fork 0
fenix/app/src/main/res/layout/fragment_edit_bookmark.xml

87 lines
3.3 KiB
XML

<?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
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:layout_margin="16dp">
<TextView
android:id="@+id/bookmark_name_label"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="@string/bookmark_name_label"
android:textColor="?primaryText"
android:textSize="12sp"
android:textAllCaps="true"
android:labelFor="@id/bookmarkNameEdit" />
<org.mozilla.fenix.utils.ClearableEditText
android:id="@+id/bookmarkNameEdit"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:drawablePadding="8dp"
android:ellipsize="none"
android:fadingEdgeLength="8dp"
android:inputType="textAutoComplete"
android:requiresFadingEdge="horizontal"
android:textColor="?secondaryText"
android:textSize="15sp"
tools:text="Internet for people, not profit -- Mozilla" />
<TextView
android:id="@+id/bookmarkUrlLabel"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="@string/bookmark_url_label"
android:textColor="?primaryText"
android:textSize="12sp"
android:textAllCaps="true"
android:labelFor="@id/bookmarkUrlEdit" />
<org.mozilla.fenix.utils.ClearableEditText
android:id="@+id/bookmarkUrlEdit"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:drawablePadding="8dp"
android:ellipsize="none"
android:fadingEdgeLength="8dp"
android:inputType="textUri"
android:requiresFadingEdge="horizontal"
android:textColor="?secondaryText"
android:textSize="15sp"
tools:text="https://www.mozilla.org/en-US/" />
<TextView
android:id="@+id/bookmark_folder_label"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="@string/bookmark_folder_label"
android:textColor="?primaryText"
android:textSize="12sp"
android:textAllCaps="true"
android:labelFor="@id/bookmarkFolderSelector" />
<TextView
android:id="@+id/bookmarkFolderSelector"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:textSize="16sp"
android:textColor="?secondaryText"
android:drawableStart="@drawable/ic_folder_icon"
android:drawablePadding="10dp"
android:drawableTint="?primaryText"
tools:text="Mobile Bookmarks"
tools:targetApi="m" />
</LinearLayout>