Android仿拉手网团购App产品详情界面效果

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

效果图如下所示:

具体代码如下所示:

activity_detail.xml

<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" tools:context="com.myxh.coolshopping.ui.activity.DetailActivity"> <RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent" android:layout_above="@+id/detail_layout_buy"> <com.myxh.coolshopping.ui.widget.ObserverScrollView android:id="@+id/detail_scroll_view" android:layout_width="match_parent" android:layout_height="match_parent"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <com.facebook.drawee.view.SimpleDraweeView android:id="@+id/detail_product_photo" android:layout_width="match_parent" android:layout_height="@dimen/detail_photo_height" android:scaleType="centerCrop" app:placeholderImage="@mipmap/home_adver_320"/> <View style="@style/detail_view_style"/> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" android:padding="@dimen/detail_product_info_layout_padding"> <TextView android:id="@+id/detail_tv_product_name" android:layout_width="wrap_content" android:layout_height="wrap_content" tools:text="竹林宾馆" android:textSize="@dimen/textSize_20" android:textColor="@color/app_yellow"/> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="5dp" android:layout_marginBottom="5dp" android:gravity="center_vertical" android:orientation="horizontal"> <TextView android:id="@+id/detail_tv_description" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:paddingRight="10dp" tools:text="大床房入住一晚,交通便利" android:textSize="@dimen/textSize_13"/> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/detail_bought" android:textSize="@dimen/textSize_14"/> <TextView android:id="@+id/detail_tv_bought" android:layout_width="wrap_content" android:layout_height="wrap_content" tools:text="289" android:textSize="@dimen/textSize_14"/> </LinearLayout> <View style="@style/detail_view_style" android:layout_marginTop="@dimen/detail_view_marginTop"/> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingTop="5dp" android:paddingBottom="5dp" android:orientation="horizontal" android:background="@color/white"> <LinearLayout android:id="@+id/detail_sure_layout_anytime" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="@dimen/detail_sure_layout_marginRight" android:gravity="center_vertical" android:orientation="horizontal"> <ImageView android:layout_width="@dimen/detail_sure_icon_width" android:layout_height="@dimen/detail_sure_icon_height" android:src="@mipmap/mini_icon_sure"/> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/detail_sure_text_marginLeft" android:text="@string/detail_sure_anytime" android:textSize="@dimen/textSize_14"/> </LinearLayout> <LinearLayout android:id="@+id/detail_sure_layout_overdue" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="@dimen/detail_sure_layout_marginRight" android:gravity="center_vertical" android:orientation="horizontal"> <ImageView android:layout_width="@dimen/detail_sure_icon_width" android:layout_height="@dimen/detail_sure_icon_height" android:src="@mipmap/mini_icon_sure"/> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/detail_sure_text_marginLeft" android:text="@string/detail_sure_overdue" android:textSize="@dimen/textSize_14"/> </LinearLayout> <LinearLayout android:id="@+id/detail_sure_layout_sevenday" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="@dimen/detail_sure_layout_marginRight" android:gravity="center_vertical" android:orientation="horizontal"> <ImageView android:layout_width="@dimen/detail_sure_icon_width" android:layout_height="@dimen/detail_sure_icon_height" android:src="@mipmap/mini_icon_sure"/> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/detail_sure_text_marginLeft" android:text="@string/detail_sure_sevenday" android:textSize="@dimen/textSize_14"/> </LinearLayout> </LinearLayout> <View style="@style/detail_view_style"/> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/detail_merchant_info_layout_marginTop" android:background="@color/white" android:orientation="vertical"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/detail_merchant_info" android:textColor="@color/detail_merchant_info_color" android:textSize="@dimen/textSize_17"/> <View style="@style/detail_view_style" android:layout_marginTop="@dimen/detail_view_marginTop"/> <TextView android:id="@+id/detail_tv_merchant_title" android:layout_width="wrap_content" android:layout_height="wrap_content" android:padding="5dp" tools:text="兴鑫宾馆" android:textSize="@dimen/textSize_16"/> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:padding="@dimen/detail_merchant_detail_layout_padding" android:orientation="horizontal"> <LinearLayout android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="3" android:orientation="vertical"> <TextView android:id="@+id/detail_merchant_tv_address" android:layout_width="wrap_content" android:layout_height="wrap_content" tools:text="湖北咸宁咸安区鱼水路89号"/> <TextView android:id="@+id/detail_merchant_tv_hours" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="5dp" tools:text="营业时间:24小时"/> <TextView android:id="@+id/detail_merchant_tv_distance" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="5dp" tools:text="6.8km"/> </LinearLayout> <View android:layout_width="1dp" android:layout_height="match_parent" android:background="@mipmap/line_divide_vertical"/> <ImageView android:id="@+id/detail_merchant_iv_call" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:layout_gravity="center" android:src="@mipmap/ic_call"/> </LinearLayout> </LinearLayout> </LinearLayout> <include android:id="@+id/detail_include_description" layout="@layout/layout_detail_description" android:layout_width="match_parent" android:layout_height="wrap_content"/> </LinearLayout> </com.myxh.coolshopping.ui.widget.ObserverScrollView> <LinearLayout android:id="@+id/detail_title_layout" android:layout_width="match_parent" android:layout_height="45dp" android:orientation="horizontal" android:layout_alignParentTop="true" android:padding="@dimen/detail_title_layout_padding"> <ImageView android:id="@+id/detail_title_iv_back" android:layout_width="wrap_content" android:layout_height="match_parent" android:src="@mipmap/icon_back_black"/> <TextView android:id="@+id/detail_title_tv_title" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:layout_gravity="center" android:layout_marginEnd="@dimen/detail_title_tv_marginLR" android:layout_marginStart="@dimen/detail_title_tv_marginLR" android:gravity="center" tools:text="国际酒店" android:singleLine="true" android:ellipsize="end" android:textSize="@dimen/textSize_20"/> <ImageView android:id="@+id/detail_title_iv_favorite" android:layout_toLeftOf="@+id/detail_title_iv_share" android:layout_marginRight="5dp" android:layout_width="wrap_content" android:layout_height="match_parent" android:src="@mipmap/icon_uncollect_black"/> <ImageView android:id="@+id/detail_title_iv_share" android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_alignParentRight="true" android:src="@mipmap/icon_share_black"/> </LinearLayout> </RelativeLayout> <RelativeLayout android:id="@+id/detail_layout_buy" android:layout_width="match_parent" android:layout_height="@dimen/detail_layout_buy_height" android:layout_alignParentBottom="true" android:background="@color/white"> <View style="@style/detail_view_style"/> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center" android:orientation="horizontal"> <LinearLayout android:layout_width="0dp" android:layout_height="match_parent" android:gravity="center_vertical" android:layout_weight="1" android:orientation="horizontal"> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="15dp" android:text="$" android:textSize="@dimen/textSize_14" android:textColor="@color/app_yellow" android:textStyle="bold"/> <TextView android:id="@+id/detail_layout_buy_price" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/detail_layout_buy_price_marginLeft" tools:text="119" android:textSize="@dimen/textSize_23" android:textColor="@color/app_yellow" android:textStyle="bold"/> </LinearLayout> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_marginLeft="15dp" android:orientation="vertical"> <TextView android:id="@+id/detail_layout_buy_value" android:layout_width="wrap_content" android:layout_height="wrap_content" tools:text="$998" android:textSize="@dimen/textSize_12"/> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/detail_bottom_retail_price" android:textSize="@dimen/textSize_12"/> </LinearLayout> </LinearLayout> <Button android:id="@+id/detail_layout_buy_btn" android:layout_width="wrap_content" android:layout_height="match_parent" android:text="@string/detail_bottom_buy" android:textSize="@dimen/textSize_17" android:textColor="@color/white" android:background="@color/app_yellow"/> </LinearLayout> </RelativeLayout> </RelativeLayout>

