|
|
@ -76,7 +76,6 @@ import android.widget.Button;
|
|
|
|
import android.widget.CheckBox;
|
|
|
|
import android.widget.CheckBox;
|
|
|
|
import android.widget.CompoundButton;
|
|
|
|
import android.widget.CompoundButton;
|
|
|
|
import android.widget.ImageButton;
|
|
|
|
import android.widget.ImageButton;
|
|
|
|
import android.widget.ImageView;
|
|
|
|
|
|
|
|
import android.widget.SeekBar;
|
|
|
|
import android.widget.SeekBar;
|
|
|
|
import android.widget.Spinner;
|
|
|
|
import android.widget.Spinner;
|
|
|
|
import android.widget.TextView;
|
|
|
|
import android.widget.TextView;
|
|
|
@ -193,8 +192,6 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|
|
|
private FixedRecyclerView rvMessage;
|
|
|
|
private FixedRecyclerView rvMessage;
|
|
|
|
private View vwAnchor;
|
|
|
|
private View vwAnchor;
|
|
|
|
private SeekBar sbThread;
|
|
|
|
private SeekBar sbThread;
|
|
|
|
private ImageView ivLeft;
|
|
|
|
|
|
|
|
private ImageView ivRight;
|
|
|
|
|
|
|
|
private ImageButton ibDown;
|
|
|
|
private ImageButton ibDown;
|
|
|
|
private ImageButton ibUp;
|
|
|
|
private ImageButton ibUp;
|
|
|
|
private ImageButton ibSeen;
|
|
|
|
private ImageButton ibSeen;
|
|
|
@ -384,8 +381,6 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|
|
|
rvMessage = view.findViewById(R.id.rvMessage);
|
|
|
|
rvMessage = view.findViewById(R.id.rvMessage);
|
|
|
|
vwAnchor = view.findViewById(R.id.vwAnchor);
|
|
|
|
vwAnchor = view.findViewById(R.id.vwAnchor);
|
|
|
|
sbThread = view.findViewById(R.id.sbThread);
|
|
|
|
sbThread = view.findViewById(R.id.sbThread);
|
|
|
|
ivLeft = view.findViewById(R.id.ivLeft);
|
|
|
|
|
|
|
|
ivRight = view.findViewById(R.id.ivRight);
|
|
|
|
|
|
|
|
ibDown = view.findViewById(R.id.ibDown);
|
|
|
|
ibDown = view.findViewById(R.id.ibDown);
|
|
|
|
ibUp = view.findViewById(R.id.ibUp);
|
|
|
|
ibUp = view.findViewById(R.id.ibUp);
|
|
|
|
ibSeen = view.findViewById(R.id.ibSeen);
|
|
|
|
ibSeen = view.findViewById(R.id.ibSeen);
|
|
|
@ -987,8 +982,6 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|
|
|
tvNoEmail.setVisibility(View.GONE);
|
|
|
|
tvNoEmail.setVisibility(View.GONE);
|
|
|
|
tvNoEmailHint.setVisibility(View.GONE);
|
|
|
|
tvNoEmailHint.setVisibility(View.GONE);
|
|
|
|
sbThread.setVisibility(View.GONE);
|
|
|
|
sbThread.setVisibility(View.GONE);
|
|
|
|
ivLeft.setVisibility(View.GONE);
|
|
|
|
|
|
|
|
ivRight.setVisibility(View.GONE);
|
|
|
|
|
|
|
|
ibDown.setVisibility(View.GONE);
|
|
|
|
ibDown.setVisibility(View.GONE);
|
|
|
|
ibUp.setVisibility(View.GONE);
|
|
|
|
ibUp.setVisibility(View.GONE);
|
|
|
|
ibSeen.setVisibility(View.GONE);
|
|
|
|
ibSeen.setVisibility(View.GONE);
|
|
|
@ -1059,7 +1052,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|
|
|
|
|
|
|
|
|
|
|
final SwipeListener swipeListener = new SwipeListener(getContext(), new SwipeListener.ISwipeListener() {
|
|
|
|
final SwipeListener swipeListener = new SwipeListener(getContext(), new SwipeListener.ISwipeListener() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean onSwipedRight() {
|
|
|
|
public boolean onSwipeRight() {
|
|
|
|
if (prev == null) {
|
|
|
|
if (prev == null) {
|
|
|
|
Animation bounce = AnimationUtils.loadAnimation(getContext(), R.anim.bounce_right);
|
|
|
|
Animation bounce = AnimationUtils.loadAnimation(getContext(), R.anim.bounce_right);
|
|
|
|
view.startAnimation(bounce);
|
|
|
|
view.startAnimation(bounce);
|
|
|
@ -1070,7 +1063,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean onSwipedLeft() {
|
|
|
|
public boolean onSwipeLeft() {
|
|
|
|
if (next == null) {
|
|
|
|
if (next == null) {
|
|
|
|
Animation bounce = AnimationUtils.loadAnimation(getContext(), R.anim.bounce_left);
|
|
|
|
Animation bounce = AnimationUtils.loadAnimation(getContext(), R.anim.bounce_left);
|
|
|
|
view.startAnimation(bounce);
|
|
|
|
view.startAnimation(bounce);
|
|
|
@ -1079,24 +1072,6 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|
|
|
|
|
|
|
|
|
|
|
return (next != null);
|
|
|
|
return (next != null);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public void onSwipingLeft() {
|
|
|
|
|
|
|
|
ivLeft.setVisibility(View.VISIBLE);
|
|
|
|
|
|
|
|
ivRight.setVisibility(View.GONE);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public void onSwipingRight() {
|
|
|
|
|
|
|
|
ivLeft.setVisibility(View.GONE);
|
|
|
|
|
|
|
|
ivRight.setVisibility(View.VISIBLE);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public void onCancel() {
|
|
|
|
|
|
|
|
ivLeft.setVisibility(View.GONE);
|
|
|
|
|
|
|
|
ivRight.setVisibility(View.GONE);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
rvMessage.addOnItemTouchListener(new RecyclerView.OnItemTouchListener() {
|
|
|
|
rvMessage.addOnItemTouchListener(new RecyclerView.OnItemTouchListener() {
|
|
|
|