mirror of
https://github.com/Docile-Alligator/Infinity-For-Reddit.git
synced 2025-10-29 11:35:08 +00:00
Remove RoundedBottomSheetDialogFragment and LandscapeExpandedBottomSheetDialogFragment. LandscapeExpandedRoundedBottomSheetDialogFragment extends BottomSheetDialogFragment now. Add a BottomSheetDragHandleView to every bottom sheet.
This commit is contained in:
parent
303bdb5cb9
commit
8ac338ef44
@ -186,9 +186,6 @@ dependencies {
|
||||
// Dismiss gesturing
|
||||
implementation 'app.futured.hauler:hauler:5.0.0'
|
||||
|
||||
// Bottom sheet with rounded corners
|
||||
implementation 'com.github.Deishelon:RoundedBottomSheet:1.0.1'
|
||||
|
||||
// FlowLayout (auto-spacing)
|
||||
implementation 'com.nex3z:flow-layout:1.3.3'
|
||||
|
||||
|
||||
@ -15,7 +15,6 @@ import androidx.biometric.BiometricManager;
|
||||
import androidx.biometric.BiometricPrompt;
|
||||
import androidx.core.content.ContextCompat;
|
||||
import androidx.lifecycle.ViewModelProvider;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
import com.bumptech.glide.Glide;
|
||||
|
||||
@ -32,11 +31,12 @@ import ml.docilealligator.infinityforreddit.account.AccountViewModel;
|
||||
import ml.docilealligator.infinityforreddit.activities.BaseActivity;
|
||||
import ml.docilealligator.infinityforreddit.adapters.AccountChooserRecyclerViewAdapter;
|
||||
import ml.docilealligator.infinityforreddit.customtheme.CustomThemeWrapper;
|
||||
import ml.docilealligator.infinityforreddit.customviews.LandscapeExpandedBottomSheetDialogFragment;
|
||||
import ml.docilealligator.infinityforreddit.customviews.LandscapeExpandedRoundedBottomSheetDialogFragment;
|
||||
import ml.docilealligator.infinityforreddit.databinding.FragmentAccountChooserBottomSheetBinding;
|
||||
import ml.docilealligator.infinityforreddit.utils.SharedPreferencesUtils;
|
||||
import ml.docilealligator.infinityforreddit.utils.Utils;
|
||||
|
||||
public class AccountChooserBottomSheetFragment extends LandscapeExpandedBottomSheetDialogFragment {
|
||||
public class AccountChooserBottomSheetFragment extends LandscapeExpandedRoundedBottomSheetDialogFragment {
|
||||
|
||||
@Inject
|
||||
RedditDataRoomDatabase redditDataRoomDatabase;
|
||||
@ -48,7 +48,6 @@ public class AccountChooserBottomSheetFragment extends LandscapeExpandedBottomSh
|
||||
@Inject
|
||||
Executor executor;
|
||||
BaseActivity activity;
|
||||
RecyclerView recyclerView;
|
||||
AccountChooserRecyclerViewAdapter adapter;
|
||||
AccountViewModel accountViewModel;
|
||||
|
||||
@ -60,13 +59,12 @@ public class AccountChooserBottomSheetFragment extends LandscapeExpandedBottomSh
|
||||
public View onCreateView(LayoutInflater inflater, ViewGroup container,
|
||||
Bundle savedInstanceState) {
|
||||
// Inflate the layout for this fragment
|
||||
View rootView = inflater.inflate(R.layout.fragment_account_chooser_bottom_sheet, container, false);
|
||||
FragmentAccountChooserBottomSheetBinding binding = FragmentAccountChooserBottomSheetBinding.inflate(inflater, container, false);
|
||||
|
||||
((Infinity) activity.getApplication()).getAppComponent().inject(this);
|
||||
|
||||
Utils.hideKeyboard(activity);
|
||||
|
||||
recyclerView = rootView.findViewById(R.id.recycler_view_account_chooser_bottom_sheet_fragment);
|
||||
adapter = new AccountChooserRecyclerViewAdapter(activity, customThemeWrapper, Glide.with(this),
|
||||
account -> {
|
||||
if (activity instanceof AccountChooserListener) {
|
||||
@ -74,7 +72,7 @@ public class AccountChooserBottomSheetFragment extends LandscapeExpandedBottomSh
|
||||
}
|
||||
dismiss();
|
||||
});
|
||||
recyclerView.setAdapter(adapter);
|
||||
binding.recyclerViewAccountChooserBottomSheetFragment.setAdapter(adapter);
|
||||
|
||||
if (sharedPreferences.getBoolean(SharedPreferencesUtils.REQUIRE_AUTHENTICATION_TO_GO_TO_ACCOUNT_SECTION_IN_NAVIGATION_DRAWER, false)) {
|
||||
BiometricManager biometricManager = BiometricManager.from(activity);
|
||||
@ -117,7 +115,7 @@ public class AccountChooserBottomSheetFragment extends LandscapeExpandedBottomSh
|
||||
});
|
||||
}
|
||||
|
||||
return rootView;
|
||||
return binding.getRoot();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@ -26,7 +26,7 @@ import ml.docilealligator.infinityforreddit.R;
|
||||
import ml.docilealligator.infinityforreddit.activities.BaseActivity;
|
||||
import ml.docilealligator.infinityforreddit.adapters.FlairBottomSheetRecyclerViewAdapter;
|
||||
import ml.docilealligator.infinityforreddit.customtheme.CustomThemeWrapper;
|
||||
import ml.docilealligator.infinityforreddit.customviews.LandscapeExpandedBottomSheetDialogFragment;
|
||||
import ml.docilealligator.infinityforreddit.customviews.LandscapeExpandedRoundedBottomSheetDialogFragment;
|
||||
import ml.docilealligator.infinityforreddit.databinding.FragmentFlairBottomSheetBinding;
|
||||
import ml.docilealligator.infinityforreddit.events.FlairSelectedEvent;
|
||||
import ml.docilealligator.infinityforreddit.subreddit.FetchFlairs;
|
||||
@ -35,7 +35,7 @@ import ml.docilealligator.infinityforreddit.utils.Utils;
|
||||
import retrofit2.Retrofit;
|
||||
|
||||
|
||||
public class FlairBottomSheetFragment extends LandscapeExpandedBottomSheetDialogFragment {
|
||||
public class FlairBottomSheetFragment extends LandscapeExpandedRoundedBottomSheetDialogFragment {
|
||||
|
||||
public static final String EXTRA_SUBREDDIT_NAME = "ESN";
|
||||
public static final String EXTRA_VIEW_POST_DETAIL_FRAGMENT_ID = "EPFI";
|
||||
|
||||
@ -4,28 +4,18 @@ import android.os.Bundle;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.TextView;
|
||||
|
||||
import com.deishelon.roundedbottomsheet.RoundedBottomSheetDialogFragment;
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
import ml.docilealligator.infinityforreddit.R;
|
||||
import ml.docilealligator.infinityforreddit.customviews.LandscapeExpandedRoundedBottomSheetDialogFragment;
|
||||
import ml.docilealligator.infinityforreddit.databinding.FragmentKarmaInfoBottomSheetBinding;
|
||||
|
||||
public class KarmaInfoBottomSheetFragment extends RoundedBottomSheetDialogFragment {
|
||||
public class KarmaInfoBottomSheetFragment extends LandscapeExpandedRoundedBottomSheetDialogFragment {
|
||||
public static final String EXTRA_POST_KARMA = "EPK";
|
||||
public static final String EXTRA_COMMENT_KARMA = "ECK";
|
||||
public static final String EXTRA_AWARDER_KARMA = "EARK";
|
||||
public static final String EXTRA_AWARDEE_KARMA = "EAEK";
|
||||
|
||||
private int postKarma;
|
||||
private int commentKarma;
|
||||
private int awarderKarma;
|
||||
private int awardeeKarma;
|
||||
|
||||
public KarmaInfoBottomSheetFragment() {
|
||||
// Required empty public constructor
|
||||
}
|
||||
|
||||
|
||||
public static KarmaInfoBottomSheetFragment newInstance(int postKarma, int commentKarma, int awarderKarma, int awardeeKarma) {
|
||||
KarmaInfoBottomSheetFragment fragment = new KarmaInfoBottomSheetFragment();
|
||||
Bundle args = new Bundle();
|
||||
@ -37,27 +27,26 @@ public class KarmaInfoBottomSheetFragment extends RoundedBottomSheetDialogFragme
|
||||
return fragment;
|
||||
}
|
||||
|
||||
public KarmaInfoBottomSheetFragment() {
|
||||
// Required empty public constructor
|
||||
}
|
||||
|
||||
@Override
|
||||
public View onCreateView(LayoutInflater inflater, ViewGroup container,
|
||||
public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,
|
||||
Bundle savedInstanceState) {
|
||||
// Inflate the layout for this fragment
|
||||
View rootView = inflater.inflate(R.layout.fragment_karma_info_bottom_sheet, container, false);
|
||||
FragmentKarmaInfoBottomSheetBinding binding = FragmentKarmaInfoBottomSheetBinding.inflate(inflater, container, false);
|
||||
|
||||
postKarma = getArguments().getInt(EXTRA_POST_KARMA, 0);
|
||||
commentKarma = getArguments().getInt(EXTRA_COMMENT_KARMA, 0);
|
||||
awarderKarma = getArguments().getInt(EXTRA_AWARDER_KARMA, 0);
|
||||
awardeeKarma = getArguments().getInt(EXTRA_AWARDEE_KARMA, 0);
|
||||
int postKarma = getArguments().getInt(EXTRA_POST_KARMA, 0);
|
||||
int commentKarma = getArguments().getInt(EXTRA_COMMENT_KARMA, 0);
|
||||
int awarderKarma = getArguments().getInt(EXTRA_AWARDER_KARMA, 0);
|
||||
int awardeeKarma = getArguments().getInt(EXTRA_AWARDEE_KARMA, 0);
|
||||
|
||||
TextView postKarmaTextView = rootView.findViewById(R.id.post_karma_karma_info_bottom_sheet_fragment);
|
||||
TextView commentKarmaTextView = rootView.findViewById(R.id.comment_karma_karma_info_bottom_sheet_fragment);
|
||||
TextView awarderKarmaTextView = rootView.findViewById(R.id.awarder_karma_karma_info_bottom_sheet_fragment);
|
||||
TextView awardeeKarmaTextView = rootView.findViewById(R.id.awardee_karma_karma_info_bottom_sheet_fragment);
|
||||
binding.postKarmaKarmaInfoBottomSheetFragment.setText(Integer.toString(postKarma));
|
||||
binding.commentKarmaKarmaInfoBottomSheetFragment.setText(Integer.toString(commentKarma));
|
||||
binding.awarderKarmaKarmaInfoBottomSheetFragment.setText(Integer.toString(awarderKarma));
|
||||
binding.awardeeKarmaKarmaInfoBottomSheetFragment.setText(Integer.toString(awardeeKarma));
|
||||
|
||||
postKarmaTextView.setText(Integer.toString(postKarma));
|
||||
commentKarmaTextView.setText(Integer.toString(commentKarma));
|
||||
awarderKarmaTextView.setText(Integer.toString(awarderKarma));
|
||||
awardeeKarmaTextView.setText(Integer.toString(awardeeKarma));
|
||||
|
||||
return rootView;
|
||||
return binding.getRoot();
|
||||
}
|
||||
}
|
||||
@ -34,7 +34,6 @@ public class MultiRedditOptionsBottomSheetFragment extends LandscapeExpandedRoun
|
||||
// Required empty public constructor
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public View onCreateView(LayoutInflater inflater, ViewGroup container,
|
||||
Bundle savedInstanceState) {
|
||||
|
||||
@ -5,13 +5,12 @@ import android.os.Bundle;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.TextView;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
import ml.docilealligator.infinityforreddit.R;
|
||||
import ml.docilealligator.infinityforreddit.activities.PostGalleryActivity;
|
||||
import ml.docilealligator.infinityforreddit.customviews.LandscapeExpandedRoundedBottomSheetDialogFragment;
|
||||
import ml.docilealligator.infinityforreddit.databinding.FragmentSelectOrCaptureImageBottomSheetBinding;
|
||||
import ml.docilealligator.infinityforreddit.utils.Utils;
|
||||
|
||||
public class SelectOrCaptureImageBottomSheetFragment extends LandscapeExpandedRoundedBottomSheetDialogFragment {
|
||||
@ -26,26 +25,23 @@ public class SelectOrCaptureImageBottomSheetFragment extends LandscapeExpandedRo
|
||||
public View onCreateView(LayoutInflater inflater, ViewGroup container,
|
||||
Bundle savedInstanceState) {
|
||||
// Inflate the layout for this fragment
|
||||
View rootView = inflater.inflate(R.layout.fragment_select_or_capture_image_bottom_sheet, container, false);
|
||||
FragmentSelectOrCaptureImageBottomSheetBinding binding = FragmentSelectOrCaptureImageBottomSheetBinding.inflate(inflater, container, false);
|
||||
|
||||
TextView selectImageTextView = rootView.findViewById(R.id.select_image_text_view_select_or_capture_image_bottom_sheet_fragment);
|
||||
TextView captureImageTextView = rootView.findViewById(R.id.capture_image_text_view_select_or_capture_image_bottom_sheet_fragment);
|
||||
|
||||
selectImageTextView.setOnClickListener(view -> {
|
||||
binding.selectImageTextViewSelectOrCaptureImageBottomSheetFragment.setOnClickListener(view -> {
|
||||
mActivity.selectImage();
|
||||
dismiss();
|
||||
});
|
||||
|
||||
captureImageTextView.setOnClickListener(view -> {
|
||||
binding.captureImageTextViewSelectOrCaptureImageBottomSheetFragment.setOnClickListener(view -> {
|
||||
mActivity.captureImage();
|
||||
dismiss();
|
||||
});
|
||||
|
||||
if (mActivity.typeface != null) {
|
||||
Utils.setFontToAllTextViews(rootView, mActivity.typeface);
|
||||
Utils.setFontToAllTextViews(binding.getRoot(), mActivity.typeface);
|
||||
}
|
||||
|
||||
return rootView;
|
||||
return binding.getRoot();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@ -16,15 +16,12 @@ import android.widget.TextView;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
import com.google.android.material.button.MaterialButton;
|
||||
import com.google.android.material.textfield.TextInputEditText;
|
||||
import com.google.android.material.textfield.TextInputLayout;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
|
||||
import ml.docilealligator.infinityforreddit.R;
|
||||
import ml.docilealligator.infinityforreddit.activities.PostGalleryActivity;
|
||||
import ml.docilealligator.infinityforreddit.customviews.LandscapeExpandedRoundedBottomSheetDialogFragment;
|
||||
import ml.docilealligator.infinityforreddit.databinding.FragmentSetRedditGalleryItemCaptionAndUrlBottomSheetBinding;
|
||||
import ml.docilealligator.infinityforreddit.utils.Utils;
|
||||
|
||||
public class SetRedditGalleryItemCaptionAndUrlBottomSheetFragment extends LandscapeExpandedRoundedBottomSheetDialogFragment {
|
||||
@ -34,11 +31,6 @@ public class SetRedditGalleryItemCaptionAndUrlBottomSheetFragment extends Landsc
|
||||
public static final String EXTRA_URL = "EU";
|
||||
|
||||
private PostGalleryActivity mActivity;
|
||||
private TextInputLayout captionTextInputLayout;
|
||||
private TextInputEditText captionTextInputEditText;
|
||||
private TextInputLayout urlTextInputLayout;
|
||||
private TextInputEditText urlTextInputEditText;
|
||||
private MaterialButton okButton;
|
||||
|
||||
public SetRedditGalleryItemCaptionAndUrlBottomSheetFragment() {
|
||||
|
||||
@ -47,41 +39,35 @@ public class SetRedditGalleryItemCaptionAndUrlBottomSheetFragment extends Landsc
|
||||
@Nullable
|
||||
@Override
|
||||
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
|
||||
View rootView = inflater.inflate(R.layout.fragment_set_reddit_gallery_item_caption_and_url_bottom_sheet, container, false);
|
||||
|
||||
captionTextInputLayout = rootView.findViewById(R.id.caption_text_input_layout_set_reddit_gallery_item_caption_and_url_bottom_sheet_fragment);
|
||||
captionTextInputEditText = rootView.findViewById(R.id.caption_text_input_edit_text_set_reddit_gallery_item_caption_and_url_bottom_sheet_fragment);
|
||||
urlTextInputLayout = rootView.findViewById(R.id.url_text_input_layout_set_reddit_gallery_item_caption_and_url_bottom_sheet_fragment);
|
||||
urlTextInputEditText = rootView.findViewById(R.id.url_text_input_edit_text_set_reddit_gallery_item_caption_and_url_bottom_sheet_fragment);
|
||||
okButton = rootView.findViewById(R.id.ok_button_set_reddit_gallery_item_caption_and_url_bottom_sheet_fragment);
|
||||
FragmentSetRedditGalleryItemCaptionAndUrlBottomSheetBinding binding = FragmentSetRedditGalleryItemCaptionAndUrlBottomSheetBinding.inflate(inflater, container, false);
|
||||
|
||||
int primaryTextColor = mActivity.getResources().getColor(R.color.primaryTextColor);
|
||||
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
|
||||
captionTextInputLayout.setCursorColor(ColorStateList.valueOf(primaryTextColor));
|
||||
urlTextInputLayout.setCursorColor(ColorStateList.valueOf(primaryTextColor));
|
||||
binding.captionTextInputLayoutSetRedditGalleryItemCaptionAndUrlBottomSheetFragment.setCursorColor(ColorStateList.valueOf(primaryTextColor));
|
||||
binding.urlTextInputLayoutSetRedditGalleryItemCaptionAndUrlBottomSheetFragment.setCursorColor(ColorStateList.valueOf(primaryTextColor));
|
||||
} else {
|
||||
setCursorDrawableColor(captionTextInputEditText, primaryTextColor);
|
||||
setCursorDrawableColor(urlTextInputEditText, primaryTextColor);
|
||||
setCursorDrawableColor(binding.captionTextInputEditTextSetRedditGalleryItemCaptionAndUrlBottomSheetFragment, primaryTextColor);
|
||||
setCursorDrawableColor(binding.urlTextInputEditTextSetRedditGalleryItemCaptionAndUrlBottomSheetFragment, primaryTextColor);
|
||||
}
|
||||
|
||||
int position = getArguments().getInt(EXTRA_POSITION, -1);
|
||||
String caption = getArguments().getString(EXTRA_CAPTION, "");
|
||||
String url = getArguments().getString(EXTRA_URL, "");
|
||||
|
||||
captionTextInputEditText.setText(caption);
|
||||
urlTextInputEditText.setText(url);
|
||||
binding.captionTextInputEditTextSetRedditGalleryItemCaptionAndUrlBottomSheetFragment.setText(caption);
|
||||
binding.urlTextInputEditTextSetRedditGalleryItemCaptionAndUrlBottomSheetFragment.setText(url);
|
||||
|
||||
okButton.setOnClickListener(view -> {
|
||||
mActivity.setCaptionAndUrl(position, captionTextInputEditText.getText().toString(), urlTextInputEditText.getText().toString());
|
||||
binding.okButtonSetRedditGalleryItemCaptionAndUrlBottomSheetFragment.setOnClickListener(view -> {
|
||||
mActivity.setCaptionAndUrl(position, binding.captionTextInputEditTextSetRedditGalleryItemCaptionAndUrlBottomSheetFragment.getText().toString(), binding.urlTextInputEditTextSetRedditGalleryItemCaptionAndUrlBottomSheetFragment.getText().toString());
|
||||
dismiss();
|
||||
});
|
||||
|
||||
if (mActivity.typeface != null) {
|
||||
Utils.setFontToAllTextViews(rootView, mActivity.typeface);
|
||||
Utils.setFontToAllTextViews(binding.getRoot(), mActivity.typeface);
|
||||
}
|
||||
|
||||
return rootView;
|
||||
return binding.getRoot();
|
||||
}
|
||||
|
||||
private void setCursorDrawableColor(EditText editText, int color) {
|
||||
|
||||
@ -1,16 +0,0 @@
|
||||
package ml.docilealligator.infinityforreddit.customviews;
|
||||
|
||||
import android.view.View;
|
||||
|
||||
import com.google.android.material.bottomsheet.BottomSheetBehavior;
|
||||
import com.google.android.material.bottomsheet.BottomSheetDialogFragment;
|
||||
|
||||
public class LandscapeExpandedBottomSheetDialogFragment extends BottomSheetDialogFragment {
|
||||
@Override
|
||||
public void onStart() {
|
||||
super.onStart();
|
||||
View parentView = (View) requireView().getParent();
|
||||
BottomSheetBehavior.from(parentView).setState(BottomSheetBehavior.STATE_EXPANDED);
|
||||
BottomSheetBehavior.from(parentView).setSkipCollapsed(true);
|
||||
}
|
||||
}
|
||||
@ -2,10 +2,10 @@ package ml.docilealligator.infinityforreddit.customviews;
|
||||
|
||||
import android.view.View;
|
||||
|
||||
import com.deishelon.roundedbottomsheet.RoundedBottomSheetDialogFragment;
|
||||
import com.google.android.material.bottomsheet.BottomSheetBehavior;
|
||||
import com.google.android.material.bottomsheet.BottomSheetDialogFragment;
|
||||
|
||||
public class LandscapeExpandedRoundedBottomSheetDialogFragment extends RoundedBottomSheetDialogFragment {
|
||||
public class LandscapeExpandedRoundedBottomSheetDialogFragment extends BottomSheetDialogFragment {
|
||||
@Override
|
||||
public void onStart() {
|
||||
super.onStart();
|
||||
|
||||
@ -71,9 +71,6 @@ public class AcknowledgementFragment extends Fragment {
|
||||
acknowledgements.add(new Acknowledgement("Customized and Expandable TextView",
|
||||
"Simple library to change the Textview as rectangle, circle and square shapes",
|
||||
Uri.parse("https://github.com/Rajagopalr3/CustomizedTextView")));
|
||||
acknowledgements.add(new Acknowledgement("Rounded Bottom Sheet",
|
||||
"Bottom sheet with rounded corners",
|
||||
Uri.parse("https://github.com/Deishelon/RoundedBottomSheet")));
|
||||
acknowledgements.add(new Acknowledgement("Bridge",
|
||||
"A library for avoiding TransactionTooLargeException during state saving and restoration",
|
||||
Uri.parse("https://github.com/livefront/bridge")));
|
||||
|
||||
@ -1,15 +1,27 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
tools:context=".bottomsheetfragments.AccountChooserBottomSheetFragment">
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recycler_view_account_chooser_bottom_sheet_fragment"
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
|
||||
android:orientation="vertical">
|
||||
|
||||
</FrameLayout>
|
||||
<com.google.android.material.bottomsheet.BottomSheetDragHandleView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recycler_view_account_chooser_bottom_sheet_fragment"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
||||
android:nestedScrollingEnabled="false" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</ScrollView>
|
||||
@ -11,6 +11,10 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.google.android.material.bottomsheet.BottomSheetDragHandleView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/edit_text_view_comment_filter_options_bottom_sheet_fragment"
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@ -11,6 +11,10 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.google.android.material.bottomsheet.BottomSheetDragHandleView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/edit_text_view_comment_filter_usage_options_bottom_sheet_fragment"
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@ -10,6 +10,10 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.google.android.material.bottomsheet.BottomSheetDragHandleView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/edit_text_view_comment_more_bottom_sheet_fragment"
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@ -12,6 +12,10 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.google.android.material.bottomsheet.BottomSheetDragHandleView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/copy_raw_text_text_view_copy_text_bottom_sheet_fragment"
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@ -10,6 +10,10 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.google.android.material.bottomsheet.BottomSheetDragHandleView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/import_theme_text_view_create_theme_bottom_sheet_fragment"
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@ -10,6 +10,10 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.google.android.material.bottomsheet.BottomSheetDragHandleView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/theme_name_text_view_custom_theme_options_bottom_sheet_fragment"
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@ -11,6 +11,10 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.google.android.material.bottomsheet.BottomSheetDragHandleView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/submit_post_text_view_fab_more_options_bottom_sheet_fragment"
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@ -11,6 +11,10 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.google.android.material.bottomsheet.BottomSheetDragHandleView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/filter_text_view_filtered_thing_fab_more_options_bottom_sheet_fragment"
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<?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:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
@ -7,28 +7,40 @@
|
||||
android:orientation="vertical"
|
||||
tools:application=".FlairBottomSheetFragment">
|
||||
|
||||
<com.google.android.material.loadingindicator.LoadingIndicator
|
||||
android:id="@+id/progress_bar_flair_bottom_sheet_fragment"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="36dp"
|
||||
android:layout_gravity="center" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/error_text_view_flair_bottom_sheet_fragment"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:gravity="center"
|
||||
android:padding="48dp"
|
||||
android:visibility="gone"
|
||||
android:textSize="?attr/font_default"
|
||||
android:fontFamily="?attr/font_family" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recycler_view_bottom_sheet_fragment"
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
app:layoutManager="ml.docilealligator.infinityforreddit.customviews.LinearLayoutManagerBugFixed" />
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
</LinearLayout>
|
||||
<com.google.android.material.bottomsheet.BottomSheetDragHandleView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<com.google.android.material.loadingindicator.LoadingIndicator
|
||||
android:id="@+id/progress_bar_flair_bottom_sheet_fragment"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="36dp"
|
||||
android:layout_gravity="center" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/error_text_view_flair_bottom_sheet_fragment"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:gravity="center"
|
||||
android:padding="48dp"
|
||||
android:visibility="gone"
|
||||
android:textSize="?attr/font_default"
|
||||
android:fontFamily="?attr/font_family" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recycler_view_bottom_sheet_fragment"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
app:layoutManager="ml.docilealligator.infinityforreddit.customviews.LinearLayoutManagerBugFixed"
|
||||
android:nestedScrollingEnabled="false" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</ScrollView>
|
||||
@ -10,6 +10,10 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.google.android.material.bottomsheet.BottomSheetDragHandleView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<pl.droidsonroids.gif.GifImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
@ -10,6 +10,10 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.google.android.material.bottomsheet.BottomSheetDragHandleView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
@ -6,6 +6,10 @@
|
||||
android:orientation="vertical"
|
||||
tools:context=".bottomsheetfragments.KarmaInfoBottomSheetFragment">
|
||||
|
||||
<com.google.android.material.bottomsheet.BottomSheetDragHandleView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
@ -10,6 +10,10 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.google.android.material.bottomsheet.BottomSheetDragHandleView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/copy_multi_reddit_path_text_view_multi_reddit_options_bottom_sheet_fragment"
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@ -11,6 +11,10 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.google.android.material.bottomsheet.BottomSheetDragHandleView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/subreddit_text_view_new_comment_filter_usage_bottom_sheet_fragment"
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@ -11,6 +11,10 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.google.android.material.bottomsheet.BottomSheetDragHandleView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/home_text_view_new_post_filter_usage_bottom_sheet_fragment"
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@ -10,6 +10,10 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.google.android.material.bottomsheet.BottomSheetDragHandleView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/playback_speed_025_text_view_playback_speed_bottom_sheet_fragment"
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@ -11,6 +11,10 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.google.android.material.bottomsheet.BottomSheetDragHandleView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/best_type_text_view_post_comment_sort_type_bottom_sheet_fragment"
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@ -11,6 +11,10 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.google.android.material.bottomsheet.BottomSheetDragHandleView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/edit_text_view_post_filter_options_bottom_sheet_fragment"
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@ -11,6 +11,10 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.google.android.material.bottomsheet.BottomSheetDragHandleView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/edit_text_view_post_filter_usage_options_bottom_sheet_fragment"
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@ -12,6 +12,10 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.google.android.material.bottomsheet.BottomSheetDragHandleView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/card_layout_text_view_post_layout_bottom_sheet_fragment"
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@ -11,6 +11,10 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.google.android.material.bottomsheet.BottomSheetDragHandleView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
android:id="@+id/comment_text_view_post_options_bottom_sheet_fragment"
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@ -10,6 +10,10 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.google.android.material.bottomsheet.BottomSheetDragHandleView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/text_type_linear_layout_post_type_bottom_sheet_fragment"
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@ -10,6 +10,10 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.google.android.material.bottomsheet.BottomSheetDragHandleView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/random_subreddit_text_view_random_bottom_sheet_fragment"
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@ -11,6 +11,10 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.google.android.material.bottomsheet.BottomSheetDragHandleView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
android:id="@+id/relevance_type_text_view_search_sort_type_bottom_sheet_fragment"
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@ -10,6 +10,10 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.google.android.material.bottomsheet.BottomSheetDragHandleView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/relevance_type_text_view_search_user_and_subreddit_sort_type_bottom_sheet_fragment"
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@ -10,6 +10,10 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.google.android.material.bottomsheet.BottomSheetDragHandleView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/select_image_text_view_select_or_capture_image_bottom_sheet_fragment"
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@ -10,6 +10,10 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.google.android.material.bottomsheet.BottomSheetDragHandleView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/select_subreddits_text_view_search_user_and_subreddit_sort_type_bottom_sheet_fragment"
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@ -10,6 +10,10 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.google.android.material.bottomsheet.BottomSheetDragHandleView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/home_screen_text_view_set_as_wallpaper_bottom_sheet_fragment"
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@ -11,6 +11,10 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.google.android.material.bottomsheet.BottomSheetDragHandleView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<com.google.android.material.textfield.TextInputLayout
|
||||
android:id="@+id/caption_text_input_layout_set_reddit_gallery_item_caption_and_url_bottom_sheet_fragment"
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@ -10,6 +10,10 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.google.android.material.bottomsheet.BottomSheetDragHandleView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/post_link_text_view_share_link_bottom_sheet_fragment"
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@ -12,6 +12,10 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.google.android.material.bottomsheet.BottomSheetDragHandleView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/hour_text_view_sort_time_bottom_sheet_fragment"
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@ -11,6 +11,10 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.google.android.material.bottomsheet.BottomSheetDragHandleView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
android:id="@+id/best_type_text_view_sort_type_bottom_sheet_fragment"
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@ -11,6 +11,10 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.google.android.material.bottomsheet.BottomSheetDragHandleView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
@ -12,6 +12,10 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.google.android.material.bottomsheet.BottomSheetDragHandleView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/link_text_view_url_menu_bottom_sheet_fragment"
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@ -6,6 +6,10 @@
|
||||
android:orientation="vertical"
|
||||
android:paddingBottom="8dp">
|
||||
|
||||
<com.google.android.material.bottomsheet.BottomSheetDragHandleView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
android:id="@+id/new_type_text_view_user_thing_sort_type_bottom_sheet_fragment"
|
||||
android:layout_width="match_parent"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user