Android仿拉手网团购App我的收藏界面实例代码

Android仿拉手网团购App我的收藏界面实例代码,第1张

概述先给大家展示效果图,如果感觉还不错,请参考实例代码效果图如下所示:具体代码如下:

先给大家展示效果图,如果感觉还不错,请参考实例代码

效果图如下所示:

具体代码如下:

private voID initData() { BmobManager.getInstance(new BmobqueryCallback() {  @OverrIDe  public voID onquerySuccess(List<? extends BaseModel> dataList) {   mDataList.clear();   List<FavorModel> List = (List<FavorModel>) dataList;   if (List == null || List.size()==0) {    mListVIEw.setVisibility(VIEw.GONE);    mErrorLayout.setVisibility(VIEw.VISIBLE);   } else {    mDataList.addAll(List);    mAdapter.notifyDataSetChanged();    mListVIEw.setVisibility(VIEw.VISIBLE);    mErrorLayout.setVisibility(VIEw.GONE);   }  }  @OverrIDe  public voID onqueryFailure(BmobException e) {   mListVIEw.setVisibility(VIEw.GONE);   mErrorLayout.setVisibility(VIEw.VISIBLE);  } }).queryFavorData(AppConstant.KEY_USER_ID,User.getCurrentUser().getobjectID());}

activity_collect.xml

<?xml version="1.0" enCoding="utf-8"?><linearLayout xmlns:androID="http://schemas.androID.com/apk/res/androID" xmlns:tools="http://schemas.androID.com/tools" androID:layout_wIDth="match_parent" androID:layout_height="match_parent" androID:orIEntation="vertical" androID:background="@color/bg_common_gray" tools:context="com.myxh.coolshopPing.ui.activity.CollectActivity"> <relativeLayout  androID:layout_wIDth="match_parent"  androID:layout_height="@dimen/common_Titlebar_height"  androID:background="@color/Title_bar_color">  <ImageVIEw   androID:ID="@+ID/collect_Titlebar_iv_back"   />  <TextVIEw      androID:layout_centerInParent="true"   androID:gravity="center_vertical"   androID:text="@string/my_collection"   androID:textSize="@dimen/login_Titlebar_login_size"   androID:textcolor="@color/textcolor_32"/>  <TextVIEw   androID:ID="@+ID/collect_Titlebar_tv_manager"      androID:gravity="center"   androID:text="@string/collect_Titlebar_manager"   androID:textcolor="@color/orange"   androID:textSize="@dimen/login_Titlebar_register_size"/> </relativeLayout> <VIEw  /> <ListVIEw  androID:ID="@+ID/collect_ListVIEw"  androID:layout_wIDth="match_parent"  androID:layout_height="match_parent"  androID:visibility="gone"/> <linearLayout  androID:ID="@+ID/collect_error_layout"  androID:layout_wIDth="match_parent"  androID:layout_height="match_parent"  androID:gravity="center">  <TextVIEw   androID:ID="@+ID/collect_error_tv"   androID:layout_wIDth="wrap_content"   androID:layout_height="wrap_content"   androID:gravity="center"   androID:drawabletop="@mipmap/net_Failed"   androID:drawablepadding="10dp"   androID:text="@string/collect_have_no_collection"   androID:textcolor="@color/gray01"   androID:textSize="@dimen/textSize_16"   androID:visibility="visible"/> </linearLayout></linearLayout>

以上所述是小编给大家介绍的AndroID仿拉手团购App我的收藏界面实例代码,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对编程小技巧网站的支持!

总结

以上是内存溢出为你收集整理的Android仿拉手网团购App我的收藏界面实例代码全部内容,希望文章能够帮你解决Android仿拉手网团购App我的收藏界面实例代码所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1146203.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-31
下一篇 2022-05-31

发表评论

登录后才能评论

评论列表(0条)

保存