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

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

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

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

效果图如下所示:

具体代码如下所示:

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          />        <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                        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            />          <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                            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      />    <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="8"            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产品详情界面效果,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对编程小技巧网站的支持!

总结

以上是内存溢出为你收集整理的Android仿拉手网团购App产品详情界面效果全部内容,希望文章能够帮你解决Android仿拉手网团购App产品详情界面效果所遇到的程序开发问题。

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

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

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

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

发表评论

登录后才能评论

评论列表(0条)

保存