|
|
@@ -43,6 +43,8 @@ import com.bumptech.glide.Glide;
|
|
|
import com.bumptech.glide.RequestBuilder;
|
|
|
import com.bumptech.glide.request.RequestOptions;
|
|
|
import com.google.gson.Gson;
|
|
|
+import com.jcodecraeer.xrecyclerview.CustomFooterViewCallBack;
|
|
|
+import com.jcodecraeer.xrecyclerview.XRecyclerView;
|
|
|
import com.kfzs.duanduan.fragment.FgtPersonalCenter;
|
|
|
import com.sheep.gamegroup.dateview.DatePickerDialog;
|
|
|
import com.sheep.gamegroup.dateview.DateUtil;
|
|
|
@@ -443,6 +445,35 @@ public class ViewUtil {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ public static void setBootomLine(XRecyclerView view_list) {
|
|
|
+ View view = LayoutInflater.from(SheepApp.getInstance()).inflate(R.layout.common_foot_view, null);
|
|
|
+ view_list.setFootView(view, new CustomFooterViewCallBack() {
|
|
|
+ @Override
|
|
|
+ public void onLoadingMore(View yourFooterView) {
|
|
|
+ TextView bottom_line_text = yourFooterView.findViewById(R.id.bottom_line_text);
|
|
|
+ bottom_line_text.setText("羊羊努力加载中...");
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void onLoadMoreComplete(View yourFooterView) {
|
|
|
+ TextView bottom_line_text = yourFooterView.findViewById(R.id.bottom_line_text);
|
|
|
+ bottom_line_text.setText("羊羊努力加载中...");
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void onSetNoMore(View yourFooterView, boolean noMore) {
|
|
|
+ TextView bottom_line_text = yourFooterView.findViewById(R.id.bottom_line_text);
|
|
|
+ bottom_line_text.setText("我是有底线的,点击我回到顶部");
|
|
|
+ yourFooterView.setOnClickListener(new View.OnClickListener() {
|
|
|
+ @Override
|
|
|
+ public void onClick(View view) {
|
|
|
+ view_list.scrollToPosition(0);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* popwindow消失监听类,消失恢复window透明度
|
|
|
*/
|