diff --git a/app/src/main/java/com/keylesspalace/tusky/EditProfileActivity.java b/app/src/main/java/com/keylesspalace/tusky/EditProfileActivity.java
index f0313f94..313adfca 100644
--- a/app/src/main/java/com/keylesspalace/tusky/EditProfileActivity.java
+++ b/app/src/main/java/com/keylesspalace/tusky/EditProfileActivity.java
@@ -38,6 +38,7 @@ import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
+import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.ProgressBar;
@@ -73,14 +74,14 @@ public class EditProfileActivity extends BaseActivity {
HEADER
}
- @BindView(R.id.edit_profile_display_name) EditText displayNameEditText;
- @BindView(R.id.edit_profile_note) EditText noteEditText;
- @BindView(R.id.edit_profile_avatar) Button avatarButton;
- @BindView(R.id.edit_profile_avatar_preview) ImageView avatarPreview;
- @BindView(R.id.edit_profile_avatar_progress) ProgressBar avatarProgress;
- @BindView(R.id.edit_profile_header) Button headerButton;
+ @BindView(R.id.edit_profile_header) ImageButton headerButton;
@BindView(R.id.edit_profile_header_preview) ImageView headerPreview;
@BindView(R.id.edit_profile_header_progress) ProgressBar headerProgress;
+ @BindView(R.id.edit_profile_avatar) ImageButton avatarButton;
+ @BindView(R.id.edit_profile_avatar_preview) ImageView avatarPreview;
+ @BindView(R.id.edit_profile_avatar_progress) ProgressBar avatarProgress;
+ @BindView(R.id.edit_profile_display_name) EditText displayNameEditText;
+ @BindView(R.id.edit_profile_note) EditText noteEditText;
@BindView(R.id.edit_profile_save_progress) ProgressBar saveProgress;
private String priorDisplayName;
@@ -100,7 +101,7 @@ public class EditProfileActivity extends BaseActivity {
setSupportActionBar(toolbar);
ActionBar actionBar = getSupportActionBar();
if (actionBar != null) {
- actionBar.setTitle(null);
+ actionBar.setTitle(getString(R.string.title_edit_profile));
actionBar.setDisplayHomeAsUpEnabled(true);
actionBar.setDisplayShowHomeEnabled(true);
}
@@ -121,6 +122,8 @@ public class EditProfileActivity extends BaseActivity {
headerBase64 = null;
}
+
+
avatarButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
diff --git a/app/src/main/res/drawable/ic_add_a_photo_32dp.xml b/app/src/main/res/drawable/ic_add_a_photo_32dp.xml
new file mode 100644
index 00000000..172c5ace
--- /dev/null
+++ b/app/src/main/res/drawable/ic_add_a_photo_32dp.xml
@@ -0,0 +1,4 @@
+
+
+
diff --git a/app/src/main/res/drawable/ic_check_32dp.xml b/app/src/main/res/drawable/ic_check_32dp.xml
new file mode 100644
index 00000000..d6672246
--- /dev/null
+++ b/app/src/main/res/drawable/ic_check_32dp.xml
@@ -0,0 +1,4 @@
+
+
+
diff --git a/app/src/main/res/layout/activity_edit_profile.xml b/app/src/main/res/layout/activity_edit_profile.xml
index 4f224a72..3ca28224 100644
--- a/app/src/main/res/layout/activity_edit_profile.xml
+++ b/app/src/main/res/layout/activity_edit_profile.xml
@@ -1,5 +1,7 @@
-
-
+ android:text="@string/label_header"
+ android:labelFor="@+id/edit_profile_header"
+ android:visibility="gone"/>
-
+
-
-
+
+
+ android:id="@+id/edit_profile_header_progress"
+ android:layout_centerInParent="true"
+ android:indeterminate="true"
+ android:visibility="gone" />
-
+
-
+
+
+
-
+ android:layout_marginTop="15dp">
-
+ android:id="@+id/edit_profile_display_name"
+ android:hint="@string/hint_display_name"
+ android:maxLength="30"
+ android:layout_marginStart="16dp"
+ android:layout_marginEnd="16dp" />
-
+
-
-
-
+ android:layout_marginTop="15dp">
-
-
-
+ android:id="@+id/edit_profile_note"
+ android:hint="@string/hint_note"
+ android:maxLength="160"
+ android:layout_marginStart="16dp"
+ android:layout_marginEnd="16dp"
+ android:layout_marginBottom="16dp" />
-
+
diff --git a/app/src/main/res/menu/edit_profile_toolbar.xml b/app/src/main/res/menu/edit_profile_toolbar.xml
index c49471b5..49a91392 100644
--- a/app/src/main/res/menu/edit_profile_toolbar.xml
+++ b/app/src/main/res/menu/edit_profile_toolbar.xml
@@ -3,7 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto">
\ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 95e9bae5..5d77baa1 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -32,6 +32,7 @@
Muted users
Blocked users
Follow Requests
+ Edit your profile
\@%s
%s boosted