|
|
@@ -198,6 +198,7 @@ public class FgtSmallSheep extends BaseFragment implements SmallSheepContract.Vi
|
|
|
TextView test_change_user;
|
|
|
@BindView(R.id.list_title)
|
|
|
LinearLayout listTitle;
|
|
|
+ @BindView(R.id.title_car)
|
|
|
LinearLayout titleCardLayout;
|
|
|
/* 记录滑动坐标的数组 */
|
|
|
int[] locate = new int[2];
|
|
|
@@ -546,7 +547,7 @@ public class FgtSmallSheep extends BaseFragment implements SmallSheepContract.Vi
|
|
|
*/
|
|
|
@SuppressLint("InflateParams")
|
|
|
private void initTitleCardLayout(final Context context) {
|
|
|
- titleCardLayout = (LinearLayout) LayoutInflater.from(context).inflate(R.layout.view_float_title_card, null);
|
|
|
+// titleCardLayout = (LinearLayout) LayoutInflater.from(context).inflate(R.layout.view_float_title_card, null);
|
|
|
doIt = titleCardLayout.findViewById(R.id.do_it_text);
|
|
|
willStart = titleCardLayout.findViewById(R.id.will_start_text);
|
|
|
doItLine = titleCardLayout.findViewById(R.id.do_it_every_day_line);
|
|
|
@@ -573,7 +574,7 @@ public class FgtSmallSheep extends BaseFragment implements SmallSheepContract.Vi
|
|
|
willStartClick();
|
|
|
}
|
|
|
});
|
|
|
- ((ViewGroup) activity.getWindow().getDecorView()).addView(titleCardLayout);
|
|
|
+// ((ViewGroup) activity.getWindow().getDecorView()).addView(titleCardLayout);
|
|
|
titleCardLayout.setVisibility(View.GONE);
|
|
|
}
|
|
|
|
|
|
@@ -758,7 +759,7 @@ public class FgtSmallSheep extends BaseFragment implements SmallSheepContract.Vi
|
|
|
public void onScrollChange(NestedScrollView nestedScrollView, int i, int i1, int i2, int i3) {
|
|
|
listTitle.getLocationInWindow(locate);
|
|
|
if (locate[1] < 0 && titleCardLayout.getVisibility() == View.GONE) {
|
|
|
-// titleCardLayout.setVisibility(View.VISIBLE);
|
|
|
+ titleCardLayout.setVisibility(View.VISIBLE);
|
|
|
} else if (locate[1] > 20 && titleCardLayout.getVisibility() == View.VISIBLE) {
|
|
|
titleCardLayout.setVisibility(View.GONE);
|
|
|
}
|
|
|
@@ -1323,6 +1324,9 @@ public class FgtSmallSheep extends BaseFragment implements SmallSheepContract.Vi
|
|
|
|
|
|
@Override
|
|
|
public void onPause() {
|
|
|
+ if(titleCardLayout != null){
|
|
|
+ titleCardLayout.setVisibility(View.GONE);
|
|
|
+ }
|
|
|
super.onPause();
|
|
|
if (upview1 != null) {
|
|
|
//停止滚动
|
|
|
@@ -1332,9 +1336,6 @@ public class FgtSmallSheep extends BaseFragment implements SmallSheepContract.Vi
|
|
|
//停止滚动
|
|
|
homepageItemNoticeMv.stopFlipping();
|
|
|
}
|
|
|
- if(titleCardLayout != null){
|
|
|
- titleCardLayout.setVisibility(View.GONE);
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
private void invite(final List<MoreDataEntity> moreDataEntityList) {
|