tor-browser

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

focus_snackbar.xml (2887B)


      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 <FrameLayout 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 
     11    <androidx.constraintlayout.widget.ConstraintLayout
     12        android:id="@+id/snackbar_layout"
     13        android:layout_width="match_parent"
     14        android:layout_height="wrap_content"
     15        android:layout_margin="8dp"
     16        android:background="@drawable/focus_snackbar_background"
     17        android:elevation="4dp"
     18        android:minHeight="48dp"
     19        android:orientation="horizontal"
     20        android:paddingStart="16dp"
     21        android:paddingEnd="16dp">
     22 
     23        <TextView
     24            android:id="@+id/snackbar_text"
     25            android:layout_width="0dp"
     26            android:layout_height="wrap_content"
     27            android:ellipsize="end"
     28            android:letterSpacing="0.05"
     29            android:maxLines="2"
     30            android:paddingTop="8dp"
     31            android:paddingBottom="8dp"
     32            android:textAlignment="textStart"
     33            android:textColor="@color/snackbarTextColor"
     34            android:textSize="14sp"
     35            app:layout_constraintBottom_toBottomOf="parent"
     36            app:layout_constraintEnd_toStartOf="@id/snackbar_action"
     37            app:layout_constraintStart_toStartOf="parent"
     38            app:layout_constraintTop_toTopOf="parent"
     39            tools:text="Custom Focus Snackbar" />
     40 
     41        <Button
     42            android:id="@+id/snackbar_action"
     43            style="@style/Widget.AppCompat.Button.Borderless"
     44            android:layout_width="wrap_content"
     45            android:layout_height="wrap_content"
     46            android:layout_marginStart="16dp"
     47            android:background="?android:attr/selectableItemBackgroundBorderless"
     48            android:letterSpacing="0.05"
     49            android:minWidth="48dp"
     50            android:minHeight="48dp"
     51            android:paddingTop="8dp"
     52            android:paddingBottom="8dp"
     53            android:textAlignment="textEnd"
     54            android:textAllCaps="true"
     55            android:textColor="@color/snackbarActionText"
     56            android:textSize="14sp"
     57            android:visibility="gone"
     58            app:layout_constraintBottom_toBottomOf="parent"
     59            app:layout_constraintEnd_toEndOf="parent"
     60            app:layout_constraintStart_toEndOf="@id/snackbar_text"
     61            app:layout_constraintTop_toTopOf="parent"
     62            tools:text="Action text"
     63            tools:visibility="visible" />
     64    </androidx.constraintlayout.widget.ConstraintLayout>
     65 </FrameLayout>