2017-12-27 22:04:22 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2018-01-31 18:45:58 +01:00
|
|
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
2018-01-02 18:49:35 +01:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2017-12-27 22:04:22 +01:00
|
|
|
android:layout_width="match_parent"
|
2018-01-31 18:45:58 +01:00
|
|
|
android:layout_height="match_parent">
|
2017-12-27 22:04:22 +01:00
|
|
|
|
2018-01-31 18:45:58 +01:00
|
|
|
<LinearLayout
|
2018-01-02 18:49:35 +01:00
|
|
|
android:layout_width="match_parent"
|
2018-01-31 18:45:58 +01:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:descendantFocusability="beforeDescendants"
|
|
|
|
android:focusableInTouchMode="true">
|
2017-12-27 22:04:22 +01:00
|
|
|
|
2018-04-04 22:15:21 +02:00
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="250dp"
|
|
|
|
android:background="@color/colorPrimary">
|
|
|
|
|
2018-01-31 18:45:58 +01:00
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="200dp"
|
2018-04-04 22:15:21 +02:00
|
|
|
android:paddingTop="100dp"
|
2018-01-31 18:45:58 +01:00
|
|
|
android:background="@color/colorPrimary">
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="100dp"
|
|
|
|
android:layout_height="100dp"
|
|
|
|
android:id="@+id/profile_drawable"
|
2018-04-04 22:15:21 +02:00
|
|
|
android:scaleType="centerCrop"
|
|
|
|
android:layout_centerHorizontal="true"/>
|
|
|
|
</RelativeLayout>/>
|
2018-01-31 18:45:58 +01:00
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<TableLayout
|
2017-12-27 22:04:22 +01:00
|
|
|
android:layout_width="match_parent"
|
2018-01-02 18:49:35 +01:00
|
|
|
android:layout_height="wrap_content"
|
2018-01-31 18:45:58 +01:00
|
|
|
android:background="?attr/background"
|
2017-12-27 22:04:22 +01:00
|
|
|
android:orientation="vertical"
|
2018-01-31 18:45:58 +01:00
|
|
|
android:stretchColumns="1"
|
|
|
|
android:layout_marginEnd="35dp">
|
|
|
|
|
|
|
|
<TableRow
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:layout_marginBottom="5dp">
|
|
|
|
<ImageView android:layout_column="0"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:src="@drawable/ic_person_black_24dp"
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:tint="@color/cardview_dark_background"
|
|
|
|
android:layout_marginStart="15dp"
|
|
|
|
android:layout_marginEnd="20dp"/>
|
|
|
|
|
|
|
|
<EditText android:layout_column="1"
|
|
|
|
android:id="@+id/text_name"
|
|
|
|
android:hint="Name"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"/>
|
|
|
|
</TableRow>
|
|
|
|
|
|
|
|
<TableRow
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:layout_marginBottom="5dp">
|
|
|
|
<EditText android:layout_column="1"
|
|
|
|
android:id="@+id/text_issuer"
|
|
|
|
android:hint="Issuer"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"/>
|
|
|
|
</TableRow>
|
2018-04-05 00:07:48 +02:00
|
|
|
</TableLayout>
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:foreground="?android:attr/selectableItemBackground"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:id="@+id/accordian_header"
|
|
|
|
android:focusable="true"
|
|
|
|
android:clickable="true">
|
2018-01-31 18:45:58 +01:00
|
|
|
|
2018-04-05 00:07:48 +02:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/down_btn"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_marginStart="14dp"
|
|
|
|
android:src="@drawable/ic_keyboard_arrow_down_black_24dp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/accordian_title"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
android:layout_marginStart="12dp"
|
|
|
|
android:layout_toEndOf="@+id/down_btn"
|
|
|
|
android:padding="16dp"
|
|
|
|
android:text="Advanced"
|
|
|
|
android:textColor="#333"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
<com.github.aakira.expandablelayout.ExpandableRelativeLayout
|
|
|
|
android:id="@+id/expandableLayout"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
app:ael_expanded="false"
|
|
|
|
app:ael_duration="100"
|
|
|
|
app:ael_interpolator="accelerate"
|
|
|
|
app:ael_orientation="vertical">
|
|
|
|
<TableLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="?attr/background"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:stretchColumns="1"
|
|
|
|
android:layout_marginEnd="35dp">
|
2018-01-31 18:45:58 +01:00
|
|
|
<TableRow
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:layout_marginBottom="5dp">
|
|
|
|
<ImageView android:layout_column="0"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:src="@drawable/ic_info_outline_black_24dp"
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:tint="@color/cardview_dark_background"
|
|
|
|
android:layout_marginStart="15dp"
|
|
|
|
android:layout_marginEnd="20dp"/>
|
|
|
|
|
|
|
|
<LinearLayout android:layout_column="1"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:gravity="center_vertical">
|
|
|
|
<Spinner
|
|
|
|
android:id="@+id/spinner_type"
|
|
|
|
android:layout_width="0dp"
|
2017-12-27 22:04:22 +01:00
|
|
|
android:layout_height="wrap_content"
|
2018-01-31 18:45:58 +01:00
|
|
|
android:layout_weight="4"
|
|
|
|
style="@style/Base.Widget.AppCompat.Spinner.Underlined"/>
|
|
|
|
<Spinner
|
|
|
|
android:id="@+id/spinner_algo"
|
|
|
|
android:layout_width="0dp"
|
2017-12-27 22:04:22 +01:00
|
|
|
android:layout_height="wrap_content"
|
2018-01-31 18:45:58 +01:00
|
|
|
android:layout_weight="4"
|
|
|
|
style="@style/Base.Widget.AppCompat.Spinner.Underlined"/>
|
|
|
|
<Spinner
|
|
|
|
android:id="@+id/spinner_digits"
|
|
|
|
android:layout_width="0dp"
|
2017-12-27 22:04:22 +01:00
|
|
|
android:layout_height="wrap_content"
|
2018-01-31 18:45:58 +01:00
|
|
|
android:layout_weight="3"
|
|
|
|
style="@style/Base.Widget.AppCompat.Spinner.Underlined"/>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</TableRow>
|
|
|
|
|
|
|
|
<TableRow
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:layout_marginBottom="5dp">
|
|
|
|
<ImageView android:layout_column="0"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:src="@drawable/ic_timelapse_black_24dp"
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:tint="@color/cardview_dark_background"
|
|
|
|
android:layout_marginStart="15dp"
|
|
|
|
android:layout_marginEnd="20dp"/>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
<RelativeLayout
|
2018-01-02 18:49:35 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2018-01-31 18:45:58 +01:00
|
|
|
android:layout_weight="1"
|
|
|
|
android:orientation="vertical">
|
|
|
|
<EditText
|
|
|
|
android:id="@+id/text_period"
|
2018-01-02 21:50:07 +01:00
|
|
|
android:layout_width="match_parent"
|
2017-12-27 22:04:22 +01:00
|
|
|
android:layout_height="wrap_content"
|
2018-01-31 18:45:58 +01:00
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:inputType="numberDecimal"/>
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/text_hint"
|
|
|
|
android:layout_width="wrap_content"
|
2017-12-27 22:04:22 +01:00
|
|
|
android:layout_height="wrap_content"
|
2018-01-31 18:45:58 +01:00
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:text="seconds"
|
|
|
|
android:textSize="18sp"
|
|
|
|
android:layout_marginEnd="10dp"
|
|
|
|
android:textColor="#808080"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
2017-12-27 22:04:22 +01:00
|
|
|
android:layout_height="wrap_content"
|
2018-01-31 18:45:58 +01:00
|
|
|
android:layout_weight="1"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</TableRow>
|
|
|
|
|
|
|
|
<TableRow
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:layout_marginBottom="5dp">
|
|
|
|
<ImageView android:layout_column="0"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:src="@drawable/ic_vpn_key_black_24dp"
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:tint="@color/cardview_dark_background"
|
|
|
|
android:layout_marginStart="15dp"
|
|
|
|
android:layout_marginEnd="20dp"/>
|
|
|
|
|
|
|
|
<android.support.design.widget.TextInputLayout
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
app:hintEnabled="false"
|
|
|
|
app:passwordToggleEnabled="true">
|
|
|
|
|
|
|
|
<android.support.design.widget.TextInputEditText
|
|
|
|
android:id="@+id/text_secret"
|
2017-12-27 22:04:22 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2018-01-31 18:45:58 +01:00
|
|
|
android:hint="Secret (base32)"
|
|
|
|
android:inputType="textPassword"/>
|
|
|
|
</android.support.design.widget.TextInputLayout>
|
|
|
|
</TableRow>
|
2018-04-05 00:07:48 +02:00
|
|
|
</TableLayout>
|
|
|
|
</com.github.aakira.expandablelayout.ExpandableRelativeLayout>
|
2017-12-27 22:04:22 +01:00
|
|
|
|
2018-01-31 18:45:58 +01:00
|
|
|
</LinearLayout>
|
|
|
|
</ScrollView>
|