Some UI tweaks.

This commit is contained in:
Alex Ning 2021-11-10 21:25:32 +08:00
parent 973c468a7c
commit 24f5682bf8
15 changed files with 132 additions and 197 deletions

View File

@ -394,8 +394,9 @@
android:theme="@style/AppTheme.SlidableWithTranslucentWindow" /> android:theme="@style/AppTheme.SlidableWithTranslucentWindow" />
<activity android:name=".activities.EditProfileActivity" <activity android:name=".activities.EditProfileActivity"
android:label="@string/edit_profile_activity_label"
android:parentActivityName=".activities.MainActivity" android:parentActivityName=".activities.MainActivity"
android:theme="@style/AppTheme.SlidableWithTranslucentWindow" android:theme="@style/AppTheme.Slidable"
android:windowSoftInputMode="adjustPan" /> android:windowSoftInputMode="adjustPan" />
<provider <provider

View File

@ -2,6 +2,7 @@ package ml.docilealligator.infinityforreddit.activities;
import android.content.Intent; import android.content.Intent;
import android.content.SharedPreferences; import android.content.SharedPreferences;
import android.os.Build;
import android.os.Bundle; import android.os.Bundle;
import android.view.Gravity; import android.view.Gravity;
import android.view.Menu; import android.view.Menu;
@ -17,7 +18,6 @@ import android.widget.Toast;
import androidx.annotation.NonNull; import androidx.annotation.NonNull;
import androidx.annotation.Nullable; import androidx.annotation.Nullable;
import androidx.appcompat.widget.Toolbar;
import androidx.coordinatorlayout.widget.CoordinatorLayout; import androidx.coordinatorlayout.widget.CoordinatorLayout;
import androidx.core.content.ContextCompat; import androidx.core.content.ContextCompat;
import androidx.lifecycle.ViewModelProvider; import androidx.lifecycle.ViewModelProvider;
@ -26,6 +26,8 @@ import com.bumptech.glide.Glide;
import com.bumptech.glide.RequestManager; import com.bumptech.glide.RequestManager;
import com.bumptech.glide.request.RequestOptions; import com.bumptech.glide.request.RequestOptions;
import com.google.android.material.appbar.AppBarLayout; import com.google.android.material.appbar.AppBarLayout;
import com.google.android.material.appbar.CollapsingToolbarLayout;
import com.google.android.material.appbar.MaterialToolbar;
import com.google.android.material.dialog.MaterialAlertDialogBuilder; import com.google.android.material.dialog.MaterialAlertDialogBuilder;
import com.r0adkll.slidr.Slidr; import com.r0adkll.slidr.Slidr;
import com.r0adkll.slidr.model.SlidrInterface; import com.r0adkll.slidr.model.SlidrInterface;
@ -50,6 +52,7 @@ import ml.docilealligator.infinityforreddit.services.EditProfileService;
import ml.docilealligator.infinityforreddit.user.UserViewModel; import ml.docilealligator.infinityforreddit.user.UserViewModel;
import ml.docilealligator.infinityforreddit.utils.EditProfileUtils; import ml.docilealligator.infinityforreddit.utils.EditProfileUtils;
import ml.docilealligator.infinityforreddit.utils.SharedPreferencesUtils; import ml.docilealligator.infinityforreddit.utils.SharedPreferencesUtils;
import pl.droidsonroids.gif.GifImageView;
import retrofit2.Retrofit; import retrofit2.Retrofit;
public class EditProfileActivity extends BaseActivity { public class EditProfileActivity extends BaseActivity {
@ -61,14 +64,16 @@ public class EditProfileActivity extends BaseActivity {
CoordinatorLayout root; CoordinatorLayout root;
@BindView(R.id.content_view_edit_profile_activity) @BindView(R.id.content_view_edit_profile_activity)
LinearLayout content; LinearLayout content;
@BindView(R.id.collapsing_toolbar_layout_edit_profile_activity)
CollapsingToolbarLayout collapsingToolbarLayout;
@BindView(R.id.appbar_layout_view_edit_profile_activity) @BindView(R.id.appbar_layout_view_edit_profile_activity)
AppBarLayout appBarLayout; AppBarLayout appBarLayout;
@BindView(R.id.toolbar_view_edit_profile_activity) @BindView(R.id.toolbar_view_edit_profile_activity)
Toolbar toolbar; MaterialToolbar toolbar;
@BindView(R.id.image_view_banner_edit_profile_activity) @BindView(R.id.image_view_banner_edit_profile_activity)
ImageView bannerImageView; GifImageView bannerImageView;
@BindView(R.id.image_view_avatar_edit_profile_activity) @BindView(R.id.image_view_avatar_edit_profile_activity)
ImageView avatarImageView; GifImageView avatarImageView;
@BindView(R.id.image_view_change_banner_edit_profile_activity) @BindView(R.id.image_view_change_banner_edit_profile_activity)
ImageView changeBanner; ImageView changeBanner;
@BindView(R.id.image_view_change_avatar_edit_profile_activity) @BindView(R.id.image_view_change_avatar_edit_profile_activity)
@ -92,20 +97,28 @@ public class EditProfileActivity extends BaseActivity {
@Inject @Inject
CustomThemeWrapper mCustomThemeWrapper; CustomThemeWrapper mCustomThemeWrapper;
//
private String mAccountName; private String mAccountName;
private String mAccessToken; private String mAccessToken;
@Override @Override
protected void onCreate(@Nullable Bundle savedInstanceState) { protected void onCreate(@Nullable Bundle savedInstanceState) {
((Infinity) getApplication()).getAppComponent().inject(this); ((Infinity) getApplication()).getAppComponent().inject(this);
setTransparentStatusBarAfterToolbarCollapsed();
setImmersiveModeNotApplicable();
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
setContentView(R.layout.activity_edit_profile); setContentView(R.layout.activity_edit_profile);
ButterKnife.bind(this); ButterKnife.bind(this);
EventBus.getDefault().register(this); EventBus.getDefault().register(this);
applyCustomTheme(); applyCustomTheme();
adjustToolbar(toolbar);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M && isChangeStatusBarIconColor()) {
addOnOffsetChangedListener(appBarLayout);
}
setSupportActionBar(toolbar); setSupportActionBar(toolbar);
if (mSharedPreferences.getBoolean(SharedPreferencesUtils.SWIPE_RIGHT_TO_GO_BACK, true)) { if (mSharedPreferences.getBoolean(SharedPreferencesUtils.SWIPE_RIGHT_TO_GO_BACK, true)) {
@ -328,8 +341,9 @@ public class EditProfileActivity extends BaseActivity {
@Override @Override
protected void applyCustomTheme() { protected void applyCustomTheme() {
applyAppBarLayoutAndCollapsingToolbarLayoutAndToolbarTheme(appBarLayout, null, toolbar); applyAppBarLayoutAndCollapsingToolbarLayoutAndToolbarTheme(appBarLayout, collapsingToolbarLayout, toolbar);
root.setBackgroundColor(mCustomThemeWrapper.getBackgroundColor()); root.setBackgroundColor(mCustomThemeWrapper.getBackgroundColor());
changeColorTextView(content, mCustomThemeWrapper.getPrimaryTextColor()); changeColorTextView(content, mCustomThemeWrapper.getPrimaryTextColor());
} }

View File

@ -35,6 +35,7 @@ import com.bumptech.glide.request.RequestOptions;
import com.google.android.material.appbar.AppBarLayout; import com.google.android.material.appbar.AppBarLayout;
import com.google.android.material.button.MaterialButton; import com.google.android.material.button.MaterialButton;
import com.google.android.material.dialog.MaterialAlertDialogBuilder; import com.google.android.material.dialog.MaterialAlertDialogBuilder;
import com.google.android.material.divider.MaterialDivider;
import com.google.android.material.snackbar.Snackbar; import com.google.android.material.snackbar.Snackbar;
import com.google.android.material.switchmaterial.SwitchMaterial; import com.google.android.material.switchmaterial.SwitchMaterial;
import com.google.gson.Gson; import com.google.gson.Gson;
@ -110,27 +111,23 @@ public class PostGalleryActivity extends BaseActivity implements FlairBottomShee
@BindView(R.id.rules_button_post_gallery_activity) @BindView(R.id.rules_button_post_gallery_activity)
MaterialButton rulesButton; MaterialButton rulesButton;
@BindView(R.id.divider_1_post_gallery_activity) @BindView(R.id.divider_1_post_gallery_activity)
View divider1; MaterialDivider divider1;
@BindView(R.id.flair_custom_text_view_post_gallery_activity) @BindView(R.id.flair_custom_text_view_post_gallery_activity)
CustomTextView flairTextView; CustomTextView flairTextView;
@BindView(R.id.spoiler_custom_text_view_post_gallery_activity) @BindView(R.id.spoiler_custom_text_view_post_gallery_activity)
CustomTextView spoilerTextView; CustomTextView spoilerTextView;
@BindView(R.id.nsfw_custom_text_view_post_gallery_activity) @BindView(R.id.nsfw_custom_text_view_post_gallery_activity)
CustomTextView nsfwTextView; CustomTextView nsfwTextView;
@BindView(R.id.divider_2_post_gallery_activity)
View divider2;
@BindView(R.id.receive_post_reply_notifications_linear_layout_post_gallery_activity) @BindView(R.id.receive_post_reply_notifications_linear_layout_post_gallery_activity)
LinearLayout receivePostReplyNotificationsLinearLayout; LinearLayout receivePostReplyNotificationsLinearLayout;
@BindView(R.id.receive_post_reply_notifications_text_view_post_gallery_activity) @BindView(R.id.receive_post_reply_notifications_text_view_post_gallery_activity)
TextView receivePostReplyNotificationsTextView; TextView receivePostReplyNotificationsTextView;
@BindView(R.id.receive_post_reply_notifications_switch_material_post_gallery_activity) @BindView(R.id.receive_post_reply_notifications_switch_material_post_gallery_activity)
SwitchMaterial receivePostReplyNotificationsSwitchMaterial; SwitchMaterial receivePostReplyNotificationsSwitchMaterial;
@BindView(R.id.divider_3_post_gallery_activity) @BindView(R.id.divider_2_post_gallery_activity)
View divider3; MaterialDivider divider2;
@BindView(R.id.post_title_edit_text_post_gallery_activity) @BindView(R.id.post_title_edit_text_post_gallery_activity)
EditText titleEditText; EditText titleEditText;
@BindView(R.id.divider_4_post_gallery_activity)
View divider4;
@BindView(R.id.images_recycler_view_post_gallery_activity) @BindView(R.id.images_recycler_view_post_gallery_activity)
RecyclerView imagesRecyclerView; RecyclerView imagesRecyclerView;
@Inject @Inject
@ -415,10 +412,8 @@ public class PostGalleryActivity extends BaseActivity implements FlairBottomShee
primaryTextColor = mCustomThemeWrapper.getPrimaryTextColor(); primaryTextColor = mCustomThemeWrapper.getPrimaryTextColor();
receivePostReplyNotificationsTextView.setTextColor(primaryTextColor); receivePostReplyNotificationsTextView.setTextColor(primaryTextColor);
int dividerColor = mCustomThemeWrapper.getDividerColor(); int dividerColor = mCustomThemeWrapper.getDividerColor();
divider1.setBackgroundColor(dividerColor); divider1.setDividerColor(dividerColor);
divider2.setBackgroundColor(dividerColor); divider2.setDividerColor(dividerColor);
divider3.setBackgroundColor(dividerColor);
divider4.setBackgroundColor(dividerColor);
flairBackgroundColor = mCustomThemeWrapper.getFlairBackgroundColor(); flairBackgroundColor = mCustomThemeWrapper.getFlairBackgroundColor();
flairTextColor = mCustomThemeWrapper.getFlairTextColor(); flairTextColor = mCustomThemeWrapper.getFlairTextColor();
spoilerBackgroundColor = mCustomThemeWrapper.getSpoilerBackgroundColor(); spoilerBackgroundColor = mCustomThemeWrapper.getSpoilerBackgroundColor();

View File

@ -32,6 +32,7 @@ import com.bumptech.glide.request.RequestOptions;
import com.google.android.material.appbar.AppBarLayout; import com.google.android.material.appbar.AppBarLayout;
import com.google.android.material.button.MaterialButton; import com.google.android.material.button.MaterialButton;
import com.google.android.material.dialog.MaterialAlertDialogBuilder; import com.google.android.material.dialog.MaterialAlertDialogBuilder;
import com.google.android.material.divider.MaterialDivider;
import com.google.android.material.floatingactionbutton.FloatingActionButton; import com.google.android.material.floatingactionbutton.FloatingActionButton;
import com.google.android.material.snackbar.Snackbar; import com.google.android.material.snackbar.Snackbar;
import com.google.android.material.switchmaterial.SwitchMaterial; import com.google.android.material.switchmaterial.SwitchMaterial;
@ -97,27 +98,23 @@ public class PostImageActivity extends BaseActivity implements FlairBottomSheetF
@BindView(R.id.rules_button_post_image_activity) @BindView(R.id.rules_button_post_image_activity)
MaterialButton rulesButton; MaterialButton rulesButton;
@BindView(R.id.divider_1_post_image_activity) @BindView(R.id.divider_1_post_image_activity)
View divider1; MaterialDivider divider1;
@BindView(R.id.flair_custom_text_view_post_image_activity) @BindView(R.id.flair_custom_text_view_post_image_activity)
CustomTextView flairTextView; CustomTextView flairTextView;
@BindView(R.id.spoiler_custom_text_view_post_image_activity) @BindView(R.id.spoiler_custom_text_view_post_image_activity)
CustomTextView spoilerTextView; CustomTextView spoilerTextView;
@BindView(R.id.nsfw_custom_text_view_post_image_activity) @BindView(R.id.nsfw_custom_text_view_post_image_activity)
CustomTextView nsfwTextView; CustomTextView nsfwTextView;
@BindView(R.id.divider_2_post_image_activity)
View divider2;
@BindView(R.id.receive_post_reply_notifications_linear_layout_post_image_activity) @BindView(R.id.receive_post_reply_notifications_linear_layout_post_image_activity)
LinearLayout receivePostReplyNotificationsLinearLayout; LinearLayout receivePostReplyNotificationsLinearLayout;
@BindView(R.id.receive_post_reply_notifications_text_view_post_image_activity) @BindView(R.id.receive_post_reply_notifications_text_view_post_image_activity)
TextView receivePostReplyNotificationsTextView; TextView receivePostReplyNotificationsTextView;
@BindView(R.id.receive_post_reply_notifications_switch_material_post_image_activity) @BindView(R.id.receive_post_reply_notifications_switch_material_post_image_activity)
SwitchMaterial receivePostReplyNotificationsSwitchMaterial; SwitchMaterial receivePostReplyNotificationsSwitchMaterial;
@BindView(R.id.divider_3_post_image_activity) @BindView(R.id.divider_2_post_image_activity)
View divider3; MaterialDivider divider2;
@BindView(R.id.post_title_edit_text_post_image_activity) @BindView(R.id.post_title_edit_text_post_image_activity)
EditText titleEditText; EditText titleEditText;
@BindView(R.id.divider_4_post_image_activity)
View divider4;
@BindView(R.id.select_image_constraint_layout_post_image_activity) @BindView(R.id.select_image_constraint_layout_post_image_activity)
ConstraintLayout constraintLayout; ConstraintLayout constraintLayout;
@BindView(R.id.capture_fab_post_image_activity) @BindView(R.id.capture_fab_post_image_activity)
@ -396,10 +393,8 @@ public class PostImageActivity extends BaseActivity implements FlairBottomSheetF
primaryTextColor = mCustomThemeWrapper.getPrimaryTextColor(); primaryTextColor = mCustomThemeWrapper.getPrimaryTextColor();
receivePostReplyNotificationsTextView.setTextColor(primaryTextColor); receivePostReplyNotificationsTextView.setTextColor(primaryTextColor);
int dividerColor = mCustomThemeWrapper.getDividerColor(); int dividerColor = mCustomThemeWrapper.getDividerColor();
divider1.setBackgroundColor(dividerColor); divider1.setDividerColor(dividerColor);
divider2.setBackgroundColor(dividerColor); divider2.setDividerColor(dividerColor);
divider3.setBackgroundColor(dividerColor);
divider4.setBackgroundColor(dividerColor);
flairBackgroundColor = mCustomThemeWrapper.getFlairBackgroundColor(); flairBackgroundColor = mCustomThemeWrapper.getFlairBackgroundColor();
flairTextColor = mCustomThemeWrapper.getFlairTextColor(); flairTextColor = mCustomThemeWrapper.getFlairTextColor();
spoilerBackgroundColor = mCustomThemeWrapper.getSpoilerBackgroundColor(); spoilerBackgroundColor = mCustomThemeWrapper.getSpoilerBackgroundColor();

View File

@ -26,6 +26,7 @@ import com.bumptech.glide.request.RequestOptions;
import com.google.android.material.appbar.AppBarLayout; import com.google.android.material.appbar.AppBarLayout;
import com.google.android.material.button.MaterialButton; import com.google.android.material.button.MaterialButton;
import com.google.android.material.dialog.MaterialAlertDialogBuilder; import com.google.android.material.dialog.MaterialAlertDialogBuilder;
import com.google.android.material.divider.MaterialDivider;
import com.google.android.material.snackbar.Snackbar; import com.google.android.material.snackbar.Snackbar;
import com.google.android.material.switchmaterial.SwitchMaterial; import com.google.android.material.switchmaterial.SwitchMaterial;
import com.libRG.CustomTextView; import com.libRG.CustomTextView;
@ -91,11 +92,9 @@ public class PostLinkActivity extends BaseActivity implements FlairBottomSheetFr
@BindView(R.id.rules_button_post_link_activity) @BindView(R.id.rules_button_post_link_activity)
MaterialButton rulesButton; MaterialButton rulesButton;
@BindView(R.id.divider_1_post_link_activity) @BindView(R.id.divider_1_post_link_activity)
View divider1; MaterialDivider divider1;
@BindView(R.id.divider_2_post_link_activity) @BindView(R.id.divider_2_post_link_activity)
View divider2; MaterialDivider divider2;
@BindView(R.id.divider_4_post_link_activity)
View divider4;
@BindView(R.id.flair_custom_text_view_post_link_activity) @BindView(R.id.flair_custom_text_view_post_link_activity)
CustomTextView flairTextView; CustomTextView flairTextView;
@BindView(R.id.spoiler_custom_text_view_post_link_activity) @BindView(R.id.spoiler_custom_text_view_post_link_activity)
@ -108,8 +107,6 @@ public class PostLinkActivity extends BaseActivity implements FlairBottomSheetFr
TextView receivePostReplyNotificationsTextView; TextView receivePostReplyNotificationsTextView;
@BindView(R.id.receive_post_reply_notifications_switch_material_post_link_activity) @BindView(R.id.receive_post_reply_notifications_switch_material_post_link_activity)
SwitchMaterial receivePostReplyNotificationsSwitchMaterial; SwitchMaterial receivePostReplyNotificationsSwitchMaterial;
@BindView(R.id.divider_3_post_link_activity)
View divider3;
@BindView(R.id.post_title_edit_text_post_link_activity) @BindView(R.id.post_title_edit_text_post_link_activity)
EditText titleEditText; EditText titleEditText;
@BindView(R.id.suggest_title_button_post_link_activity) @BindView(R.id.suggest_title_button_post_link_activity)
@ -370,10 +367,8 @@ public class PostLinkActivity extends BaseActivity implements FlairBottomSheetFr
primaryTextColor = mCustomThemeWrapper.getPrimaryTextColor(); primaryTextColor = mCustomThemeWrapper.getPrimaryTextColor();
receivePostReplyNotificationsTextView.setTextColor(primaryTextColor); receivePostReplyNotificationsTextView.setTextColor(primaryTextColor);
int dividerColor = mCustomThemeWrapper.getDividerColor(); int dividerColor = mCustomThemeWrapper.getDividerColor();
divider1.setBackgroundColor(dividerColor); divider1.setDividerColor(dividerColor);
divider2.setBackgroundColor(dividerColor); divider2.setDividerColor(dividerColor);
divider3.setBackgroundColor(dividerColor);
divider4.setBackgroundColor(dividerColor);
flairBackgroundColor = mCustomThemeWrapper.getFlairBackgroundColor(); flairBackgroundColor = mCustomThemeWrapper.getFlairBackgroundColor();
flairTextColor = mCustomThemeWrapper.getFlairTextColor(); flairTextColor = mCustomThemeWrapper.getFlairTextColor();
spoilerBackgroundColor = mCustomThemeWrapper.getSpoilerBackgroundColor(); spoilerBackgroundColor = mCustomThemeWrapper.getSpoilerBackgroundColor();

View File

@ -33,6 +33,7 @@ import com.bumptech.glide.request.RequestOptions;
import com.google.android.material.appbar.AppBarLayout; import com.google.android.material.appbar.AppBarLayout;
import com.google.android.material.button.MaterialButton; import com.google.android.material.button.MaterialButton;
import com.google.android.material.dialog.MaterialAlertDialogBuilder; import com.google.android.material.dialog.MaterialAlertDialogBuilder;
import com.google.android.material.divider.MaterialDivider;
import com.google.android.material.snackbar.Snackbar; import com.google.android.material.snackbar.Snackbar;
import com.google.android.material.switchmaterial.SwitchMaterial; import com.google.android.material.switchmaterial.SwitchMaterial;
import com.libRG.CustomTextView; import com.libRG.CustomTextView;
@ -107,27 +108,23 @@ public class PostTextActivity extends BaseActivity implements FlairBottomSheetFr
@BindView(R.id.rules_button_post_text_activity) @BindView(R.id.rules_button_post_text_activity)
MaterialButton rulesButton; MaterialButton rulesButton;
@BindView(R.id.divider_1_post_text_activity) @BindView(R.id.divider_1_post_text_activity)
View divider1; MaterialDivider divider1;
@BindView(R.id.flair_custom_text_view_post_text_activity) @BindView(R.id.flair_custom_text_view_post_text_activity)
CustomTextView flairTextView; CustomTextView flairTextView;
@BindView(R.id.spoiler_custom_text_view_post_text_activity) @BindView(R.id.spoiler_custom_text_view_post_text_activity)
CustomTextView spoilerTextView; CustomTextView spoilerTextView;
@BindView(R.id.nsfw_custom_text_view_post_text_activity) @BindView(R.id.nsfw_custom_text_view_post_text_activity)
CustomTextView nsfwTextView; CustomTextView nsfwTextView;
@BindView(R.id.divider_2_post_text_activity)
View divider2;
@BindView(R.id.receive_post_reply_notifications_linear_layout_post_text_activity) @BindView(R.id.receive_post_reply_notifications_linear_layout_post_text_activity)
LinearLayout receivePostReplyNotificationsLinearLayout; LinearLayout receivePostReplyNotificationsLinearLayout;
@BindView(R.id.receive_post_reply_notifications_text_view_post_text_activity) @BindView(R.id.receive_post_reply_notifications_text_view_post_text_activity)
TextView receivePostReplyNotificationsTextView; TextView receivePostReplyNotificationsTextView;
@BindView(R.id.receive_post_reply_notifications_switch_material_post_text_activity) @BindView(R.id.receive_post_reply_notifications_switch_material_post_text_activity)
SwitchMaterial receivePostReplyNotificationsSwitchMaterial; SwitchMaterial receivePostReplyNotificationsSwitchMaterial;
@BindView(R.id.divider_3_post_text_activity) @BindView(R.id.divider_2_post_text_activity)
View divider3; MaterialDivider divider2;
@BindView(R.id.post_title_edit_text_post_text_activity) @BindView(R.id.post_title_edit_text_post_text_activity)
EditText titleEditText; EditText titleEditText;
@BindView(R.id.divider_4_post_text_activity)
View divider4;
@BindView(R.id.post_text_content_edit_text_post_text_activity) @BindView(R.id.post_text_content_edit_text_post_text_activity)
EditText contentEditText; EditText contentEditText;
@BindView(R.id.markdown_bottom_bar_recycler_view_post_text_activity) @BindView(R.id.markdown_bottom_bar_recycler_view_post_text_activity)
@ -394,10 +391,8 @@ public class PostTextActivity extends BaseActivity implements FlairBottomSheetFr
primaryTextColor = mCustomThemeWrapper.getPrimaryTextColor(); primaryTextColor = mCustomThemeWrapper.getPrimaryTextColor();
receivePostReplyNotificationsTextView.setTextColor(primaryTextColor); receivePostReplyNotificationsTextView.setTextColor(primaryTextColor);
int dividerColor = mCustomThemeWrapper.getDividerColor(); int dividerColor = mCustomThemeWrapper.getDividerColor();
divider1.setBackgroundColor(dividerColor); divider1.setDividerColor(dividerColor);
divider2.setBackgroundColor(dividerColor); divider2.setDividerColor(dividerColor);
divider3.setBackgroundColor(dividerColor);
divider4.setBackgroundColor(dividerColor);
flairBackgroundColor = mCustomThemeWrapper.getFlairBackgroundColor(); flairBackgroundColor = mCustomThemeWrapper.getFlairBackgroundColor();
flairTextColor = mCustomThemeWrapper.getFlairTextColor(); flairTextColor = mCustomThemeWrapper.getFlairTextColor();
spoilerBackgroundColor = mCustomThemeWrapper.getSpoilerBackgroundColor(); spoilerBackgroundColor = mCustomThemeWrapper.getSpoilerBackgroundColor();

View File

@ -1,5 +1,6 @@
package ml.docilealligator.infinityforreddit.activities; package ml.docilealligator.infinityforreddit.activities;
import android.content.ActivityNotFoundException;
import android.content.Intent; import android.content.Intent;
import android.content.SharedPreferences; import android.content.SharedPreferences;
import android.content.res.Resources; import android.content.res.Resources;
@ -14,6 +15,7 @@ import android.view.View;
import android.widget.EditText; import android.widget.EditText;
import android.widget.LinearLayout; import android.widget.LinearLayout;
import android.widget.TextView; import android.widget.TextView;
import android.widget.Toast;
import androidx.annotation.NonNull; import androidx.annotation.NonNull;
import androidx.annotation.Nullable; import androidx.annotation.Nullable;
@ -36,6 +38,7 @@ import com.google.android.exoplayer2.util.Util;
import com.google.android.material.appbar.AppBarLayout; import com.google.android.material.appbar.AppBarLayout;
import com.google.android.material.button.MaterialButton; import com.google.android.material.button.MaterialButton;
import com.google.android.material.dialog.MaterialAlertDialogBuilder; import com.google.android.material.dialog.MaterialAlertDialogBuilder;
import com.google.android.material.divider.MaterialDivider;
import com.google.android.material.floatingactionbutton.FloatingActionButton; import com.google.android.material.floatingactionbutton.FloatingActionButton;
import com.google.android.material.snackbar.Snackbar; import com.google.android.material.snackbar.Snackbar;
import com.google.android.material.switchmaterial.SwitchMaterial; import com.google.android.material.switchmaterial.SwitchMaterial;
@ -98,27 +101,23 @@ public class PostVideoActivity extends BaseActivity implements FlairBottomSheetF
@BindView(R.id.rules_button_post_video_activity) @BindView(R.id.rules_button_post_video_activity)
MaterialButton rulesButton; MaterialButton rulesButton;
@BindView(R.id.divider_1_post_video_activity) @BindView(R.id.divider_1_post_video_activity)
View divider1; MaterialDivider divider1;
@BindView(R.id.flair_custom_text_view_post_video_activity) @BindView(R.id.flair_custom_text_view_post_video_activity)
CustomTextView flairTextView; CustomTextView flairTextView;
@BindView(R.id.spoiler_custom_text_view_post_video_activity) @BindView(R.id.spoiler_custom_text_view_post_video_activity)
CustomTextView spoilerTextView; CustomTextView spoilerTextView;
@BindView(R.id.nsfw_custom_text_view_post_video_activity) @BindView(R.id.nsfw_custom_text_view_post_video_activity)
CustomTextView nsfwTextView; CustomTextView nsfwTextView;
@BindView(R.id.divider_2_post_video_activity)
View divider2;
@BindView(R.id.receive_post_reply_notifications_linear_layout_post_video_activity) @BindView(R.id.receive_post_reply_notifications_linear_layout_post_video_activity)
LinearLayout receivePostReplyNotificationsLinearLayout; LinearLayout receivePostReplyNotificationsLinearLayout;
@BindView(R.id.receive_post_reply_notifications_text_view_post_video_activity) @BindView(R.id.receive_post_reply_notifications_text_view_post_video_activity)
TextView receivePostReplyNotificationsTextView; TextView receivePostReplyNotificationsTextView;
@BindView(R.id.receive_post_reply_notifications_switch_material_post_video_activity) @BindView(R.id.receive_post_reply_notifications_switch_material_post_video_activity)
SwitchMaterial receivePostReplyNotificationsSwitchMaterial; SwitchMaterial receivePostReplyNotificationsSwitchMaterial;
@BindView(R.id.divider_3_post_video_activity) @BindView(R.id.divider_2_post_video_activity)
View divider3; MaterialDivider divider2;
@BindView(R.id.post_title_edit_text_post_video_activity) @BindView(R.id.post_title_edit_text_post_video_activity)
EditText titleEditText; EditText titleEditText;
@BindView(R.id.divider_4_post_video_activity)
View divider4;
@BindView(R.id.select_video_constraint_layout_post_video_activity) @BindView(R.id.select_video_constraint_layout_post_video_activity)
ConstraintLayout constraintLayout; ConstraintLayout constraintLayout;
@BindView(R.id.capture_fab_post_video_activity) @BindView(R.id.capture_fab_post_video_activity)
@ -364,8 +363,10 @@ public class PostVideoActivity extends BaseActivity implements FlairBottomSheetF
captureFab.setOnClickListener(view -> { captureFab.setOnClickListener(view -> {
Intent takeVideoIntent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE); Intent takeVideoIntent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);
if (takeVideoIntent.resolveActivity(getPackageManager()) != null) { try {
startActivityForResult(takeVideoIntent, CAPTURE_VIDEO_REQUEST_CODE); startActivityForResult(takeVideoIntent, CAPTURE_VIDEO_REQUEST_CODE);
} catch (ActivityNotFoundException e) {
Toast.makeText(this, R.string.no_camera_available, Toast.LENGTH_SHORT).show();
} }
}); });
@ -407,10 +408,8 @@ public class PostVideoActivity extends BaseActivity implements FlairBottomSheetF
primaryTextColor = mCustomThemeWrapper.getPrimaryTextColor(); primaryTextColor = mCustomThemeWrapper.getPrimaryTextColor();
receivePostReplyNotificationsTextView.setTextColor(primaryTextColor); receivePostReplyNotificationsTextView.setTextColor(primaryTextColor);
int dividerColor = mCustomThemeWrapper.getDividerColor(); int dividerColor = mCustomThemeWrapper.getDividerColor();
divider1.setBackgroundColor(dividerColor); divider1.setDividerColor(dividerColor);
divider2.setBackgroundColor(dividerColor); divider2.setDividerColor(dividerColor);
divider3.setBackgroundColor(dividerColor);
divider4.setBackgroundColor(dividerColor);
flairBackgroundColor = mCustomThemeWrapper.getFlairBackgroundColor(); flairBackgroundColor = mCustomThemeWrapper.getFlairBackgroundColor();
flairTextColor = mCustomThemeWrapper.getFlairTextColor(); flairTextColor = mCustomThemeWrapper.getFlairTextColor();
spoilerBackgroundColor = mCustomThemeWrapper.getSpoilerBackgroundColor(); spoilerBackgroundColor = mCustomThemeWrapper.getSpoilerBackgroundColor();

View File

@ -13,14 +13,23 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay"> android:theme="@style/AppTheme.AppBarOverlay">
<androidx.appcompat.widget.Toolbar <com.google.android.material.appbar.CollapsingToolbarLayout
android:id="@+id/collapsing_toolbar_layout_edit_profile_activity"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_scrollFlags="scroll|enterAlways"
app:titleEnabled="false"
app:toolbarId="@+id/toolbar_post_text_activity">
<com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar_view_edit_profile_activity" android:id="@+id/toolbar_view_edit_profile_activity"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:minHeight="?attr/actionBarSize" android:minHeight="?attr/actionBarSize"
app:navigationIcon="?attr/homeAsUpIndicator" app:navigationIcon="?attr/homeAsUpIndicator"
app:popupTheme="@style/AppTheme.PopupOverlay" app:popupTheme="@style/AppTheme.PopupOverlay" />
app:title="@string/action_edit_profile" />
</com.google.android.material.appbar.CollapsingToolbarLayout>
</com.google.android.material.appbar.AppBarLayout> </com.google.android.material.appbar.AppBarLayout>
@ -42,14 +51,12 @@
<FrameLayout <FrameLayout
android:id="@+id/frame_layout_view_banner_edit_profile_activity" android:id="@+id/frame_layout_view_banner_edit_profile_activity"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content">
android:layout_margin="8dp">
<ImageView <pl.droidsonroids.gif.GifImageView
android:id="@+id/image_view_banner_edit_profile_activity" android:id="@+id/image_view_banner_edit_profile_activity"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="180dp" android:layout_height="180dp"
android:contentDescription="@null"
android:scaleType="centerCrop" android:scaleType="centerCrop"
tools:src="@tools:sample/backgrounds/scenic" /> tools:src="@tools:sample/backgrounds/scenic" />
@ -68,17 +75,16 @@
<FrameLayout <FrameLayout
android:id="@+id/frame_layout_view_avatar_edit_profile_activity" android:id="@+id/frame_layout_view_avatar_edit_profile_activity"
android:layout_width="74dp" android:layout_width="72dp"
android:layout_height="74dp" android:layout_height="72dp"
android:layout_marginStart="24dp" android:layout_marginStart="24dp"
android:layout_marginTop="143dp" android:layout_marginTop="143dp"
android:elevation="4dp"> android:elevation="4dp">
<ImageView <pl.droidsonroids.gif.GifImageView
android:id="@+id/image_view_avatar_edit_profile_activity" android:id="@+id/image_view_avatar_edit_profile_activity"
android:layout_width="74dp" android:layout_width="72dp"
android:layout_height="74dp" android:layout_height="72dp"
android:contentDescription="@null"
tools:src="@tools:sample/avatars" /> tools:src="@tools:sample/avatars" />
<ImageView <ImageView
@ -96,22 +102,17 @@
</FrameLayout> </FrameLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_margin="8dp"
android:background="?dividerVertical" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="8dp" android:orientation="vertical">
android:orientation="vertical"
android:padding="8dp">
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingTop="48dp"
android:paddingStart="16dp"
android:paddingEnd="16dp"
android:fontFamily="?attr/font_family" android:fontFamily="?attr/font_family"
android:text="@string/display_name_text" android:text="@string/display_name_text"
android:textSize="?attr/font_18" /> android:textSize="?attr/font_18" />
@ -120,20 +121,19 @@
android:id="@+id/edit_text_display_name_edit_profile_activity" android:id="@+id/edit_text_display_name_edit_profile_activity"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:padding="16dp"
android:gravity="top" android:gravity="top"
android:background="#00000000"
android:hint="@string/display_name_hint" android:hint="@string/display_name_hint"
android:importantForAutofill="no" android:importantForAutofill="no"
android:inputType="textCapSentences" android:inputType="textCapSentences"
android:lines="1" android:maxLength="30" />
android:maxLength="30"
android:maxLines="1"
android:paddingStart="16dp"
android:paddingEnd="16dp"
android:paddingBottom="16dp" />
<TextView <TextView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingStart="16dp"
android:paddingEnd="16dp"
android:text="@string/display_name_description" /> android:text="@string/display_name_description" />
</LinearLayout> </LinearLayout>
@ -141,13 +141,14 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="8dp" android:orientation="vertical">
android:orientation="vertical"
android:padding="8dp">
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingTop="48dp"
android:paddingStart="16dp"
android:paddingEnd="16dp"
android:fontFamily="?attr/font_family" android:fontFamily="?attr/font_family"
android:text="@string/about_you_text" android:text="@string/about_you_text"
android:textSize="?attr/font_18" /> android:textSize="?attr/font_18" />
@ -156,16 +157,13 @@
android:id="@+id/edit_text_about_you_edit_profile_activity" android:id="@+id/edit_text_about_you_edit_profile_activity"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:padding="16dp"
android:gravity="top" android:gravity="top"
android:background="#00000000"
android:hint="@string/about_you_hint" android:hint="@string/about_you_hint"
android:importantForAutofill="no" android:importantForAutofill="no"
android:inputType="textCapSentences|textMultiLine" android:inputType="textCapSentences|textMultiLine"
android:lines="4" android:maxLength="200" />
android:maxLength="200"
android:maxLines="4"
android:paddingStart="16dp"
android:paddingEnd="16dp"
android:paddingBottom="16dp" />
</LinearLayout> </LinearLayout>

View File

@ -73,10 +73,10 @@
</RelativeLayout> </RelativeLayout>
<View <com.google.android.material.divider.MaterialDivider
android:id="@+id/divider_1_post_gallery_activity" android:id="@+id/divider_1_post_gallery_activity"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="1dp" /> android:layout_height="wrap_content" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
@ -127,17 +127,10 @@
</LinearLayout> </LinearLayout>
<View
android:id="@+id/divider_2_post_gallery_activity"
android:layout_width="match_parent"
android:layout_height="1dp" />
<LinearLayout <LinearLayout
android:id="@+id/receive_post_reply_notifications_linear_layout_post_gallery_activity" android:id="@+id/receive_post_reply_notifications_linear_layout_post_gallery_activity"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:padding="8dp"
android:paddingBottom="8dp"
android:paddingStart="16dp" android:paddingStart="16dp"
android:paddingEnd="16dp" android:paddingEnd="16dp"
android:clickable="true" android:clickable="true"
@ -164,10 +157,10 @@
</LinearLayout> </LinearLayout>
<View <com.google.android.material.divider.MaterialDivider
android:id="@+id/divider_3_post_gallery_activity" android:id="@+id/divider_2_post_gallery_activity"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="1dp" /> android:layout_height="wrap_content" />
<EditText <EditText
android:id="@+id/post_title_edit_text_post_gallery_activity" android:id="@+id/post_title_edit_text_post_gallery_activity"
@ -182,11 +175,6 @@
android:textSize="?attr/title_font_18" android:textSize="?attr/title_font_18"
android:fontFamily="?attr/title_font_family" /> android:fontFamily="?attr/title_font_family" />
<View
android:id="@+id/divider_4_post_gallery_activity"
android:layout_width="match_parent"
android:layout_height="1dp" />
<androidx.recyclerview.widget.RecyclerView <androidx.recyclerview.widget.RecyclerView
android:id="@+id/images_recycler_view_post_gallery_activity" android:id="@+id/images_recycler_view_post_gallery_activity"
android:layout_width="match_parent" android:layout_width="match_parent"

View File

@ -73,10 +73,10 @@
</RelativeLayout> </RelativeLayout>
<View <com.google.android.material.divider.MaterialDivider
android:id="@+id/divider_1_post_image_activity" android:id="@+id/divider_1_post_image_activity"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="1dp" /> android:layout_height="wrap_content" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
@ -127,17 +127,10 @@
</LinearLayout> </LinearLayout>
<View
android:id="@+id/divider_2_post_image_activity"
android:layout_width="match_parent"
android:layout_height="1dp" />
<LinearLayout <LinearLayout
android:id="@+id/receive_post_reply_notifications_linear_layout_post_image_activity" android:id="@+id/receive_post_reply_notifications_linear_layout_post_image_activity"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:padding="8dp"
android:paddingBottom="8dp"
android:paddingStart="16dp" android:paddingStart="16dp"
android:paddingEnd="16dp" android:paddingEnd="16dp"
android:clickable="true" android:clickable="true"
@ -164,10 +157,10 @@
</LinearLayout> </LinearLayout>
<View <com.google.android.material.divider.MaterialDivider
android:id="@+id/divider_3_post_image_activity" android:id="@+id/divider_2_post_image_activity"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="1dp" /> android:layout_height="wrap_content" />
<EditText <EditText
android:id="@+id/post_title_edit_text_post_image_activity" android:id="@+id/post_title_edit_text_post_image_activity"
@ -182,11 +175,6 @@
android:textSize="?attr/title_font_18" android:textSize="?attr/title_font_18"
android:fontFamily="?attr/title_font_family" /> android:fontFamily="?attr/title_font_family" />
<View
android:id="@+id/divider_4_post_image_activity"
android:layout_width="match_parent"
android:layout_height="1dp" />
<androidx.constraintlayout.widget.ConstraintLayout <androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/select_image_constraint_layout_post_image_activity" android:id="@+id/select_image_constraint_layout_post_image_activity"
android:layout_width="match_parent" android:layout_width="match_parent"

View File

@ -73,10 +73,10 @@
</RelativeLayout> </RelativeLayout>
<View <com.google.android.material.divider.MaterialDivider
android:id="@+id/divider_1_post_link_activity" android:id="@+id/divider_1_post_link_activity"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="1dp" /> android:layout_height="wrap_content" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
@ -127,17 +127,10 @@
</LinearLayout> </LinearLayout>
<View
android:id="@+id/divider_2_post_link_activity"
android:layout_width="match_parent"
android:layout_height="1dp" />
<LinearLayout <LinearLayout
android:id="@+id/receive_post_reply_notifications_linear_layout_post_link_activity" android:id="@+id/receive_post_reply_notifications_linear_layout_post_link_activity"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:padding="8dp"
android:paddingBottom="8dp"
android:paddingStart="16dp" android:paddingStart="16dp"
android:paddingEnd="16dp" android:paddingEnd="16dp"
android:clickable="true" android:clickable="true"
@ -164,10 +157,10 @@
</LinearLayout> </LinearLayout>
<View <com.google.android.material.divider.MaterialDivider
android:id="@+id/divider_3_post_link_activity" android:id="@+id/divider_2_post_link_activity"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="1dp" /> android:layout_height="wrap_content" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
@ -201,11 +194,6 @@
</LinearLayout> </LinearLayout>
<View
android:id="@+id/divider_4_post_link_activity"
android:layout_width="match_parent"
android:layout_height="1dp" />
<EditText <EditText
android:id="@+id/post_link_edit_text_post_link_activity" android:id="@+id/post_link_edit_text_post_link_activity"
android:layout_width="match_parent" android:layout_width="match_parent"

View File

@ -79,10 +79,10 @@
</RelativeLayout> </RelativeLayout>
<View <com.google.android.material.divider.MaterialDivider
android:id="@+id/divider_1_post_text_activity" android:id="@+id/divider_1_post_text_activity"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="1dp" /> android:layout_height="wrap_content" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
@ -130,17 +130,10 @@
</LinearLayout> </LinearLayout>
<View
android:id="@+id/divider_2_post_text_activity"
android:layout_width="match_parent"
android:layout_height="1dp" />
<LinearLayout <LinearLayout
android:id="@+id/receive_post_reply_notifications_linear_layout_post_text_activity" android:id="@+id/receive_post_reply_notifications_linear_layout_post_text_activity"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:padding="8dp"
android:paddingBottom="8dp"
android:paddingStart="16dp" android:paddingStart="16dp"
android:paddingEnd="16dp" android:paddingEnd="16dp"
android:clickable="true" android:clickable="true"
@ -167,10 +160,10 @@
</LinearLayout> </LinearLayout>
<View <com.google.android.material.divider.MaterialDivider
android:id="@+id/divider_3_post_text_activity" android:id="@+id/divider_2_post_text_activity"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="1dp" /> android:layout_height="wrap_content" />
<EditText <EditText
android:id="@+id/post_title_edit_text_post_text_activity" android:id="@+id/post_title_edit_text_post_text_activity"
@ -184,11 +177,6 @@
android:textSize="?attr/title_font_18" android:textSize="?attr/title_font_18"
android:fontFamily="?attr/title_font_family" /> android:fontFamily="?attr/title_font_family" />
<View
android:id="@+id/divider_4_post_text_activity"
android:layout_width="match_parent"
android:layout_height="1dp" />
<EditText <EditText
android:id="@+id/post_text_content_edit_text_post_text_activity" android:id="@+id/post_text_content_edit_text_post_text_activity"
android:layout_width="match_parent" android:layout_width="match_parent"

View File

@ -73,10 +73,10 @@
</RelativeLayout> </RelativeLayout>
<View <com.google.android.material.divider.MaterialDivider
android:id="@+id/divider_1_post_video_activity" android:id="@+id/divider_1_post_video_activity"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="1dp" /> android:layout_height="wrap_content" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
@ -127,17 +127,10 @@
</LinearLayout> </LinearLayout>
<View
android:id="@+id/divider_2_post_video_activity"
android:layout_width="match_parent"
android:layout_height="1dp" />
<LinearLayout <LinearLayout
android:id="@+id/receive_post_reply_notifications_linear_layout_post_video_activity" android:id="@+id/receive_post_reply_notifications_linear_layout_post_video_activity"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:padding="8dp"
android:paddingBottom="8dp"
android:paddingStart="16dp" android:paddingStart="16dp"
android:paddingEnd="16dp" android:paddingEnd="16dp"
android:clickable="true" android:clickable="true"
@ -164,10 +157,10 @@
</LinearLayout> </LinearLayout>
<View <com.google.android.material.divider.MaterialDivider
android:id="@+id/divider_3_post_video_activity" android:id="@+id/divider_2_post_video_activity"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="1dp" /> android:layout_height="wrap_content" />
<EditText <EditText
android:id="@+id/post_title_edit_text_post_video_activity" android:id="@+id/post_title_edit_text_post_video_activity"
@ -182,11 +175,6 @@
android:textSize="?attr/title_font_18" android:textSize="?attr/title_font_18"
android:fontFamily="?attr/title_font_family" /> android:fontFamily="?attr/title_font_family" />
<View
android:id="@+id/divider_4_post_video_activity"
android:layout_width="match_parent"
android:layout_height="1dp" />
<androidx.constraintlayout.widget.ConstraintLayout <androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/select_video_constraint_layout_post_video_activity" android:id="@+id/select_video_constraint_layout_post_video_activity"
android:layout_width="match_parent" android:layout_width="match_parent"
@ -197,25 +185,27 @@
android:id="@+id/capture_fab_post_video_activity" android:id="@+id/capture_fab_post_video_activity"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:padding="16dp"
android:src="@drawable/ic_outline_add_a_photo_24dp" android:src="@drawable/ic_outline_add_a_photo_24dp"
app:useCompatPadding="true"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/select_from_library_fab_post_video_activity" app:layout_constraintEnd_toStartOf="@+id/select_from_library_fab_post_video_activity"
app:layout_constraintHorizontal_chainStyle="spread" app:layout_constraintHorizontal_chainStyle="spread"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent" />
app:tint="@android:color/white" />
<com.google.android.material.floatingactionbutton.FloatingActionButton <com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/select_from_library_fab_post_video_activity" android:id="@+id/select_from_library_fab_post_video_activity"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:padding="16dp"
android:src="@drawable/ic_outline_select_photo_24dp" android:src="@drawable/ic_outline_select_photo_24dp"
app:useCompatPadding="true"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_chainStyle="spread" app:layout_constraintHorizontal_chainStyle="spread"
app:layout_constraintStart_toEndOf="@+id/capture_fab_post_video_activity" app:layout_constraintStart_toEndOf="@+id/capture_fab_post_video_activity"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent" />
app:tint="@android:color/white" />
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -6,6 +6,6 @@
android:id="@+id/action_save_edit_profile_activity" android:id="@+id/action_save_edit_profile_activity"
android:orderInCategory="1" android:orderInCategory="1"
android:title="@string/action_save" android:title="@string/action_save"
android:icon="@drawable/ic_save_to_database_24dp" android:icon="@drawable/ic_check_circle_toolbar_24dp"
app:showAsAction="ifRoom" /> app:showAsAction="ifRoom" />
</menu> </menu>

View File

@ -43,6 +43,7 @@
<string name="post_gallery_activity_label">Gallery Post</string> <string name="post_gallery_activity_label">Gallery Post</string>
<string name="trending_activity_label">Trending</string> <string name="trending_activity_label">Trending</string>
<string name="wiki_activity_label">Wiki</string> <string name="wiki_activity_label">Wiki</string>
<string name="edit_profile_activity_label">Edit Profile</string>
<string name="navigation_drawer_open">Open navigation drawer</string> <string name="navigation_drawer_open">Open navigation drawer</string>
<string name="navigation_drawer_close">Close navigation drawer</string> <string name="navigation_drawer_close">Close navigation drawer</string>
@ -1226,7 +1227,7 @@
<string name="remove_banner">Remove Banner</string> <string name="remove_banner">Remove Banner</string>
<string name="display_name_text">Display Name</string> <string name="display_name_text">Display Name</string>
<string name="display_name_hint">Show on your profile page</string> <string name="display_name_hint">Show on your profile page</string>
<string name="display_name_description">This will be displayed to viewer of your profile page and does not change your username</string> <string name="display_name_description">This will be displayed to viewers of your profile page and does not change your username.</string>
<string name="about_you_text">About You</string> <string name="about_you_text">About You</string>
<string name="about_you_hint">A little description of yourself</string> <string name="about_you_hint">A little description of yourself</string>
<string name="message_remove_avatar_success">Success remove Avatar</string> <string name="message_remove_avatar_success">Success remove Avatar</string>