2014-02-09 21:17:30 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2015-01-13 23:15:13 +01:00
|
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2015-01-15 14:48:13 +01:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2015-02-24 13:43:24 +01:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
|
xmlns:fab="http://schemas.android.com/apk/res-auto"
|
2015-02-25 18:37:31 +01:00
|
|
|
xmlns:card_view="http://schemas.android.com/apk/res-auto"
|
2014-01-13 00:39:51 +01:00
|
|
|
android:layout_width="match_parent"
|
2015-01-13 23:15:13 +01:00
|
|
|
android:layout_height="match_parent">
|
2014-05-05 00:58:22 +02:00
|
|
|
|
2015-02-24 13:43:24 +01:00
|
|
|
<RelativeLayout
|
|
|
|
|
android:id="@+id/toolbar_big"
|
2015-01-13 23:15:13 +01:00
|
|
|
android:layout_width="match_parent"
|
2015-02-25 02:35:09 +01:00
|
|
|
android:layout_height="@dimen/huge_toolbar"
|
2015-02-24 13:43:24 +01:00
|
|
|
android:elevation="4dp"
|
|
|
|
|
android:background="?attr/colorPrimary"
|
|
|
|
|
android:orientation="horizontal">
|
2015-01-13 23:15:13 +01:00
|
|
|
|
2015-03-04 15:26:09 +01:00
|
|
|
<ImageView
|
2015-02-25 02:35:09 +01:00
|
|
|
android:id="@+id/view_key_photo"
|
|
|
|
|
android:visibility="gone"
|
|
|
|
|
android:layout_width="match_parent"
|
2015-03-04 15:26:09 +01:00
|
|
|
android:layout_height="match_parent"
|
2015-02-25 02:35:09 +01:00
|
|
|
android:layout_below="@+id/status_bar"
|
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
|
android:layout_alignParentStart="true"
|
2015-03-04 15:23:33 +01:00
|
|
|
android:src="@drawable/ic_launcher"
|
|
|
|
|
android:baselineAlignBottom="false"
|
|
|
|
|
android:cropToPadding="false"
|
|
|
|
|
android:focusable="false"
|
|
|
|
|
android:adjustViewBounds="false"
|
2015-03-04 15:26:09 +01:00
|
|
|
android:layout_alignParentTop="false"
|
|
|
|
|
android:scaleType="centerCrop" />
|
2015-02-25 02:35:09 +01:00
|
|
|
|
2015-02-24 13:43:24 +01:00
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/status_bar"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="@dimen/statusbar_height"
|
|
|
|
|
android:background="?attr/colorPrimary" />
|
2014-07-28 11:11:23 +02:00
|
|
|
|
2015-02-24 13:43:24 +01:00
|
|
|
<android.support.v7.widget.Toolbar
|
|
|
|
|
android:id="@+id/toolbar"
|
2015-03-04 15:23:33 +01:00
|
|
|
android:background="@color/transparent"
|
2015-02-24 13:43:24 +01:00
|
|
|
android:layout_below="@+id/status_bar"
|
|
|
|
|
android:layout_width="match_parent"
|
2014-07-28 11:11:23 +02:00
|
|
|
android:layout_height="wrap_content"
|
2015-02-24 13:43:24 +01:00
|
|
|
android:minHeight="?attr/actionBarSize"
|
|
|
|
|
android:overScrollMode="always"
|
|
|
|
|
app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
|
|
|
|
|
app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
|
|
|
|
|
tools:ignore="UnusedAttribute"
|
|
|
|
|
android:transitionGroup="false"
|
|
|
|
|
android:touchscreenBlocksFocus="false" />
|
2015-01-13 23:15:13 +01:00
|
|
|
|
2015-02-25 13:49:21 +01:00
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/view_key_name"
|
2015-02-24 13:43:24 +01:00
|
|
|
android:layout_width="match_parent"
|
2015-02-25 13:49:21 +01:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginLeft="48dp"
|
|
|
|
|
android:layout_marginStart="48dp"
|
|
|
|
|
android:layout_marginRight="48dp"
|
|
|
|
|
android:layout_marginEnd="48dp"
|
|
|
|
|
android:text=""
|
2015-06-15 18:15:20 +02:00
|
|
|
tools:text="Alice Skywalker"
|
2015-02-25 13:49:21 +01:00
|
|
|
android:textColor="@color/icons"
|
|
|
|
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
2015-02-25 19:38:13 +01:00
|
|
|
android:layout_above="@+id/view_key_status" />
|
2015-02-25 13:49:21 +01:00
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/view_key_status"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginLeft="48dp"
|
|
|
|
|
android:layout_marginStart="48dp"
|
|
|
|
|
android:layout_marginRight="48dp"
|
|
|
|
|
android:layout_marginEnd="48dp"
|
|
|
|
|
android:text=""
|
2015-06-15 18:15:20 +02:00
|
|
|
tools:text="My Key"
|
2015-02-25 13:49:21 +01:00
|
|
|
android:textColor="@color/tab_text"
|
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
2015-02-25 19:38:13 +01:00
|
|
|
android:layout_above="@+id/toolbar2" />
|
2015-02-25 02:35:09 +01:00
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/toolbar2"
|
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:layout_alignParentBottom="true"
|
2015-02-25 18:37:31 +01:00
|
|
|
android:layout_width="wrap_content"
|
2015-02-25 02:35:09 +01:00
|
|
|
android:minHeight="?attr/actionBarSize"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
|
android:layout_alignParentStart="true"
|
2015-02-25 11:29:46 +01:00
|
|
|
android:layout_marginLeft="32dp"
|
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
|
android:layout_alignParentEnd="true">
|
2015-02-25 02:35:09 +01:00
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
|
android:id="@+id/view_key_action_encrypt_files"
|
|
|
|
|
android:layout_width="64dp"
|
|
|
|
|
android:layout_height="64dp"
|
2015-02-25 11:29:46 +01:00
|
|
|
android:visibility="invisible"
|
2015-06-15 18:15:20 +02:00
|
|
|
tools:visibility="visible"
|
2015-02-25 02:35:09 +01:00
|
|
|
style="?android:attr/borderlessButtonStyle"
|
2015-03-04 20:03:20 +01:00
|
|
|
android:src="@drawable/ic_action_encrypt_file_24dp" />
|
2015-02-25 02:35:09 +01:00
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
|
android:id="@+id/view_key_action_encrypt_text"
|
|
|
|
|
android:layout_width="64dp"
|
|
|
|
|
android:layout_height="64dp"
|
2015-02-25 11:29:46 +01:00
|
|
|
android:visibility="invisible"
|
2015-06-15 18:15:20 +02:00
|
|
|
tools:visibility="visible"
|
2015-02-25 02:35:09 +01:00
|
|
|
style="?android:attr/borderlessButtonStyle"
|
2015-03-04 20:03:20 +01:00
|
|
|
android:src="@drawable/ic_action_encrypt_text_24dp" />
|
2015-02-25 02:35:09 +01:00
|
|
|
|
2015-02-25 20:50:34 +01:00
|
|
|
<ImageButton
|
|
|
|
|
android:id="@+id/view_key_action_nfc"
|
|
|
|
|
android:layout_width="64dp"
|
|
|
|
|
android:layout_height="64dp"
|
|
|
|
|
android:visibility="invisible"
|
2015-06-15 18:15:20 +02:00
|
|
|
tools:visibility="visible"
|
2015-02-25 20:50:34 +01:00
|
|
|
style="?android:attr/borderlessButtonStyle"
|
|
|
|
|
android:src="@drawable/ic_nfc_white_24dp" />
|
|
|
|
|
|
2015-02-25 02:35:09 +01:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
2015-02-25 11:29:46 +01:00
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/view_key_status_image"
|
|
|
|
|
android:layout_width="96dp"
|
|
|
|
|
android:visibility="invisible"
|
2015-06-15 18:15:20 +02:00
|
|
|
tools:visibility="visible"
|
2015-03-04 19:04:15 +01:00
|
|
|
android:src="@drawable/status_signature_unverified_cutout_96dp"
|
2015-02-25 11:29:46 +01:00
|
|
|
android:layout_height="96dp"
|
2015-02-25 18:37:31 +01:00
|
|
|
android:layout_above="@id/toolbar2"
|
2015-02-25 11:29:46 +01:00
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
|
android:layout_marginRight="16dp" />
|
|
|
|
|
|
2015-02-25 18:37:31 +01:00
|
|
|
<android.support.v7.widget.CardView
|
|
|
|
|
android:id="@+id/view_key_qr_code_layout"
|
2015-02-25 19:38:13 +01:00
|
|
|
android:transitionName="qr_code"
|
|
|
|
|
android:visibility="visible"
|
|
|
|
|
android:layout_above="@id/toolbar2"
|
2015-02-25 13:49:21 +01:00
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
|
android:layout_alignParentEnd="true"
|
2015-02-25 18:37:31 +01:00
|
|
|
android:layout_marginRight="20dp"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2015-02-26 02:06:57 +01:00
|
|
|
android:clickable="true"
|
|
|
|
|
android:foreground="?android:attr/selectableItemBackground"
|
2015-06-15 18:15:20 +02:00
|
|
|
tools:visibility="invisible"
|
2015-02-25 18:37:31 +01:00
|
|
|
card_view:cardBackgroundColor="@android:color/white"
|
2015-02-27 22:26:11 +01:00
|
|
|
card_view:cardElevation="2dp"
|
2015-02-25 18:37:31 +01:00
|
|
|
card_view:cardUseCompatPadding="true"
|
|
|
|
|
card_view:cardCornerRadius="4dp">
|
|
|
|
|
|
2015-02-26 02:06:57 +01:00
|
|
|
<ImageView
|
2015-02-25 18:37:31 +01:00
|
|
|
android:id="@+id/view_key_qr_code"
|
|
|
|
|
android:layout_width="96dp"
|
2015-06-15 18:15:20 +02:00
|
|
|
android:layout_height="96dp"
|
|
|
|
|
/>
|
2015-02-25 18:37:31 +01:00
|
|
|
</android.support.v7.widget.CardView>
|
2015-02-25 13:49:21 +01:00
|
|
|
|
2015-02-24 13:43:24 +01:00
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/body"
|
|
|
|
|
android:layout_below="@id/toolbar_big"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent">
|
2015-01-13 23:15:13 +01:00
|
|
|
|
|
|
|
|
<View
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="1dip"
|
|
|
|
|
android:background="?android:attr/listDivider"
|
|
|
|
|
android:visibility="gone"
|
|
|
|
|
android:id="@+id/view_key_status_divider" />
|
|
|
|
|
|
2015-02-24 11:25:19 +01:00
|
|
|
<FrameLayout
|
|
|
|
|
android:id="@+id/content_frame"
|
2015-01-13 23:15:13 +01:00
|
|
|
android:layout_width="match_parent"
|
2015-02-24 11:25:19 +01:00
|
|
|
android:layout_height="match_parent">
|
2013-12-25 18:15:30 +01:00
|
|
|
|
2015-02-24 11:25:19 +01:00
|
|
|
<FrameLayout
|
|
|
|
|
android:id="@+id/view_key_fragment"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:orientation="vertical" />
|
|
|
|
|
|
|
|
|
|
</FrameLayout>
|
2015-01-13 23:15:13 +01:00
|
|
|
</LinearLayout>
|
2015-02-24 13:43:24 +01:00
|
|
|
|
|
|
|
|
<com.getbase.floatingactionbutton.FloatingActionButton
|
|
|
|
|
android:id="@+id/fab"
|
|
|
|
|
android:layout_alignBottom="@id/toolbar_big"
|
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
|
android:layout_marginRight="20dp"
|
|
|
|
|
android:layout_marginBottom="-40dp"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2015-02-25 11:29:46 +01:00
|
|
|
android:visibility="invisible"
|
2015-06-15 18:15:20 +02:00
|
|
|
tools:visibility="visible"
|
2015-02-24 13:43:24 +01:00
|
|
|
android:elevation="4dp"
|
|
|
|
|
fab:fab_icon="@drawable/ic_qrcode_white_24dp"
|
|
|
|
|
fab:fab_colorNormal="@color/fab"
|
|
|
|
|
fab:fab_colorPressed="@color/fab_pressed" />
|
|
|
|
|
|
2015-01-13 23:15:13 +01:00
|
|
|
</RelativeLayout>
|