Fix numerous layout issues in EditProfileActivity

pull/41/head
Alexander Bakker 8 years ago
parent abc0cd09ce
commit 9b960c7f34

@ -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"
</RelativeLayout> android:layout_marginEnd="20dp"/>
<TableLayout <EditText android:layout_column="1"
android:layout_width="match_parent" android:id="@+id/text_name"
android:layout_height="wrap_content" android:hint="Name"
android:background="?attr/background" android:layout_width="0dp"
android:orientation="vertical" android:layout_height="wrap_content"
android:stretchColumns="1" android:layout_weight="1"/>
android:layout_marginEnd="35dp"> </TableRow>
<TableRow <TableRow
android:layout_marginTop="5dp" android:layout_marginTop="5dp"
android:layout_marginBottom="5dp"> android:layout_marginBottom="5dp">
<ImageView android:layout_column="0" <EditText android:layout_column="1"
android:layout_width="wrap_content" android:id="@+id/text_issuer"
android:hint="Issuer"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="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_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"/>
<LinearLayout android:layout_column="1"
android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal" android:layout_weight="3"
android:gravity="center_vertical"> style="@style/Base.Widget.AppCompat.Spinner.Underlined"/>
<Spinner </LinearLayout>
android:id="@+id/spinner_type"
android:layout_width="0dp" </TableRow>
android:layout_height="wrap_content"
android:layout_weight="4" <TableRow
style="@style/Base.Widget.AppCompat.Spinner.Underlined"/> android:layout_marginTop="5dp"
<Spinner android:layout_marginBottom="5dp">
android:id="@+id/spinner_algo" <ImageView android:layout_column="0"
android:layout_width="0dp" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="4" android:src="@drawable/ic_timelapse_black_24dp"
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" <LinearLayout
style="@style/Base.Widget.AppCompat.Spinner.Underlined"/> android:layout_width="0dp"
</LinearLayout> android:layout_height="wrap_content"
android:layout_weight="1"
</TableRow> android:orientation="horizontal">
<RelativeLayout
<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_marginTop="10dp"
android:tint="@color/cardview_dark_background"
android:layout_marginStart="15dp"
android:layout_marginEnd="20dp"/>
<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 android:orientation="vertical">
<EditText
android:id="@+id/text_period"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_alignParentStart="true"
android:orientation="vertical"> android:layout_gravity="center"
<EditText android:inputType="numberDecimal"/>
android:id="@+id/text_period" <TextView
android:layout_width="match_parent" android:id="@+id/text_hint"
android:layout_height="wrap_content" android:layout_width="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_height="wrap_content"
android:layout_weight="1"/> android:layout_alignParentEnd="true"
</LinearLayout> android:layout_centerVertical="true"
</TableRow> android:text="seconds"
android:textSize="18sp"
<TableRow android:layout_marginEnd="10dp"
android:layout_marginTop="5dp" android:textColor="#808080"/>
android:layout_marginBottom="5dp"> </RelativeLayout>
<ImageView android:layout_column="0" <LinearLayout
android:layout_width="wrap_content" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:src="@drawable/ic_vpn_key_black_24dp" android:layout_weight="1"/>
android:layout_weight="1" </LinearLayout>
android:layout_marginTop="10dp" </TableRow>
android:tint="@color/cardview_dark_background"
android:layout_marginStart="15dp" <TableRow
android:layout_marginEnd="20dp"/> android:layout_marginTop="5dp"
android:layout_marginBottom="5dp">
<android.support.design.widget.TextInputLayout <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"
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>
<android.support.design.widget.TextInputEditText </TableRow>
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> </TableLayout>
</LinearLayout> </LinearLayout>
</ScrollView> </ScrollView>
</LinearLayout>

Loading…
Cancel
Save