|
|
@@ -19,6 +19,7 @@ import java.util.List;
|
|
|
import kr.co.zumo.app.R;
|
|
|
import kr.co.zumo.app.lifeplus.bean.api.CoinInfoBean;
|
|
|
import kr.co.zumo.app.lifeplus.helper.ActionBarHelper;
|
|
|
+import kr.co.zumo.app.lifeplus.util.ResourceUtil;
|
|
|
import kr.co.zumo.app.lifeplus.view.Event;
|
|
|
import kr.co.zumo.app.lifeplus.view.IEventListener;
|
|
|
import kr.co.zumo.app.lifeplus.view.screen.FragmentBase;
|
|
|
@@ -39,6 +40,7 @@ public class MyCoinDetailFragment extends FragmentBase<MyCoinDetailPresenter> im
|
|
|
private RecyclerView recyclerViewCoinList;
|
|
|
private ConstraintLayout layoutFilterContents;
|
|
|
private RelativeLayout filterDivider;
|
|
|
+ private TextView textResultNumber;
|
|
|
private View viewDivider;
|
|
|
private View viewWhiteDivider;
|
|
|
private ImageView imageViewCoinInformationDialog;
|
|
|
@@ -65,6 +67,7 @@ public class MyCoinDetailFragment extends FragmentBase<MyCoinDetailPresenter> im
|
|
|
filterDivider = findViewById(R.id.filter_divider);
|
|
|
imageViewCoinInformationDialog = findViewById(R.id.image_view_coin_information_pop_up);
|
|
|
|
|
|
+ textResultNumber = findViewById(R.id.text_result_number);
|
|
|
textCoinValue = findViewById(R.id.text_view_coin_detail);
|
|
|
textExpiringCoinValue = findViewById(R.id.text_expiring_coin);
|
|
|
textViewExtinctCoin = findViewById(R.id.text_view_extinct_coin);
|
|
|
@@ -140,13 +143,21 @@ public class MyCoinDetailFragment extends FragmentBase<MyCoinDetailPresenter> im
|
|
|
|
|
|
@Override
|
|
|
public void drawList(List<CoinInfoBean> coinInfoBeans) {
|
|
|
+ if (null != coinInfoBeans) {
|
|
|
|
|
|
- adapter = new MyCoinDetailAdapter(getActivity(), coinInfoBeans, new IEventListener() {
|
|
|
- @Override
|
|
|
- public void onEvent(Event event) {
|
|
|
+ textResultNumber.setText(ResourceUtil.getString(R.string.list_result, coinInfoBeans.size()));
|
|
|
|
|
|
- }
|
|
|
- });
|
|
|
- recyclerViewCoinList.setAdapter(adapter);
|
|
|
+ adapter = new MyCoinDetailAdapter(getActivity(), coinInfoBeans, new IEventListener() {
|
|
|
+ @Override
|
|
|
+ public void onEvent(Event event) {
|
|
|
+
|
|
|
+ }
|
|
|
+ });
|
|
|
+ recyclerViewCoinList.setAdapter(adapter);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ textResultNumber.setText(ResourceUtil.getString(R.string.list_result, 0));
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
}
|