225 lines
		
	
	
		
			8.5 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			225 lines
		
	
	
		
			8.5 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
| <?xml version="1.0" encoding="utf-8"?>
 | |
| <LinearLayout
 | |
| xmlns:android="http://schemas.android.com/apk/res/android"
 | |
| xmlns:app="http://schemas.android.com/apk/res-auto"
 | |
| 
 | |
| android:layout_width="fill_parent"
 | |
| android:layout_height="fill_parent"
 | |
| android:fitsSystemWindows="true">
 | |
| <keepass2android.MeasuringLinearLayout
 | |
|   android:layout_width="fill_parent"
 | |
|   android:layout_height="fill_parent"
 | |
|   android:orientation="vertical"
 | |
|   android:id="@+id/relative_layout">
 | |
|   
 | |
|   <androidx.coordinatorlayout.widget.CoordinatorLayout
 | |
|           android:id="@+id/main_content"
 | |
|           android:layout_width="match_parent"
 | |
|           android:layout_height="match_parent"
 | |
|           android:layout_weight="1"
 | |
|           android:fitsSystemWindows="true">
 | |
|     <com.google.android.material.appbar.AppBarLayout
 | |
|         android:id="@+id/appbar"
 | |
|         android:layout_width="match_parent"
 | |
|         android:layout_height="@dimen/detail_backdrop_height"
 | |
|         >
 | |
|       <com.google.android.material.appbar.CollapsingToolbarLayout
 | |
|           android:id="@+id/collapsing_toolbar"
 | |
|           android:layout_width="match_parent"
 | |
|           android:layout_height="match_parent"
 | |
|           app:layout_scrollFlags="scroll|exitUntilCollapsed"
 | |
|           android:fitsSystemWindows="true"
 | |
|           app:expandedTitleMarginStart="16dp"
 | |
|           app:expandedTitleMarginEnd="24dp"
 | |
|           app:expandedTitleMarginBottom="20sp">
 | |
|         <RelativeLayout xmlns:tools="http://schemas.android.com/tools"
 | |
|             android:layout_width="fill_parent"
 | |
|             android:fitsSystemWindows="true"
 | |
|             android:layout_height="fill_parent">
 | |
|           <ImageView
 | |
|               android:id="@+id/backdrop"
 | |
|               android:layout_width="match_parent"
 | |
|               android:layout_height="match_parent"
 | |
|               android:scaleType="centerCrop"
 | |
|               android:src="@drawable/toolbar_bg_quickunlock"
 | |
|               app:layout_collapseMode="parallax" />
 | |
|           <TextView
 | |
|               android:id="@+id/filename_label"
 | |
|               android:layout_width="wrap_content"
 | |
|               android:layout_height="wrap_content"
 | |
|               android:layout_alignParentBottom="true"
 | |
|               android:layout_marginBottom="0sp"
 | |
|               android:layout_marginLeft="16dp"
 | |
|               android:textSize="10sp"
 | |
|               android:text="/storage/emulated/0/keepass/keepass/database.kdbx" />
 | |
|                         
 | |
| 
 | |
|         </RelativeLayout>
 | |
|                     
 | |
|         <androidx.appcompat.widget.Toolbar
 | |
|           android:id="@+id/toolbar"
 | |
|           android:layout_width="match_parent"
 | |
|           android:layout_height="?attr/actionBarSize"
 | |
|           app:layout_collapseMode="pin"/>
 | |
|        
 | |
|       </com.google.android.material.appbar.CollapsingToolbarLayout>
 | |
|      </com.google.android.material.appbar.AppBarLayout>
 | |
|     
 | |
|     <androidx.core.widget.NestedScrollView
 | |
|         android:id="@+id/scrollview"
 | |
|         android:layout_width="match_parent"
 | |
|         android:layout_height="match_parent"
 | |
|         app:layout_behavior="@string/appbar_scrolling_view_behavior">
 | |
|       <LinearLayout
 | |
|           android:layout_width="match_parent"
 | |
|           android:layout_height="match_parent"
 | |
|           android:orientation="vertical"
 | |
| android:paddingLeft="16dp"
 | |
| android:paddingRight="16dp"
 | |
|           android:paddingTop="16dp">
 | |
| 
 | |
|         
 | |
|         <LinearLayout
 | |
|           android:layout_width="wrap_content"
 | |
|           android:layout_height="wrap_content"
 | |
|           android:orientation="horizontal"
 | |
|           android:id="@+id/QuickUnlockForm">
 | |
| 
 | |
|           <TextView
 | |
|             android:id="@+id/QuickUnlock_label"
 | |
|             android:text="@string/QuickUnlock_label"
 | |
|             android:layout_width="fill_parent"
 | |
|             android:layout_height="wrap_content"
 | |
|             android:layout_below="@id/filename_label"
 | |
|             android:textSize="14sp"
 | |
|           />
 | |
| 
 | |
|           <EditText
 | |
|             android:inputType="textPassword"
 | |
|             android:layout_width="wrap_content"
 | |
|             android:layout_height="wrap_content"
 | |
|             android:ems="4"
 | |
|             android:layout_below="@id/QuickUnlock_label"
 | |
|             android:id="@+id/QuickUnlock_password"
 | |
|             android:singleLine="true"
 | |
|             android:fontFamily="sans-serif"
 | |
|             android:textSize="20sp"
 | |
