2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-11 13:11:01 +00:00
iceraven-browser/app/src/main/res/layout/fragment_edit_bookmark.xml
Emily Kager 1df9c53b9f
Fix: Set correct height for EditText (#10014)
Created a dimension for the correct height that the EditText in the
fragment_edit_bookmark.xml has to have.

Co-authored-by: DrCesar <josuejacobstercero@gmail.com>
2020-04-16 20:31:25 -07:00

103 lines
3.9 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:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="16dp"
android:orientation="vertical">
<ProgressBar
android:id="@+id/progress_bar_bookmark"
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
android:layout_width="match_parent"
android:layout_height="8dp"
android:indeterminate="true"
android:translationY="-3dp"
android:visibility="gone"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/bookmark_name_label"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="4dp"
android:layout_marginTop="16dp"
android:labelFor="@id/bookmarkNameEdit"
android:text="@string/bookmark_name_label"
android:textAllCaps="true"
android:textColor="?primaryText"
android:textSize="12sp" />
<org.mozilla.fenix.utils.ClearableEditText
android:id="@+id/bookmarkNameEdit"
android:layout_width="match_parent"
android:layout_height="@dimen/bookmark_edit_text_height"
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_marginStart="4dp"
android:layout_marginTop="8dp"
android:labelFor="@id/bookmarkUrlEdit"
android:text="@string/bookmark_url_label"
android:textAllCaps="true"
android:textColor="?primaryText"
android:textSize="12sp" />
<org.mozilla.fenix.utils.ClearableEditText
android:id="@+id/bookmarkUrlEdit"
android:layout_width="match_parent"
android:layout_height="@dimen/bookmark_edit_text_height"
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_marginStart="4dp"
android:layout_marginTop="8dp"
android:labelFor="@id/bookmarkParentFolderSelector"
android:text="@string/bookmark_folder_label"
android:textAllCaps="true"
android:textColor="?primaryText"
android:textSize="12sp" />
<TextView
android:id="@+id/bookmarkParentFolderSelector"
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_marginStart="4dp"
android:layout_marginTop="8dp"
android:drawablePadding="10dp"
android:gravity="center_vertical"
android:textColor="?secondaryText"
android:textSize="16sp"
app:drawableStartCompat="@drawable/ic_folder_icon"
app:drawableTint="?primaryText"
tools:text="Mobile Bookmarks" />
</LinearLayout>