Android仿拉手網(wǎng)團(tuán)購(gòu)App產(chǎn)品詳情界面效果

先給大家展示下效果圖,如果感覺(jué)還不錯(cuò),請(qǐng)參考實(shí)例代碼。

創(chuàng)新互聯(lián)服務(wù)項(xiàng)目包括新田網(wǎng)站建設(shè)、新田網(wǎng)站制作、新田網(wǎng)頁(yè)制作以及新田網(wǎng)絡(luò)營(yíng)銷(xiāo)策劃等。多年來(lái),我們專(zhuān)注于互聯(lián)網(wǎng)行業(yè),利用自身積累的技術(shù)優(yōu)勢(shì)、行業(yè)經(jīng)驗(yàn)、深度合作伙伴關(guān)系等,向廣大中小型企業(yè)、政府機(jī)構(gòu)等提供互聯(lián)網(wǎng)行業(yè)的解決方案,新田網(wǎng)站推廣取得了明顯的社會(huì)效益與經(jīng)濟(jì)效益。目前,我們服務(wù)的客戶(hù)以成都為中心已經(jīng)輻射到新田省份的部分城市,未來(lái)相信會(huì)繼續(xù)擴(kuò)大服務(wù)區(qū)域并繼續(xù)獲得客戶(hù)的支持與信任!

效果圖如下所示:

Android仿拉手網(wǎng)團(tuán)購(gòu)App產(chǎn)品詳情界面效果Android仿拉手網(wǎng)團(tuán)購(gòu)App產(chǎn)品詳情界面效果

具體代碼如下所示:

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="湖北咸寧咸安區(qū)魚(yú)水路89號(hào)"/>
                <TextView
                  android:id="@+id/detail_merchant_tv_hours"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_marginTop="5dp"
                  tools:text="營(yíng)業(yè)時(shí)間:24小時(shí)"/>
                <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="國(guó)際酒店"
        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="$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仿拉手團(tuán)購(gòu)App產(chǎn)品詳情界面效果,希望對(duì)大家有所幫助,如果大家有任何疑問(wèn)請(qǐng)給我留言,小編會(huì)及時(shí)回復(fù)大家的。在此也非常感謝大家對(duì)創(chuàng)新互聯(lián)網(wǎng)站的支持!

文章題目:Android仿拉手網(wǎng)團(tuán)購(gòu)App產(chǎn)品詳情界面效果
網(wǎng)頁(yè)路徑:http://muchs.cn/article34/ihsise.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站導(dǎo)航、標(biāo)簽優(yōu)化、小程序開(kāi)發(fā)定制網(wǎng)站、網(wǎng)站制作外貿(mào)建站

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶(hù)投稿、用戶(hù)轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀(guān)點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話(huà):028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

成都app開(kāi)發(fā)公司