以上所述是小编给大家介绍的Android仿拉手团购App产品详情界面效果,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对脚本之家网站的支持!

时间: 2024-08-24 16:19:14

Android仿拉手网团购App产品详情界面效果的相关文章

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

先给大家展示效果图,如果感觉还不错,请参考实例代码 效果图如下所示: 具体代码如下: private void initData() { BmobManager.getInstance(new BmobQueryCallback() { @Override public void onQuerySuccess(List<? extends BaseModel> dataList) { mDataList.clear(); List<FavorModel> list = (List&

拉手网团购泡沫中遭低谷 从草莽走向制度化

中国团购网站中没有一家命运有拉手这样跌宕起伏:成立一年多时间就能获得3轮总计1.66亿美元的融资,随后又启动轰轰烈烈的上市计划,最终功败垂成,命运急转直下. 整个2012年是拉手网一段灰暗岁月:冲刺IPO计划彻底失败,公司减员增效.创始人吴波隐退.CFO张俭离开公司后,广告投放大幅降低,更严重的是美团.大众点评团购等对手趁机抢夺市场份额,拉手从市场领先者变成追赶者. 很长时间里,拉手都元气大伤,默默"刻骨疗伤",在市场上沉寂.这两年团购行业发生沧海桑田般的巨变,类似24劵等团购网站消失

拉手网“团购三包”夯实行业根基

曾听到过这么一个段子:一位老总,每天早上起床的第一件事就是打开电脑,浏览各大团购网站.请注意,他所做的一切与他的职业无关.这,只是一种兴趣,一种生活方式.这没什么好惊奇,如果你觉得疯狂,那只能说明,你与现代社会完全脱节了. 只是一瞬间,团购网站如同如夏天里掩住墙壁的爬山虎,一下子葱葱郁郁.昨天还是零星点点,今天就已经铺天盖地.据相关数据显示,目前国内团购网站总量已增至3283家,二三线城市的地方团购网站仍以迅猛的姿态成长. 凡事必有规律.惊喜的背后,总有着遮不住的灰色地带,渐渐,"诚信"

拉手网团购“杏花村”实为贴牌酒涉误导消费者

白酒还是很多人走亲访友过年的首选礼品,但这也是一笔不小的开销.有消费者投诉说自己在团购网站"拉手网"上"团"了一箱汾酒集团的"杏花村酒",买回来发现自己上了当,这竟然是一种"贴牌酒".这又是怎么回事? 调查 团购"杏花村" 藏猫腻 "96元包邮!原价398元的汾酒杏花村十五年陈酿酒",奔着这个广告,邱女士在团购网站"拉手网"上"团"了四瓶白酒.这么

三胞集团入主拉手网 团购忙拼爹

"千团大战"的少数幸存者,最终都没有躲过找干爹的命运,包括曾经只距上市一步之遥的拉手网.昨日,三胞集团副总裁.新闻发言人邹衍在接受南方都市报记者采访时确认,江苏三胞集团在今年8月开始和拉手网进行接触,目前收购工作已经进入最后的阶段,但交易价格暂时不方便透露.另有消息人士向南都记者透露,此次收购三胞集团将全盘接手麦顿投资所持有的拉手网股份,绝对控股拉手网.这也意味着,在美团接受阿里入股,苏宁入手满座网,大众点评牵手腾讯,糯米卖身百度后,千团大战已经从独身主义正式进入干爹大战. 拉手网能否

Android仿美团网、大众点评购买框悬浮效果修改版

我之前写了一篇关于美团网,大众点评的购买框效果的文章Android对ScrollView滚动监听,实现美团.大众点评的购买悬浮效果,我自己感觉效果并不是很好,如果快速滑动界面,显示悬浮框的时候会出现一卡的现象,有些朋友说有时候会出现两个布局的情况,特别是对ScrollView滚动的Y值得监听,我还使用了Handler来获取,还有朋友给我介绍了Scrolling Tricks这个东西,我下载试了下,确实美团网,大众点评的购买框用的是这种效果,但是Scrolling Tricks只能在API11以上

有网络流传去哪儿网团购业务开始裁员

去哪儿网在声明中称,公司没有进行裁员,极少数员工的离职属于正常商业运作的公司都会发生的人员流动.同时,随着业务发展,公司员工规模也在不断壮大,目前员工规模与今年年初相比增长了30%.公司每季度都会在不同部门进行末尾淘汰,属于惯例性的商业调整,流程严格遵循国家法律法规.本季度调整人员占总员工数不到2%. 声明称,去哪儿网团购业务自去年一月份成立以来一直稳步增长.在团购市场普遍低迷的情况下,公司2012年一季度团购收入与上年四季度相比实现近50%的增长.去哪儿网还在声明中强调,作为中国领先的旅游搜索

寒冬抱团取暖:赶集网团购业务外包窝窝团

继开心团购交给F团运营后,赶集也宣布与窝窝团(微博)达成战略合作,电商资本寒冬下http://www.aliyun.com/zixun/aggregation/38207.html">抱团取暖继续酝酿. 日前,赶集网(微博)宣布与窝窝团达成战略合作,自本周三起联合运营赶集网团购业务,目前赶集团购的域名已直接跳转至窝窝团域名下的双方联合运营页面. 团购行业人士认为,未来赶集以及窝窝团的关系将更像是"导航站和团购站". 团购业务边缘化 合作运营公告显示,在赶集团购与窝窝团联

去哪儿网团购上线拓展酒店业网络直销新模式

去哪儿网团购频道1月6日上线,成为国内主营 旅游产品直销的旅游团购平台.目前,去哪儿网每周会精选1-3单特色旅游产品,包括酒店客房,酒店美食,会员卡.酒店SPA等,以团购模式拓展直销新收益模式. 1月14日,去哪儿网副总裁戴政在微博上透露,"高端准五星北京鑫海锦江大酒店高级客房,上线7天团购完成支付上千间夜!这在酒店历史上绝无仅有!相当于传统旅行预定网站一个季度的间夜数." 据悉,传统在线旅游代理商如果想销售1000个间夜,周期最短为30天.团购在酒店直销领域的模式拓展,将会为酒店业收