为什么高程阴影在Android Studio中的两个不同视图之间有所不同?

发布于 2025-02-07 18:51:50 字数 24409 浏览 2 评论 0原文

我有一个线性延迟,其中包含很多相关性,您可以在我提供的简单演示中看到。

但是由于某种原因,第二个主选项卡2(android:id =“@+id/resultInformation”在“真实代码”中显示出比主选项卡1(android:id =“@+id/profile information”)更强的高程阴影。在实际代码中)。

我不明白为什么这会发生???帮助。

简单的演示(我知道不正确的语法)

<LinearLayout orientation = vertical>

    <RelativeLayout> MAIN TAB 1 </RelativeLayout>

        <RelativeLayout> ITEM 1 </RelativeLayout>
        <RelativeLayout> ITEM 2 </RelativeLayout>
        <RelativeLayout> ITEM 3 </RelativeLayout>

    <RelativeLayout> MAIN TAB 2 </RelativeLayout>

        <RelativeLayout> ITEM 1 </RelativeLayout>
        <RelativeLayout> ITEM 2 </RelativeLayout>
        <RelativeLayout> ITEM 3 </RelativeLayout>

</LinearLayout>

实际代码

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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"
    tools:context=".profile_fragment"
    android:background="@color/darkerwhite"
    android:id="@+id/profile_frag">


    <ScrollView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content">

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

        <RelativeLayout
            android:id="@+id/ProfileInformation"
            android:layout_width="match_parent"
            android:layout_height="21pt"
            android:elevation="10dp"
            android:background="@color/darkwhite">

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentBottom="true"
                android:layout_marginLeft="13dp"
                android:layout_marginBottom="6dp"
                android:text="Profile"
                android:textColor="@color/darkgrey"
                android:textStyle="bold"
                android:textSize="19dp" />

        </RelativeLayout>

        <RelativeLayout
            android:id="@+id/HeightProfile"
            android:layout_width="match_parent"
            android:layout_height="26pt"
            android:layout_marginTop="1dp"
            android:background="@color/white">

            <RelativeLayout
                android:layout_width="120dp"
                android:layout_height="match_parent"
                android:elevation="1dp"

                >

                <TextView
                    android:id="@+id/tvHeight"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_centerVertical="true"
                    android:layout_marginLeft="13dp"
                    android:text="Height (cm)"
                    android:textColor="@color/darkestgrey"

                    />


            </RelativeLayout>

            <EditText
                android:id="@+id/etHeight"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_alignParentRight="true"
                android:layout_centerVertical="true"
                android:layout_marginRight="10dp"
                android:background="@color/white"
                android:cursorVisible="true"
                android:maxLength="3"
                android:gravity="center_vertical|right"
                android:hint="cm"
                android:inputType="number"
                android:textColor="@color/black"
                android:textColorHint="@color/textGray"
                android:textCursorDrawable="@null"
                android:textSize="18dp" />

        </RelativeLayout>


        <RelativeLayout
            android:id="@+id/WeightProfile"
            android:layout_width="match_parent"
            android:layout_height="26pt"
            android:layout_marginTop="1dp"
            android:background="@color/white">

            <RelativeLayout
                android:layout_width="120dp"
                android:layout_height="match_parent"
                android:elevation="1dp">

                <TextView
                    android:id="@+id/tvWeight"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_centerVertical="true"
                    android:layout_marginLeft="13dp"
                    android:text="Weight (kg)"
                    android:textColor="@color/darkestgrey"

                    />


            </RelativeLayout>

            <EditText
                android:id="@+id/etWeight"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_alignParentRight="true"
                android:layout_centerVertical="true"
                android:layout_marginRight="10dp"
                android:background="@color/white"
                android:cursorVisible="true"
                android:maxLength="3"
                android:gravity="center_vertical|right"
                android:hint="kg"
                android:inputType="number"
                android:textColor="@color/black"
                android:textColorHint="@color/textGray"
                android:textCursorDrawable="@null"
                android:textSize="18dp" />

        </RelativeLayout>

        <RelativeLayout
            android:id="@+id/AgeProfile"
            android:layout_width="match_parent"
            android:layout_height="26pt"
            android:layout_marginTop="1dp"
            android:background="@color/white">

            <RelativeLayout
                android:layout_width="60dp"
                android:layout_height="match_parent"
                android:elevation="1dp">

                <TextView
                    android:id="@+id/tvAge"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_centerVertical="true"
                    android:layout_marginLeft="13dp"
                    android:text="Age"
                    android:textColor="@color/darkestgrey"

                    />


            </RelativeLayout>

            <EditText
                android:id="@+id/etAge"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_alignParentRight="true"
                android:layout_centerVertical="true"
                android:layout_marginRight="10dp"
                android:background="@color/white"
                android:cursorVisible="true"
                android:maxLength="3"
                android:gravity="center_vertical|right"
                android:hint="years"
                android:inputType="number"
                android:textColor="@color/black"
                android:textColorHint="@color/textGray"
                android:textCursorDrawable="@null"
                android:textSize="18dp" />

        </RelativeLayout>


        <RelativeLayout
            android:id="@+id/GenderProfile"
            android:layout_width="match_parent"
            android:layout_height="26pt"
            android:layout_marginTop="1dp"
            android:background="@color/white">

            <RelativeLayout
                android:layout_width="80dp"
                android:layout_height="match_parent"
                android:elevation="1dp">

                <TextView
                    android:id="@+id/tvGender"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_centerVertical="true"
                    android:layout_marginLeft="13dp"
                    android:text="Gender"
                    android:textColor="@color/darkestgrey"

                    />


            </RelativeLayout>


            <TextView
                android:id="@+id/tvGenderSelector"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_alignParentRight="true"
                android:layout_centerVertical="true"
                android:layout_marginRight="10dp"
                android:gravity="center_vertical|right"
                android:text=""
                android:textColor="@color/black"
                android:textSize="18dp"

                />

        </RelativeLayout>


        <RelativeLayout
            android:id="@+id/ActivityProfile"
            android:layout_width="match_parent"
            android:layout_height="26pt"
            android:layout_marginTop="1dp"
            android:background="@color/white">

            <RelativeLayout
                android:layout_width="90dp"
                android:layout_height="match_parent"
                android:elevation="1dp">

                <TextView
                    android:id="@+id/tvActivity"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_centerVertical="true"
                    android:layout_marginLeft="13dp"
                    android:text="Activity"
                    android:textColor="@color/darkestgrey"

                    />


            </RelativeLayout>

            <TextView
                android:id="@+id/tvActivitySelector"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_alignParentRight="true"
                android:layout_centerVertical="true"
                android:layout_marginRight="10dp"
                android:gravity="center_vertical|right"
                android:text=""
                android:textColor="@color/black"
                android:textSize="18dp">

            </TextView>

        </RelativeLayout>

        <RelativeLayout
            android:id="@+id/GoalProfile"
            android:layout_width="match_parent"
            android:layout_height="26pt"
            android:layout_marginTop="1dp"
            android:background="@color/white">

            <RelativeLayout
                android:layout_width="80dp"
                android:layout_height="match_parent"
                android:elevation="1dp">

                <TextView
                    android:id="@+id/tvGoal"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_centerVertical="true"
                    android:layout_marginLeft="13dp"
                    android:text="Goal"
                    android:textColor="@color/darkestgrey"

                    />


            </RelativeLayout>

            <TextView
                android:id="@+id/tvGoalSelector"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_alignParentRight="true"
                android:layout_centerVertical="true"
                android:layout_marginRight="10dp"
                android:text=""
                android:gravity="center_vertical|right"
                android:textColor="@color/black"
                android:textSize="18dp">

            </TextView>

        </RelativeLayout>

        <RelativeLayout
            android:id="@+id/ResultInformation"
            android:layout_width="match_parent"
            android:layout_height="21pt"
            android:elevation="10dp"
            android:layout_marginTop="1dp"
            android:background="@color/darkwhite">

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentBottom="true"
                android:layout_marginLeft="13dp"
                android:layout_marginBottom="6dp"
                android:text="Results"
                android:textColor="@color/darkgrey"
                android:textStyle="bold"
                android:textSize="19dp" />

        </RelativeLayout>

        <RelativeLayout
            android:id="@+id/BasalMetabolicRateProfile"
            android:layout_width="match_parent"
            android:layout_height="32pt"
            android:layout_marginTop="1dp"
            android:background="@color/white">


            <RelativeLayout
                android:id="@+id/tvBasalMetabolicRateClick"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:background="@android:color/transparent"
                android:clickable="true">

                <ImageView
                    android:layout_width="35dp"
                    android:layout_height="match_parent"
                    android:layout_alignParentRight="true"
                    android:src="@drawable/date_changer_forwards"
                    android:layout_marginRight="5dp"/>

            </RelativeLayout>


            <RelativeLayout
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:layout_centerVertical="true"
                android:elevation="1dp"
                android:gravity="center_vertical">

                <ImageView
                    android:id="@+id/imageBMR"
                    android:layout_width="30dp"
                    android:layout_height="match_parent"
                    android:layout_marginLeft="10dp"
                    android:src="@drawable/fire_vector_yellow" />

                <RelativeLayout
                    android:layout_width="wrap_content"
                    android:layout_height="match_parent"
                    android:layout_toRightOf="@id/imageBMR"
                    android:gravity="center_vertical">

                    <TextView
                        android:id="@+id/tvBasalMetabolicRate"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginLeft="13dp"
                        android:text="Basal Metabolic Rate"
                        android:textColor="@color/black" />

                    <TextView
                        android:id="@+id/tvBasalMetabolicRateCalculator"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_below="@id/tvBasalMetabolicRate"
                        android:layout_marginLeft="13dp"
                        android:text="-"
                        android:textColor="@color/darkestgrey"
                        android:textSize="20dp"
                        android:textStyle="bold" />

                </RelativeLayout>


            </RelativeLayout>


        </RelativeLayout>

        <RelativeLayout
            android:id="@+id/BodyMassIndexProfile"
            android:layout_width="match_parent"
            android:layout_height="32pt"
            android:layout_marginTop="1dp"
            android:background="@color/white">

            <RelativeLayout
                android:id="@+id/tvBodyMassIndexClick"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:background="@android:color/transparent"
                android:clickable="true">

                <ImageView
                    android:layout_width="35dp"
                    android:layout_height="match_parent"
                    android:layout_alignParentRight="true"
                    android:src="@drawable/date_changer_forwards"
                    android:layout_marginRight="5dp"/>

            </RelativeLayout>

            <RelativeLayout
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:elevation="1dp"
                android:gravity="center_vertical">

                <ImageView
                    android:id="@+id/imageBMI"
                    android:layout_width="30dp"
                    android:layout_height="match_parent"
                    android:layout_marginLeft="10dp"
                    android:src="@drawable/person_vector_yellow" />

                <RelativeLayout
                    android:layout_width="wrap_content"
                    android:layout_height="match_parent"
                    android:gravity="center_vertical"
                    android:layout_toRightOf="@+id/imageBMI">

                    <TextView
                        android:id="@+id/tvBodyMassIndex"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginLeft="13dp"
                        android:text="Body Mass Index"
                        android:textColor="@color/black"/>

                    <TextView
                        android:id="@+id/tvBodyMassIndexCalculator"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_below="@id/tvBodyMassIndex"
                        android:layout_alignParentLeft="true"
                        android:layout_marginLeft="13dp"
                        android:layout_marginRight="10dp"
                        android:text="-"
                        android:textColor="@color/darkestgrey"
                        android:textSize="20dp"
                        android:textStyle="bold" />

                </RelativeLayout>

            </RelativeLayout>

        </RelativeLayout>

        <RelativeLayout
            android:id="@+id/waterRequirementProfile"
            android:layout_width="match_parent"
            android:layout_height="32pt"
            android:layout_marginTop="1dp"
            android:background="@color/white">

            <RelativeLayout
                android:id="@+id/tvWaterRequirementClick"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:background="@android:color/transparent"
                android:clickable="true">

                <ImageView
                    android:layout_width="35dp"
                    android:layout_height="match_parent"
                    android:layout_alignParentRight="true"
                    android:src="@drawable/date_changer_forwards"
                    android:layout_marginRight="5dp"/>

            </RelativeLayout>

            <RelativeLayout
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:elevation="1dp"
                android:gravity="center_vertical">

                <ImageView
                    android:id="@+id/imageWaterRequirement"
                    android:layout_width="30dp"
                    android:layout_height="match_parent"
                    android:src="@drawable/water_vector_lightblue"
                    android:layout_marginLeft="10dp"/>

                <RelativeLayout
                    android:layout_width="wrap_content"
                    android:layout_height="match_parent"
                    android:layout_toRightOf="@id/imageWaterRequirement"
                    android:gravity="center_vertical">

                    <TextView
                        android:id="@+id/tvWaterRequirement"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginLeft="13dp"
                        android:text="Water Requirement (ml)"
                        android:textColor="@color/black" />

                    <TextView
                        android:id="@+id/tvWaterRequirementCalculator"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_below="@id/tvWaterRequirement"
                        android:layout_alignParentLeft="true"
                        android:layout_centerVertical="true"
                        android:layout_marginLeft="13dp"
                        android:text="-"
                        android:textColor="@color/darkestgrey"
                        android:textSize="20dp"
                        android:textStyle="bold" />

                </RelativeLayout>

            </RelativeLayout>


        </RelativeLayout>

        <RelativeLayout
            android:id="@+id/dailyCaloricRequirementProfile"
            android:layout_width="match_parent"
            android:layout_height="32pt"
            android:layout_marginTop="1dp"
            android:background="@color/white">

            <RelativeLayout
                android:id="@+id/tvDailyCaloricRequirementClick"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:background="@android:color/transparent"
                android:clickable="true">

                <ImageView
                    android:layout_width="35dp"
                    android:layout_height="match_parent"
                    android:layout_alignParentRight="true"
                    android:src="@drawable/date_changer_forwards"
                    android:layout_marginRight="5dp"/>

            </RelativeLayout>

            <RelativeLayout
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:elevation="1dp"
                android:gravity="center_vertical">

                <ImageView
                    android:id="@+id/imageDCR"
                    android:layout_width="30dp"
                    android:layout_height="match_parent"
                    android:layout_marginLeft="10dp"
                    android:src="@drawable/fire_vector_lightred" />

                <RelativeLayout
                    android:layout_width="wrap_content"
                    android:layout_height="match_parent"
                    android:layout_toRightOf="@id/imageDCR"
                    android:gravity="center_vertical">

                    <TextView
                        android:id="@+id/tvCaloricRequirement"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginLeft="13dp"
                        android:text="Daily Caloric Requirement"
                        android:textColor="@color/black" />

                    <TextView
                        android:id="@+id/tvCaloricRequirementCalculator"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_below="@id/tvCaloricRequirement"
                        android:layout_alignParentLeft="true"
                        android:layout_centerVertical="true"
                        android:layout_marginLeft="13dp"
                        android:text="-"
                        android:textColor="@color/darkestgrey"
                        android:textSize="20dp"
                        android:textStyle="bold" />

                </RelativeLayout>

            </RelativeLayout>

        </RelativeLayout>

        </LinearLayout>

    </ScrollView>

</RelativeLayout>

I have a LinearLayout which inside of it contains alot of RelativeLayouts as you can see in the simple demonstration I provide.

But for some reason, the second MAIN TAB 2 (android:id="@+id/ResultInformation" in the real code) shows a way stronger elevation shadow than the MAIN TAB 1 (android:id="@+id/ProfileInformation" in the real code).

I don't get why this is happening??? Help.

Simple Demonstration (Not correct syntax, I know)

<LinearLayout orientation = vertical>

    <RelativeLayout> MAIN TAB 1 </RelativeLayout>

        <RelativeLayout> ITEM 1 </RelativeLayout>
        <RelativeLayout> ITEM 2 </RelativeLayout>
        <RelativeLayout> ITEM 3 </RelativeLayout>

    <RelativeLayout> MAIN TAB 2 </RelativeLayout>

        <RelativeLayout> ITEM 1 </RelativeLayout>
        <RelativeLayout> ITEM 2 </RelativeLayout>
        <RelativeLayout> ITEM 3 </RelativeLayout>

</LinearLayout>

ACTUAL CODE

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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"
    tools:context=".profile_fragment"
    android:background="@color/darkerwhite"
    android:id="@+id/profile_frag">


    <ScrollView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content">

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

        <RelativeLayout
            android:id="@+id/ProfileInformation"
            android:layout_width="match_parent"
            android:layout_height="21pt"
            android:elevation="10dp"
            android:background="@color/darkwhite">

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentBottom="true"
                android:layout_marginLeft="13dp"
                android:layout_marginBottom="6dp"
                android:text="Profile"
                android:textColor="@color/darkgrey"
                android:textStyle="bold"
                android:textSize="19dp" />

        </RelativeLayout>

        <RelativeLayout
            android:id="@+id/HeightProfile"
            android:layout_width="match_parent"
            android:layout_height="26pt"
            android:layout_marginTop="1dp"
            android:background="@color/white">

            <RelativeLayout
                android:layout_width="120dp"
                android:layout_height="match_parent"
                android:elevation="1dp"

                >

                <TextView
                    android:id="@+id/tvHeight"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_centerVertical="true"
                    android:layout_marginLeft="13dp"
                    android:text="Height (cm)"
                    android:textColor="@color/darkestgrey"

                    />


            </RelativeLayout>

            <EditText
                android:id="@+id/etHeight"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_alignParentRight="true"
                android:layout_centerVertical="true"
                android:layout_marginRight="10dp"
                android:background="@color/white"
                android:cursorVisible="true"
                android:maxLength="3"
                android:gravity="center_vertical|right"
                android:hint="cm"
                android:inputType="number"
                android:textColor="@color/black"
                android:textColorHint="@color/textGray"
                android:textCursorDrawable="@null"
                android:textSize="18dp" />

        </RelativeLayout>


        <RelativeLayout
            android:id="@+id/WeightProfile"
            android:layout_width="match_parent"
            android:layout_height="26pt"
            android:layout_marginTop="1dp"
            android:background="@color/white">

            <RelativeLayout
                android:layout_width="120dp"
                android:layout_height="match_parent"
                android:elevation="1dp">

                <TextView
                    android:id="@+id/tvWeight"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_centerVertical="true"
                    android:layout_marginLeft="13dp"
                    android:text="Weight (kg)"
                    android:textColor="@color/darkestgrey"

                    />


            </RelativeLayout>

            <EditText
                android:id="@+id/etWeight"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_alignParentRight="true"
                android:layout_centerVertical="true"
                android:layout_marginRight="10dp"
                android:background="@color/white"
                android:cursorVisible="true"
                android:maxLength="3"
                android:gravity="center_vertical|right"
                android:hint="kg"
                android:inputType="number"
                android:textColor="@color/black"
                android:textColorHint="@color/textGray"
                android:textCursorDrawable="@null"
                android:textSize="18dp" />

        </RelativeLayout>

        <RelativeLayout
            android:id="@+id/AgeProfile"
            android:layout_width="match_parent"
            android:layout_height="26pt"
            android:layout_marginTop="1dp"
            android:background="@color/white">

            <RelativeLayout
                android:layout_width="60dp"
                android:layout_height="match_parent"
                android:elevation="1dp">

                <TextView
                    android:id="@+id/tvAge"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_centerVertical="true"
                    android:layout_marginLeft="13dp"
                    android:text="Age"
                    android:textColor="@color/darkestgrey"

                    />


            </RelativeLayout>

            <EditText
                android:id="@+id/etAge"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_alignParentRight="true"
                android:layout_centerVertical="true"
                android:layout_marginRight="10dp"
                android:background="@color/white"
                android:cursorVisible="true"
                android:maxLength="3"
                android:gravity="center_vertical|right"
                android:hint="years"
                android:inputType="number"
                android:textColor="@color/black"
                android:textColorHint="@color/textGray"
                android:textCursorDrawable="@null"
                android:textSize="18dp" />

        </RelativeLayout>


        <RelativeLayout
            android:id="@+id/GenderProfile"
            android:layout_width="match_parent"
            android:layout_height="26pt"
            android:layout_marginTop="1dp"
            android:background="@color/white">

            <RelativeLayout
                android:layout_width="80dp"
                android:layout_height="match_parent"
                android:elevation="1dp">

                <TextView
                    android:id="@+id/tvGender"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_centerVertical="true"
                    android:layout_marginLeft="13dp"
                    android:text="Gender"
                    android:textColor="@color/darkestgrey"

                    />


            </RelativeLayout>


            <TextView
                android:id="@+id/tvGenderSelector"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_alignParentRight="true"
                android:layout_centerVertical="true"
                android:layout_marginRight="10dp"
                android:gravity="center_vertical|right"
                android:text=""
                android:textColor="@color/black"
                android:textSize="18dp"

                />

        </RelativeLayout>


        <RelativeLayout
            android:id="@+id/ActivityProfile"
            android:layout_width="match_parent"
            android:layout_height="26pt"
            android:layout_marginTop="1dp"
            android:background="@color/white">

            <RelativeLayout
                android:layout_width="90dp"
                android:layout_height="match_parent"
                android:elevation="1dp">

                <TextView
                    android:id="@+id/tvActivity"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_centerVertical="true"
                    android:layout_marginLeft="13dp"
                    android:text="Activity"
                    android:textColor="@color/darkestgrey"

                    />


            </RelativeLayout>

            <TextView
                android:id="@+id/tvActivitySelector"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_alignParentRight="true"
                android:layout_centerVertical="true"
                android:layout_marginRight="10dp"
                android:gravity="center_vertical|right"
                android:text=""
                android:textColor="@color/black"
                android:textSize="18dp">

            </TextView>

        </RelativeLayout>

        <RelativeLayout
            android:id="@+id/GoalProfile"
            android:layout_width="match_parent"
            android:layout_height="26pt"
            android:layout_marginTop="1dp"
            android:background="@color/white">

            <RelativeLayout
                android:layout_width="80dp"
                android:layout_height="match_parent"
                android:elevation="1dp">

                <TextView
                    android:id="@+id/tvGoal"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_centerVertical="true"
                    android:layout_marginLeft="13dp"
                    android:text="Goal"
                    android:textColor="@color/darkestgrey"

                    />


            </RelativeLayout>

            <TextView
                android:id="@+id/tvGoalSelector"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_alignParentRight="true"
                android:layout_centerVertical="true"
                android:layout_marginRight="10dp"
                android:text=""
                android:gravity="center_vertical|right"
                android:textColor="@color/black"
                android:textSize="18dp">

            </TextView>

        </RelativeLayout>

        <RelativeLayout
            android:id="@+id/ResultInformation"
            android:layout_width="match_parent"
            android:layout_height="21pt"
            android:elevation="10dp"
            android:layout_marginTop="1dp"
            android:background="@color/darkwhite">

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentBottom="true"
                android:layout_marginLeft="13dp"
                android:layout_marginBottom="6dp"
                android:text="Results"
                android:textColor="@color/darkgrey"
                android:textStyle="bold"
                android:textSize="19dp" />

        </RelativeLayout>

        <RelativeLayout
            android:id="@+id/BasalMetabolicRateProfile"
            android:layout_width="match_parent"
            android:layout_height="32pt"
            android:layout_marginTop="1dp"
            android:background="@color/white">


            <RelativeLayout
                android:id="@+id/tvBasalMetabolicRateClick"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:background="@android:color/transparent"
                android:clickable="true">

                <ImageView
                    android:layout_width="35dp"
                    android:layout_height="match_parent"
                    android:layout_alignParentRight="true"
                    android:src="@drawable/date_changer_forwards"
                    android:layout_marginRight="5dp"/>

            </RelativeLayout>


            <RelativeLayout
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:layout_centerVertical="true"
                android:elevation="1dp"
                android:gravity="center_vertical">

                <ImageView
                    android:id="@+id/imageBMR"
                    android:layout_width="30dp"
                    android:layout_height="match_parent"
                    android:layout_marginLeft="10dp"
                    android:src="@drawable/fire_vector_yellow" />

                <RelativeLayout
                    android:layout_width="wrap_content"
                    android:layout_height="match_parent"
                    android:layout_toRightOf="@id/imageBMR"
                    android:gravity="center_vertical">

                    <TextView
                        android:id="@+id/tvBasalMetabolicRate"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginLeft="13dp"
                        android:text="Basal Metabolic Rate"
                        android:textColor="@color/black" />

                    <TextView
                        android:id="@+id/tvBasalMetabolicRateCalculator"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_below="@id/tvBasalMetabolicRate"
                        android:layout_marginLeft="13dp"
                        android:text="-"
                        android:textColor="@color/darkestgrey"
                        android:textSize="20dp"
                        android:textStyle="bold" />

                </RelativeLayout>


            </RelativeLayout>


        </RelativeLayout>

        <RelativeLayout
            android:id="@+id/BodyMassIndexProfile"
            android:layout_width="match_parent"
            android:layout_height="32pt"
            android:layout_marginTop="1dp"
            android:background="@color/white">

            <RelativeLayout
                android:id="@+id/tvBodyMassIndexClick"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:background="@android:color/transparent"
                android:clickable="true">

                <ImageView
                    android:layout_width="35dp"
                    android:layout_height="match_parent"
                    android:layout_alignParentRight="true"
                    android:src="@drawable/date_changer_forwards"
                    android:layout_marginRight="5dp"/>

            </RelativeLayout>

            <RelativeLayout
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:elevation="1dp"
                android:gravity="center_vertical">

                <ImageView
                    android:id="@+id/imageBMI"
                    android:layout_width="30dp"
                    android:layout_height="match_parent"
                    android:layout_marginLeft="10dp"
                    android:src="@drawable/person_vector_yellow" />

                <RelativeLayout
                    android:layout_width="wrap_content"
                    android:layout_height="match_parent"
                    android:gravity="center_vertical"
                    android:layout_toRightOf="@+id/imageBMI">

                    <TextView
                        android:id="@+id/tvBodyMassIndex"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginLeft="13dp"
                        android:text="Body Mass Index"
                        android:textColor="@color/black"/>

                    <TextView
                        android:id="@+id/tvBodyMassIndexCalculator"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_below="@id/tvBodyMassIndex"
                        android:layout_alignParentLeft="true"
                        android:layout_marginLeft="13dp"
                        android:layout_marginRight="10dp"
                        android:text="-"
                        android:textColor="@color/darkestgrey"
                        android:textSize="20dp"
                        android:textStyle="bold" />

                </RelativeLayout>

            </RelativeLayout>

        </RelativeLayout>

        <RelativeLayout
            android:id="@+id/waterRequirementProfile"
            android:layout_width="match_parent"
            android:layout_height="32pt"
            android:layout_marginTop="1dp"
            android:background="@color/white">

            <RelativeLayout
                android:id="@+id/tvWaterRequirementClick"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:background="@android:color/transparent"
                android:clickable="true">

                <ImageView
                    android:layout_width="35dp"
                    android:layout_height="match_parent"
                    android:layout_alignParentRight="true"
                    android:src="@drawable/date_changer_forwards"
                    android:layout_marginRight="5dp"/>

            </RelativeLayout>

            <RelativeLayout
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:elevation="1dp"
                android:gravity="center_vertical">

                <ImageView
                    android:id="@+id/imageWaterRequirement"
                    android:layout_width="30dp"
                    android:layout_height="match_parent"
                    android:src="@drawable/water_vector_lightblue"
                    android:layout_marginLeft="10dp"/>

                <RelativeLayout
                    android:layout_width="wrap_content"
                    android:layout_height="match_parent"
                    android:layout_toRightOf="@id/imageWaterRequirement"
                    android:gravity="center_vertical">

                    <TextView
                        android:id="@+id/tvWaterRequirement"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginLeft="13dp"
                        android:text="Water Requirement (ml)"
                        android:textColor="@color/black" />

                    <TextView
                        android:id="@+id/tvWaterRequirementCalculator"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_below="@id/tvWaterRequirement"
                        android:layout_alignParentLeft="true"
                        android:layout_centerVertical="true"
                        android:layout_marginLeft="13dp"
                        android:text="-"
                        android:textColor="@color/darkestgrey"
                        android:textSize="20dp"
                        android:textStyle="bold" />

                </RelativeLayout>

            </RelativeLayout>


        </RelativeLayout>

        <RelativeLayout
            android:id="@+id/dailyCaloricRequirementProfile"
            android:layout_width="match_parent"
            android:layout_height="32pt"
            android:layout_marginTop="1dp"
            android:background="@color/white">

            <RelativeLayout
                android:id="@+id/tvDailyCaloricRequirementClick"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:background="@android:color/transparent"
                android:clickable="true">

                <ImageView
                    android:layout_width="35dp"
                    android:layout_height="match_parent"
                    android:layout_alignParentRight="true"
                    android:src="@drawable/date_changer_forwards"
                    android:layout_marginRight="5dp"/>

            </RelativeLayout>

            <RelativeLayout
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:elevation="1dp"
                android:gravity="center_vertical">

                <ImageView
                    android:id="@+id/imageDCR"
                    android:layout_width="30dp"
                    android:layout_height="match_parent"
                    android:layout_marginLeft="10dp"
                    android:src="@drawable/fire_vector_lightred" />

                <RelativeLayout
                    android:layout_width="wrap_content"
                    android:layout_height="match_parent"
                    android:layout_toRightOf="@id/imageDCR"
                    android:gravity="center_vertical">

                    <TextView
                        android:id="@+id/tvCaloricRequirement"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginLeft="13dp"
                        android:text="Daily Caloric Requirement"
                        android:textColor="@color/black" />

                    <TextView
                        android:id="@+id/tvCaloricRequirementCalculator"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_below="@id/tvCaloricRequirement"
                        android:layout_alignParentLeft="true"
                        android:layout_centerVertical="true"
                        android:layout_marginLeft="13dp"
                        android:text="-"
                        android:textColor="@color/darkestgrey"
                        android:textSize="20dp"
                        android:textStyle="bold" />

                </RelativeLayout>

            </RelativeLayout>

        </RelativeLayout>

        </LinearLayout>

    </ScrollView>

</RelativeLayout>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文