| | |
| | | View view = getLayoutInflater().inflate(R.layout.item_share_from_filter, |
| | | null, false); |
| | | // 创建PopupWindow实例,200,150分别是宽度和高度 |
| | | mTopRightPopupWindow = new PopupWindow(view, (int) (SystemCommon.getScreenWidth(this) / 2), ViewGroup.LayoutParams.WRAP_CONTENT, true); |
| | | mTopRightPopupWindow = new PopupWindow(view, (int) (SystemCommon.getScreenWidth(this) / 3), ViewGroup.LayoutParams.WRAP_CONTENT, true); |
| | | // 设置动画效果 [R.style.AnimationFade 是自己事先定义好的] |
| | | // pw_filter.setAnimationStyle(R.style.pop_multiple); |
| | | mTopRightPopupWindow.setTouchable(true); |
| | | mTopRightPopupWindow.setOutsideTouchable(false); |
| | | mTopRightPopupWindow.setFocusable(false); |
| | | ListView lv = view.findViewById(R.id.lv_filter_pw); |
| | | mulList.add(new TopMenuRightPopContent("查看全部", R.drawable.ic_gold_desc_all)); |
| | | mulList.add(new TopMenuRightPopContent("只看收入", R.drawable.icon_menu_shouru)); |
| | | mulList.add(new TopMenuRightPopContent("只看支出", R.drawable.icon_menu_zhichu)); |
| | | mulList.add(new TopMenuRightPopContent("查看全部", null)); |
| | | mulList.add(new TopMenuRightPopContent("只看收入", null)); |
| | | mulList.add(new TopMenuRightPopContent("只看支出",null)); |
| | | |
| | | shareFromAdapter = new TopMenuRightPopContentAdapter(this, mulList); |
| | | lv.setAdapter(shareFromAdapter); |
| | |
| | | if (mList.size() == count) { |
| | | bottom.setVisibility(View.VISIBLE); |
| | | iv_loading.setVisibility(View.GONE); |
| | | tv_loading.setText("-到底了*^_^*-"); |
| | | tv_loading.setText(getResources().getString(R.string.list_no_more)); |
| | | } else { |
| | | bottom.setVisibility(View.GONE); |
| | | } |