|             android:focusable="true"
 | |
|             android:focusableInTouchMode="true"
 | |
|             android:importantForAccessibility="no"/>
 | |
| 
 | |
|           <ImageButton
 | |
|                                     android:id="@+id/fingerprintbtn"
 | |
|                                     android:layout_width="32dp"
 | |
|                                     android:layout_height="32dp"
 | |
|                                     android:layout_margin="4dp"
 | |
|                                     android:layout_alignParentBottom="true"
 | |
|                                     android:src="@drawable/baseline_fingerprint_24"
 | |
|                                     android:scaleType="fitXY"
 | |
|                                     android:background="?android:selectableItemBackground" />
 | |
|           
 | |
|             
 | |
| 
 | |
|         </LinearLayout>
 | |
| 
 | |
|         <LinearLayout
 | |
|           android:layout_width="match_parent"
 | |
|           android:layout_height="wrap_content"
 | |
|           android:orientation="vertical"
 | |
|           android:background="@color/md_theme_secondaryContainer"
 | |
|           android:id="@+id/QuickUnlockBlocked"
 | |
|           android:padding="16dp"
 | |
|           android:layout_gravity="center">
 | |
| 
 | |
|           <TextView
 | |
|             android:id="@+id/quick_unlock_blocked_title"
 | |
|             android:layout_width="match_parent"
 | |
|             android:layout_height="wrap_content"
 | |
|             android:text="@string/password_based_quick_unlock_not_available"
 | |
|             android:textSize="16sp"
 | |
|             android:textStyle="bold"
 | |
|             android:gravity="center"
 | |
|             android:paddingBottom="8dp"/>
 | |
| 
 | |
|           <TextView
 | |
|             android:id="@+id/alert_message"
 | |
|             android:layout_width="match_parent"
 | |
|             android:layout_height="wrap_content"
 | |
|             android:text="@string/password_based_quick_unlock_not_available_text"
 | |
|             android:textSize="16sp"
 | |
|                             android:paddingBottom="8dp"/>
 | |
|           <LinearLayout
 | |
|             android:layout_width="match_parent"
 | |
|             android:layout_height="wrap_content"
 | |
|             android:orientation="vertical">
 | |
|             <Button  
 | |
|               android:id="@+id/QuickUnlock_buttonEnableLock"
 | |
|               android:layout_width="wrap_content"
 | |
|               android:layout_height="wrap_content"
 | |
|               android:layout_gravity="center"
 | |
|               android:backgroundTint="@color/md_theme_secondary"
 | |
|               android:textColor="@android:color/white"
 | |
|               android:text="@string/enable_screen_lock"
 | |
|               android:fontFamily="sans-serif-medium"   />
 | |
| 
 | |
|               <Button  
 | |
|               android:id="@+id/QuickUnlock_buttonCloseDb"
 | |
|               android:layout_width="wrap_content"
 | |
|               android:layout_height="wrap_content"
 | |
|               android:layout_gravity="center"
 | |
|               android:backgroundTint="@color/md_theme_secondary"
 | |
|               android:textColor="@android:color/white"
 | |
|               android:fontFamily="sans-serif-medium"  
 | |
|               android:text="@string/QuickUnlock_lockButton" />
 | |
|             
 | |
|             </LinearLayout>
 | |
|             
 | |
| 
 | |
|           </LinearLayout>
 | |
|       
 | |
|         <View
 | |
|         android:id="@+id/spacing"
 | |
|         android:layout_width="fill_parent"
 | |
|         android:layout_height="300dp"
 | |
|         android:background="#0000" />
 | |
| 
 | |
|       </LinearLayout>
 | |
|     </androidx.core.widget.NestedScrollView>
 | |
| 
 | |
|   </androidx.coordinatorlayout.widget.CoordinatorLayout>    
 | |
|   <View
 | |
|     android:id="@+id/divider2"
 | |
|     android:layout_width="fill_parent"
 | |
|     android:layout_height="1dp"
 | |
|     android:layout_weight="0"
 | |
|     android:background="#b8b8b8" />
 | |
| 
 | |
|   <RelativeLayout
 | |
|               android:id="@+id/bottom_bar"
 | |
|               android:layout_width="match_parent"
 | |
|               android:layout_height="wrap_content"
 | |
|               android:layout_weight="0"
 | |
|               android:orientation="horizontal"
 | |
|               >
 | |
|     <Button
 | |
|            android:text="@string/QuickUnlock_button"
 | |
|            android:layout_width="wrap_content"
 | |
|            android:layout_height="wrap_content"
 | |
|            style="@style/BottomBarButton"
 | |
|            android:layout_alignParentRight="true"
 | |
|            android:id="@+id/QuickUnlock_button"
 | |
|                 
 | |
|      />
 | |
|     <Button
 | |
|         android:text="@string/QuickUnlock_lockButton"
 | |
|         android:layout_width="wrap_content"
 | |
|         android:layout_height="wrap_content"
 | |
|         style="@style/BottomBarButton" 
 | |
|         android:id="@+id/QuickUnlock_buttonLock"
 | |
|         android:layout_alignParentLeft="true"
 | |
|          />
 | |
|     
 | |
|   </RelativeLayout>
 | |
|  
 | |
| </keepass2android.MeasuringLinearLayout>
 | |
| </LinearLayout> | 
