Improved EditEntryActivity layout

This commit is contained in:
Michael Schättgen 2018-09-18 21:29:11 +02:00
parent 740c1fcab9
commit ddedcfb7f1
4 changed files with 13 additions and 9 deletions

View file

@ -36,7 +36,7 @@
<activity <activity
android:name=".ui.EditEntryActivity" android:name=".ui.EditEntryActivity"
android:label="Edit profile" android:label="Edit profile"
android:theme="@style/AppTheme.TransparentActionBar"> android:theme="@style/AppTheme.NoActionBar">
</activity> </activity>
<activity <activity
android:name=".ui.IntroActivity" android:name=".ui.IntroActivity"

View file

@ -231,9 +231,9 @@ public class EditEntryActivity extends AegisActivity {
@Override @Override
protected void setPreferredTheme(boolean darkMode) { protected void setPreferredTheme(boolean darkMode) {
if (darkMode) { if (darkMode) {
setTheme(R.style.AppTheme_Dark_TransparentActionBar); setTheme(R.style.AppTheme_Dark);
} else { } else {
setTheme(R.style.AppTheme_TransparentActionBar); setTheme(R.style.AppTheme);
} }
} }

View file

@ -13,8 +13,9 @@
<RelativeLayout <RelativeLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="250dp" android:background="?attr/background"
android:background="@color/colorPrimary">
android:layout_height="250dp">
<de.hdodenhof.circleimageview.CircleImageView <de.hdodenhof.circleimageview.CircleImageView
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
@ -48,7 +49,10 @@
</com.avito.android.krop.KropView> </com.avito.android.krop.KropView>
</RelativeLayout> </RelativeLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/divider" />
<TableLayout <TableLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -57,7 +61,7 @@
android:layout_marginEnd="35dp"> android:layout_marginEnd="35dp">
<TableRow <TableRow
android:layout_marginTop="5dp" android:layout_marginTop="10dp"
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"
@ -73,7 +77,7 @@
android:hint="Name" android:hint="Name"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:backgroundTint="#ff0000" android:backgroundTint="#949494"
android:layout_weight="1"/> android:layout_weight="1"/>
</TableRow> </TableRow>

View file

@ -21,7 +21,7 @@
<color name="colorSwirlPrimaryDark">#FFFFFF</color> <color name="colorSwirlPrimaryDark">#FFFFFF</color>
<color name="colorSwirlErrorDark">#FF5252</color> <color name="colorSwirlErrorDark">#FF5252</color>
<color name="icon_primary">#212121</color> <color name="icon_primary">#757575</color>
<color name="icon_primary_inverted">#ffffff</color> <color name="icon_primary_inverted">#ffffff</color>
<color name="icon_primary_dark">#ffffff</color> <color name="icon_primary_dark">#ffffff</color>
<color name="icon_primary_dark_inverted">#212121</color> <color name="icon_primary_dark_inverted">#212121</color>