mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-05-19 08:20:20 +00:00
Fix numerous layout issues in EditProfileActivity
This commit is contained in:
parent
abc0cd09ce
commit
9b960c7f34
1 changed files with 155 additions and 160 deletions
|
@ -1,188 +1,183 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent">
|
||||||
android:orientation="vertical">
|
|
||||||
|
|
||||||
<ScrollView
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent">
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:descendantFocusability="beforeDescendants"
|
||||||
|
android:focusableInTouchMode="true">
|
||||||
|
|
||||||
<LinearLayout
|
<RelativeLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="200dp"
|
||||||
|
android:background="@color/colorPrimary">
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="100dp"
|
||||||
|
android:layout_height="100dp"
|
||||||
|
android:id="@+id/profile_drawable"
|
||||||
|
android:layout_centerInParent="true"/>
|
||||||
|
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
|
<TableLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:background="?attr/background"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:descendantFocusability="beforeDescendants"
|
android:stretchColumns="1"
|
||||||
android:focusableInTouchMode="true">
|
android:layout_marginEnd="35dp">
|
||||||
|
|
||||||
<RelativeLayout
|
<TableRow
|
||||||
android:layout_width="match_parent"
|
android:layout_marginTop="5dp"
|
||||||
android:layout_height="200dp"
|
android:layout_marginBottom="5dp">
|
||||||
android:background="@color/colorPrimary">
|
<ImageView android:layout_column="0"
|
||||||
<ImageView
|
android:layout_width="wrap_content"
|
||||||
android:layout_width="100dp"
|
android:layout_height="wrap_content"
|
||||||
android:layout_height="100dp"
|
android:src="@drawable/ic_person_black_24dp"
|
||||||
android:id="@+id/profile_drawable"
|
android:layout_marginTop="10dp"
|
||||||
android:layout_centerInParent="true"/>
|
android:tint="@color/cardview_dark_background"
|
||||||
|
android:layout_marginStart="15dp"
|
||||||
|
android:layout_marginEnd="20dp"/>
|
||||||
|
|
||||||
</RelativeLayout>
|
<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>
|
||||||
|
|
||||||
<TableLayout
|
<TableRow
|
||||||
android:layout_width="match_parent"
|
android:layout_marginTop="5dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_marginBottom="5dp">
|
||||||
android:background="?attr/background"
|
<EditText android:layout_column="1"
|
||||||
android:orientation="vertical"
|
android:id="@+id/text_issuer"
|
||||||
android:stretchColumns="1"
|
android:hint="Issuer"
|
||||||
android:layout_marginEnd="35dp">
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"/>
|
||||||
|
</TableRow>
|
||||||
|
|
||||||
<TableRow
|
<TableRow
|
||||||
android:layout_marginTop="5dp"
|
android:layout_marginTop="5dp"
|
||||||
android:layout_marginBottom="5dp">
|
android:layout_marginBottom="5dp">
|
||||||
<ImageView android:layout_column="0"
|
<ImageView android:layout_column="0"
|
||||||
android:layout_width="wrap_content"
|
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"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:src="@drawable/ic_person_black_24dp"
|
android:layout_weight="4"
|
||||||
android:layout_weight="1"
|
style="@style/Base.Widget.AppCompat.Spinner.Underlined"/>
|
||||||
android:layout_marginTop="10dp"
|
<Spinner
|
||||||
android:tint="@color/cardview_dark_background"
|
android:id="@+id/spinner_algo"
|
||||||
android:layout_marginStart="15dp"
|
android:layout_width="0dp"
|
||||||
android:layout_marginEnd="20dp"/>
|
|
||||||
|
|
||||||
<EditText android:layout_column="1"
|
|
||||||
android:id="@+id/text_name"
|
|
||||||
android:hint="Name"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"/>
|
|
||||||
</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="match_parent"
|
|
||||||
android:layout_height="wrap_content"/>
|
|
||||||
</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:layout_height="wrap_content"
|
||||||
android:src="@drawable/ic_info_outline_black_24dp"
|
android:layout_weight="4"
|
||||||
android:layout_weight="1"
|
style="@style/Base.Widget.AppCompat.Spinner.Underlined"/>
|
||||||
android:layout_marginTop="10dp"
|
<Spinner
|
||||||
android:tint="@color/cardview_dark_background"
|
android:id="@+id/spinner_digits"
|
||||||
android:layout_marginStart="15dp"
|
android:layout_width="0dp"
|
||||||
android:layout_marginEnd="20dp"/>
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="3"
|
||||||
|
style="@style/Base.Widget.AppCompat.Spinner.Underlined"/>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
<LinearLayout android:layout_column="1"
|
</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
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal"
|
|
||||||
android:gravity="center_vertical">
|
|
||||||
<Spinner
|
|
||||||
android:id="@+id/spinner_type"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_weight="4"
|
|
||||||
style="@style/Base.Widget.AppCompat.Spinner.Underlined"/>
|
|
||||||
<Spinner
|
|
||||||
android:id="@+id/spinner_algo"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_weight="4"
|
|
||||||
style="@style/Base.Widget.AppCompat.Spinner.Underlined"/>
|
|
||||||
<Spinner
|
|
||||||
android:id="@+id/spinner_digits"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
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_weight="1"
|
android:layout_weight="1"
|
||||||
android:layout_marginTop="10dp"
|
android:orientation="vertical">
|
||||||
android:tint="@color/cardview_dark_background"
|
<EditText
|
||||||
android:layout_marginStart="15dp"
|
android:id="@+id/text_period"
|
||||||
android:layout_marginEnd="20dp"/>
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignParentStart="true"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:inputType="numberDecimal"/>
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/text_hint"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignParentEnd="true"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:text="seconds"
|
||||||
|
android:textSize="18sp"
|
||||||
|
android:layout_marginEnd="10dp"
|
||||||
|
android:textColor="#808080"/>
|
||||||
|
</RelativeLayout>
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal">
|
android:layout_weight="1"/>
|
||||||
<RelativeLayout
|
</LinearLayout>
|
||||||
android:layout_width="match_parent"
|
</TableRow>
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_weight="1"
|
|
||||||
android:orientation="vertical">
|
|
||||||
<EditText
|
|
||||||
android:id="@+id/text_period"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_alignParentStart="true"
|
|
||||||
android:layout_gravity="center"
|
|
||||||
android:inputType="numberDecimal"/>
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/text_hint"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
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"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_weight="1"/>
|
|
||||||
</LinearLayout>
|
|
||||||
</TableRow>
|
|
||||||
|
|
||||||
<TableRow
|
<TableRow
|
||||||
android:layout_marginTop="5dp"
|
android:layout_marginTop="5dp"
|
||||||
android:layout_marginBottom="5dp">
|
android:layout_marginBottom="5dp">
|
||||||
<ImageView android:layout_column="0"
|
<ImageView android:layout_column="0"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:src="@drawable/ic_vpn_key_black_24dp"
|
android:src="@drawable/ic_vpn_key_black_24dp"
|
||||||
android:layout_weight="1"
|
android:layout_marginTop="10dp"
|
||||||
android:layout_marginTop="10dp"
|
android:tint="@color/cardview_dark_background"
|
||||||
android:tint="@color/cardview_dark_background"
|
android:layout_marginStart="15dp"
|
||||||
android:layout_marginStart="15dp"
|
android:layout_marginEnd="20dp"/>
|
||||||
android:layout_marginEnd="20dp"/>
|
|
||||||
|
|
||||||
<android.support.design.widget.TextInputLayout
|
<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"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
app:hintEnabled="false"
|
android:hint="Secret (base32)"
|
||||||
app:passwordToggleEnabled="true">
|
android:inputType="textPassword"/>
|
||||||
|
</android.support.design.widget.TextInputLayout>
|
||||||
|
</TableRow>
|
||||||
|
|
||||||
<android.support.design.widget.TextInputEditText
|
</TableLayout>
|
||||||
android:id="@+id/text_secret"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:hint="Secret (base32)"
|
|
||||||
android:inputType="textPassword"/>
|
|
||||||
</android.support.design.widget.TextInputLayout>
|
|
||||||
</TableRow>
|
|
||||||
|
|
||||||
</TableLayout>
|
</LinearLayout>
|
||||||
|
</ScrollView>
|
||||||
</LinearLayout>
|
|
||||||
</ScrollView>
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue