Unverified Commit 0c21f1d7 authored by Filipe Brito's avatar Filipe Brito Committed by GitHub

Merge pull request #2080 from arthurbdiniz/fix-2079

[IMPROVEMENT][LAYOUT] Profile Layout according to a web interface
parents bf957e3e 22d7bf0b
...@@ -18,7 +18,7 @@ android { ...@@ -18,7 +18,7 @@ android {
applicationId "chat.rocket.android" applicationId "chat.rocket.android"
minSdkVersion versions.minSdk minSdkVersion versions.minSdk
targetSdkVersion versions.targetSdk targetSdkVersion versions.targetSdk
versionCode 2065 versionCode 2067
versionName "3.4.0" versionName "3.4.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
multiDexEnabled true multiDexEnabled true
......
...@@ -37,47 +37,55 @@ ...@@ -37,47 +37,55 @@
<TextView <TextView
android:id="@+id/text_status" android:id="@+id/text_status"
style="@style/Profile.TextView"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="32dp" android:text="@string/status" />
android:paddingTop="10dp"
android:paddingBottom="10dp" <TextView
android:text="@string/status" style="@style/Profile.TextView"
android:textColor="#DE000000" android:layout_width="wrap_content"
android:textSize="18sp" android:layout_height="wrap_content"
android:textStyle="normal" /> android:text="@string/msg_name" />
<EditText <EditText
android:id="@+id/text_name" android:id="@+id/text_name"
style="@style/Profile.EditText" style="@style/Profile.EditText"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_marginTop="16dp"
android:drawableStart="@drawable/ic_person_black_20dp" android:drawableStart="@drawable/ic_person_black_20dp"
android:hint="@string/msg_name" android:hint="@string/msg_profile_name_hint"
android:inputType="textCapWords" /> android:inputType="textCapWords" />
<TextView
style="@style/Profile.TextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/msg_username" />
<EditText <EditText
android:id="@+id/text_username" android:id="@+id/text_username"
style="@style/Profile.EditText" style="@style/Profile.EditText"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_marginTop="16dp"
android:drawableStart="@drawable/ic_at_black_20dp" android:drawableStart="@drawable/ic_at_black_20dp"
android:hint="@string/msg_username" android:hint="@string/msg_profile_username_hint"
android:inputType="text" /> android:inputType="text" />
<TextView
style="@style/Profile.TextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/msg_email" />
<EditText <EditText
android:id="@+id/text_email" android:id="@+id/text_email"
style="@style/Profile.EditText" style="@style/Profile.EditText"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="48dp" android:layout_marginBottom="16dp"
android:layout_marginTop="16dp"
android:layout_marginBottom="32dp"
android:drawableStart="@drawable/ic_email_black_20dp" android:drawableStart="@drawable/ic_email_black_20dp"
android:hint="@string/msg_email" android:hint="@string/msg_profile_email_hint"
android:inputType="textEmailAddress" /> android:inputType="textEmailAddress" />
</LinearLayout> </LinearLayout>
</ScrollView> </ScrollView>
<com.wang.avi.AVLoadingIndicatorView <com.wang.avi.AVLoadingIndicatorView
......
...@@ -113,12 +113,15 @@ https://github.com/RocketChat/java-code-styles/blob/master/CODING_STYLE.md#strin ...@@ -113,12 +113,15 @@ https://github.com/RocketChat/java-code-styles/blob/master/CODING_STYLE.md#strin
<string name="msg_no_data_to_display">No data to display</string> <string name="msg_no_data_to_display">No data to display</string>
<string name="msg_check_this_out">Check this out</string> <string name="msg_check_this_out">Check this out</string>
<string name="msg_share_using">Share using</string> <string name="msg_share_using">Share using</string>
<string name="msg_username">Username</string>
<string name="msg_profile_username_hint" translatable="false">Please enter your username</string> <!-- TODO Make translatable and add translations -->
<string name="msg_profile_updated_successfully">Profile updated successfully</string> <string name="msg_profile_updated_successfully">Profile updated successfully</string>
<string name="msg_username">username</string>
<string name="msg_username_or_email">Username or email</string> <string name="msg_username_or_email">Username or email</string>
<string name="msg_password">Password</string> <string name="msg_password">Password</string>
<string name="msg_name">Name</string> <string name="msg_name">Name</string>
<string name="msg_profile_name_hint" translatable="false">Please enter your name…</string>
<string name="msg_email">Email</string> <string name="msg_email">Email</string>
<string name="msg_profile_email_hint" translatable="false">Please enter your email address</string> <!-- TODO Make translatable and add translations -->
<string name="msg_avatar_url">avatar URL</string> <string name="msg_avatar_url">avatar URL</string>
<string name="msg_or_continue_using_social_accounts">Or continue using social accounts</string> <string name="msg_or_continue_using_social_accounts">Or continue using social accounts</string>
<string name="msg_new_user">New user? %1$s</string> <string name="msg_new_user">New user? %1$s</string>
......
...@@ -262,7 +262,18 @@ ...@@ -262,7 +262,18 @@
// REMARK: To be removed. // REMARK: To be removed.
<style name="Profile.EditText" parent="Authentication.EditText.Border"> <style name="Profile.EditText" parent="Authentication.EditText.Border">
<item name="android:background">@drawable/style_edit_text_profile</item> <item name="android:layout_height">48dp</item>
<item name="android:layout_marginTop">8dp</item>
</style>
<style name="Profile.TextView" parent="TextAppearance.AppCompat.Title">
<item name="android:textSize">16sp</item>
<item name="android:fontFamily">sans-serif-medium</item>
<item name="android:textStyle">normal</item>
<item name="android:layout_marginTop">24dp</item>
<item name="android:layout_gravity">left</item>
<item name="android:textColor">@color/colorPrimary</item>
<item name="android:maxLines">1</item>
</style> </style>
<style name="ActionModeStyle" parent="ThemeOverlay.AppCompat.Dark.ActionBar"> <style name="ActionModeStyle" parent="ThemeOverlay.AppCompat.Dark.ActionBar">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment