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"
|
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-02-25 02:35:09 +01:00
|
|
|
<org.sufficientlysecure.keychain.ui.widget.AspectRatioImageView
|
|
|
|
|
android:id="@+id/view_key_photo"
|
|
|
|
|
app:aspectRatioEnabled="true"
|
|
|
|
|
android:visibility="gone"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_below="@+id/status_bar"
|
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
|
android:src="@drawable/first_time_1" />
|
|
|
|
|
|
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"
|
|
|
|
|
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-24 13:43:24 +01:00
|
|
|
<LinearLayout
|
2015-02-25 02:35:09 +01:00
|
|
|
android:id="@+id/name_layout"
|
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:layout_marginLeft="16dp"
|
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
|
android:layout_above="@+id/toolbar2"
|
2015-02-24 13:43:24 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
2015-02-25 02:35:09 +01:00
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/view_key_status_image"
|
|
|
|
|
android:layout_width="24dp"
|
|
|
|
|
android:visibility="invisible"
|
|
|
|
|
android:src="@drawable/status_signature_unverified_cutout"
|
2015-02-24 13:43:24 +01:00
|
|
|
android:layout_height="wrap_content"
|
2015-02-25 02:35:09 +01:00
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
|
android:layout_marginLeft="2dp" />
|
2015-02-24 13:43:24 +01:00
|
|
|
|
2015-02-25 02:35:09 +01:00
|
|
|
<LinearLayout
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:layout_marginLeft="8dp"
|
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content">
|
2015-02-24 13:43:24 +01:00
|
|
|
|
|
|
|
|
<TextView
|
2015-02-25 02:35:09 +01:00
|
|
|
android:id="@+id/view_key_name"
|
2015-02-24 13:43:24 +01:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2015-02-25 02:35:09 +01:00
|
|
|
android:text=""
|
|
|
|
|
android:textColor="@color/icons"
|
|
|
|
|
android:textAppearance="?android:attr/textAppearanceLarge" />
|
2015-02-24 13:43:24 +01:00
|
|
|
|
2015-02-25 02:35:09 +01:00
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/view_key_status"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text=""
|
|
|
|
|
android:textColor="@color/tab_text"
|
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
2015-02-24 13:43:24 +01:00
|
|
|
</LinearLayout>
|
2015-01-13 23:15:13 +01:00
|
|
|
|
|
|
|
|
</LinearLayout>
|
2015-02-25 02:35:09 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/toolbar2"
|
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:layout_alignParentBottom="true"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:minHeight="?attr/actionBarSize"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
|
android:layout_marginLeft="32dp">
|
|
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
|
android:id="@+id/view_key_action_encrypt_files"
|
|
|
|
|
android:layout_width="64dp"
|
|
|
|
|
android:layout_height="64dp"
|
|
|
|
|
style="?android:attr/borderlessButtonStyle"
|
|
|
|
|
android:src="@drawable/ic_action_encrypt_file" />
|
|
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
|
android:id="@+id/view_key_action_encrypt_text"
|
|
|
|
|
android:layout_width="64dp"
|
|
|
|
|
android:layout_height="64dp"
|
|
|
|
|
style="?android:attr/borderlessButtonStyle"
|
|
|
|
|
android:src="@drawable/ic_action_encrypt_text" />
|
|
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
|
android:id="@+id/view_key_action_verify"
|
|
|
|
|
android:layout_width="64dp"
|
|
|
|
|
android:layout_height="64dp"
|
|
|
|
|
android:visibility="invisible"
|
|
|
|
|
style="?android:attr/borderlessButtonStyle"
|
|
|
|
|
android:src="@drawable/ic_action_verified_cutout" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
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"
|
|
|
|
|
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>
|