Administrator
2021-11-06 9178a17fda334ae4fb1df7ddefcdae9bbc40400b
app/src/main/java/com/duqing/missions/ui/main/hall/SubHallFragment.java
@@ -1,9 +1,14 @@
package com.duqing.missions.ui.main.hall;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import com.duqing.missions.base.fragments.BaseLoadPageFragment;
import com.duqing.missions.data.BasePageResult;
import com.duqing.missions.databinding.FragmentSubHallBinding;
import com.duqing.missions.databinding.RefreshRecyclerBinding;
import com.duqing.missions.databinding.HallPopuClassifyBinding;
import com.duqing.missions.ui.main.hall.popup.PopupClassify;
import com.duqing.missions.ui.main.home.adapter.MissionAdapter;
/**
@@ -11,10 +16,17 @@
 */
public class SubHallFragment extends BaseLoadPageFragment<FragmentSubHallBinding,SubHallViewModel, MissionAdapter, BasePageResult<String>> {
    @Override
    public void initViews() {
        super.initViews();
        final RefreshRecyclerBinding includeRefreshRecycler = binding.includeRefreshRecycler;
        binding.txtClassify.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                new PopupClassify(getContext(), HallPopuClassifyBinding.inflate((LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE))).showAsDropDown(v);
            }
        });
    }
}