DropDownMenu icon indicating copy to clipboard operation
DropDownMenu copied to clipboard

请教一下,怎么结合SwipeRefreshLayout完成列表刷新

Open mingmingacc opened this issue 9 years ago • 2 comments

您好,我有一个疑问,就是内容区域加入一个ListView,怎么结合SwipeRefrshLayout实现列表刷新呢?

mingmingacc avatar Jan 06 '17 04:01 mingmingacc

你好:

内容区可以添加一个布局,也就是xml文件,比如这样:

将布局文件添加至内容区 ,那么这个时候,你就可以随心所欲了,也就是内容区 你随便怎么写都可以

希望我解答了你的问题

欢迎关注我的微信公共号:AppCode

以后有什么问题 可以在公共号里直接 提问

谢谢

原始邮件 发件人:[email protected] 收件人:FussenYu/[email protected] 抄送:[email protected] 发送时间:2017年1月6日(周五) 12:11 主题:[FussenYu/DropDownMenu] 请教一下,怎么结合SwipeRefreshLayout完成列表刷新 (#2)

您好,我有一个疑问,就是内容区域加入一个ListView,怎么结合SwipeRefrshLayout实现列表刷新呢? — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

lawdao avatar Jan 06 '17 05:01 lawdao

你好:

内容区可以添加一个布局,也就是xml文件,比如这样:

 ```

//init content view

    View contentView = View.inflate(UiUtils.getContext(), R.layout.view_content, null);

    waterListView = (WaterDropListView) contentView.findViewById(R.id.list_view);

    et_search = (SearchEditText) contentView.findViewById(R.id.et_search);

    view_null = contentView.findViewById(R.id.view_null);
    text_null = (TextView) contentView.findViewById(R.id.text_null);

    waterListView.setPullLoadEnable(true);
    waterListView.setOverScrollMode(View.OVER_SCROLL_NEVER);
    waterListView.setAdapter(materialAdapter);
    waterListView.setOnItemClickListener(this);
    waterListView.setWaterDropListViewListener(this);


    et_search.setOnSearchClickListener(this);

    //init dropdownview

    mDropDownMenu.setDropDownMenu(Arrays.asList(headers), popupViews, contentView);



将布局文件添加至内容区 ,那么这个时候,你就可以随心所欲了,也就是内容区 你随便怎么写都可以

希望我解答了你的问题

欢迎关注我的微信公共号:AppCode

以后有什么问题 可以在公共号里直接 提问

谢谢

lawdao avatar Jan 06 '17 05:01 lawdao