Skip to content

DetaildPages.xml __ code & 구현 화면 #8

@honghyoeun

Description

@honghyoeun

image



<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal">

        <!--뒤로가기 버튼-->
        <Button
            android:id="@+id/backButton"
            android:layout_width="40dp"
            android:layout_height="40dp"
            android:drawableBottom="@drawable/ic_back"
            android:onClick="goBack"
            android:background="" />

        <!--페이지 설명-->
        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textSize="18sp"
            android:text="StyleRent Detaild pages  - USER"

            />

        <!--채팅 버튼-->
        <Button
            android:id="@+id/ic_chat"
            android:layout_width="38dp"
            android:layout_height="40dp"
            android:layout_marginLeft="80dp"
            android:layout_marginTop="0dp"
            android:background=""
            android:drawableBottom="@drawable/ic_chat"
            app:iconPadding="150dp" />

    </LinearLayout>





    <!--메인 사진-->
    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <LinearLayout
            android:orientation="vertical"
            android:layout_width="match_parent"
            android:layout_height="wrap_content">

            <!-- product item view -->
            <LinearLayout
                android:orientation="horizontal"
                android:layout_width="match_parent"
                android:layout_height="wrap_content">

                <LinearLayout
                    android:orientation="vertical"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content">

                    <!--메인 사진-->
                    <ImageView
                        android:layout_width="match_parent"
                        android:layout_height="321dp"
                        android:src="@drawable/nike1" />

                    <!--작은 사진-->
                    <View
                        android:id="@+id/_bg__screen_22_______________"
                        android:layout_width="40dp"
                        android:layout_height="40dp"
                        android:layout_marginStart="190dp"
                        android:layout_marginTop="0dp"
                        android:background="@drawable/nikeloge" />
                </LinearLayout>>

            </LinearLayout>

        </LinearLayout>

            <!-- more product items here -->

    </ScrollView>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal">

        <!--User 이름-->
        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="User1"
            android:textSize="20sp" />
        <!--rent 가격-->
        <TextView
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_marginLeft="16dp"
            android:gravity="right"
            android:text="Price"
            android:textSize="20sp" />

    </LinearLayout>


    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal">

        <!--상품 이름-->
        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Nike jacket NO.5"
            android:textSize="20sp"
            android:textStyle="bold"
            android:layout_marginTop="5dp"
            />
        <!--rent 이름-->
        <TextView
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_marginLeft="16dp"
            android:gravity="right"
            android:text="25000"
            android:textSize="20sp"
            android:textStyle="bold" />
    </LinearLayout>

    <!--디테일 사진 4개-->
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal">

        <ImageView
            android:layout_width="0dp"
            android:layout_height="94dp"
            android:layout_weight="1"
            android:src="@drawable/nike1"
            android:layout_marginTop="15dp"
            />

        <ImageView
            android:layout_width="0dp"
            android:layout_height="94dp"
            android:layout_weight="1"
            android:src="@drawable/nike1"
            android:layout_marginTop="15dp"
            />

        <ImageView
            android:layout_width="0dp"
            android:layout_height="94dp"
            android:layout_weight="1"
            android:src="@drawable/nike1"
            android:layout_marginTop="15dp"
            />

        <ImageView
            android:layout_width="0dp"
            android:layout_height="94dp"
            android:layout_weight="1"
            android:src="@drawable/nike1"
            android:layout_marginTop="15dp"
            />

    </LinearLayout>



    <!--상품 설명-->
    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Description"
        android:textSize="20sp"
        android:textStyle="bold"
        android:layout_marginTop="10dp"
        />



    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="ex : Nike Dri-FIT Sport Jacket "
        android:textSize="20sp"
        android:textStyle="bold" />

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal">


        <LinearLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:orientation="horizontal">

            <!--리뷰-->
            <TextView
                android:id="@+id/textView"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="Review\n255"
                android:textSize="18sp"/>

            <RatingBar
                android:id="@+id/ratingBar"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginRight="-5dp"
                android:numStars="5"
                android:rating="5.0"
                android:stepSize="0.4" />

        </LinearLayout>

        <!--Rent Button-->
        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content">


            <Button
                android:id="@+id/Button"
                android:layout_width="wrap_content"
                android:layout_height="52dp"
                android:layout_alignParentEnd="true"
                android:layout_alignParentBottom="true"
                android:layout_marginEnd="16dp"
                android:layout_marginBottom="16dp"
                android:backgroundTint="#DBE4C6"
                android:text="Rent"
                android:textColor="@android:color/black"
                android:textStyle="bold" />

        </RelativeLayout>


    </LinearLayout>


</LinearLayout>


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions