How to place static positioned button in a co-ordinator layout such that contents don't overlap?

Course Queries Syllabus Queries 2 years ago

0 1 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Syllabus Queries related to Course Queries. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (1)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago


I have created a co-ordinator layout which has an Appcompat button placed at the bottom. I also have a relative layout inside that co-ordinator layout which is inside a nested scroll view. Output I am getting is like the fixed button overlaps the contents of the relative layout which does not let some of the elements inside the relative layout to be viewed. Please help me out guys! Regards, Thanks.`




layout_width="match_parent"
    android:orientation="vertical"
    android:layout_height="match_parent"
    tools:context=".Hashmapretrieval"
    app:contentScrim="#000000"
    android:fitsSystemWindows="true"
    app:statusBarBackground="@android:color/transparent"
    android:background="#ffffff"
    >


    layout_width="match_parent"
        android:layout_height="300dp"
        android:fitsSystemWindows="true"
        android:background="#000000"
        android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">

        layout_width="match_parent"
            android:layout_height="match_parent"
            android:fitsSystemWindows="true"
            app:contentScrim="#000000"
            android:background="#000000"
            app:expandedTitleMarginEnd="64dp"
            app:expandedTitleMarginStart="48dp"
            app:layout_scrollFlags="scroll|exitUntilCollapsed">

            layout_scrollFlags="scroll|enterAlways|enterAlwaysCollapsed"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:scaleType="fitXY"
                android:id="@+id/imagev"
                android:background="#000000"
                android:fitsSystemWindows="true"
                app:layout_collapseMode="parallax"
                android:minHeight="100dp"/>

            layout_width="match_parent"
                android:layout_height="?attr/actionBarSize"
                app:layout_scrollFlags="scroll|enterAlways"
                app:layout_collapseMode="pin"
                app:popupTheme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
            



        

    



    layout_width="match_parent"
        android:layout_height="match_parent"
        android:id="@+id/ns"
        app:layout_behavior="@string/appbar_scrolling_view_behavior">


layout_width="match_parent"
    android:layout_height="wrap_content"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:id="@+id/rr1"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    android:background="#ffffff"
    android:fitsSystemWindows="true"
    android:layout_alignParentBottom="true"
    android:paddingBottom="@dimen/activity_vertical_margin"
    app:layout_behavior="@string/appbar_scrolling_view_behavior"
    >


    layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_marginTop="5dp"
        android:background="#ffffff">

        layout_width="match_parent"
            android:layout_height="match_parent"
            android:text=""
            android:textSize="15sp"
            android:textColor="#000000"
            android:id="@+id/placeid" />

        layout_width="match_parent"
            android:id="@+id/rel1"
            android:layout_height="0.3dp" android:background="#000000" android:layout_below="@+id/placeid" android:layout_marginTop="20dp">
        

        layout_width="match_parent"
            android:layout_height="wrap_content"
            android:id="@+id/rel3"
            android:background="#ffffff"
            android:layout_below="@+id/rel1"
            android:layout_marginTop="10dp">

            layout_width="match_parent"
                android:layout_height="match_parent"
                android:id="@+id/tablelayout"
                android:layout_marginTop="10dp"
                android:background="#ffffff">
                layout_height="0dp"
                    android:layout_width="match_parent"
                    >
                layout_width="wrap_content"
                    android:layout_height="match_parent"
                    android:textSize="17sp"
                    android:text="Teaching Skills"
                    android:id="@+id/QF"
                    android:layout_weight="3"
                    android:gravity="left"
                    android:padding="5dp"

                    />

                layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="No Ratings"
                    android:textSize="17sp"
                    android:id="@+id/rate1"
                    android:gravity="center"
                    android:padding="5dp"
                    android:layout_weight="0"
                    />

                






            layout_height="0dp"
                android:layout_width="match_parent"
                >
                layout_width="wrap_content"
                    android:layout_height="match_parent"
                    android:textSize="17sp"
                    android:text="Classroom Culture"

                    android:layout_weight="3"
                    android:gravity="left"
                    android:padding="5dp"

                    android:id="@+id/QS"

                    />
                layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="No Ratings"
                    android:textSize="17sp"
                    android:id="@+id/rate2"
                    android:layout_weight="0"
                    android:gravity="center"
                    android:padding="5dp"


                    />

            





            layout_height="0dp"
                android:layout_width="match_parent"
                >

                layout_width="wrap_content"
                    android:layout_height="match_parent"
                    android:textSize="17sp"
                    android:text="Syllabus Covered"
                    android:layout_weight="3"
                    android:gravity="left"
                    android:padding="5dp"

                    android:id="@+id/QT"
                    />

                layout_width="wrap_content"
                    android:layout_height="match_parent"
                    android:text="No Ratings"
                    android:textSize="17sp"
                    android:id="@+id/rate3"
                    android:layout_weight="0"
                    android:gravity="center"
                    android:padding="5dp"


                    />

            




            layout_height="0dp"
                android:layout_width="match_parent"
                >
                layout_width="wrap_content"
                    android:layout_height="match_parent"
                    android:textSize="17sp"
                    android:text="Extra help when needed"

                    android:layout_weight="3"
                    android:gravity="left"
                    android:padding="5dp"
                    android:id="@+id/QFo"
                    />

                layout_width="wrap_content"
                    android:layout_height="match_parent"
                    android:text="No Ratings"
                    android:textSize="17sp"
                    android:id="@+id/rate4"
                    android:layout_weight="0"
                    android:gravity="center"
                    android:padding="5dp"

                    />

            



                layout_height="0dp"
                    android:layout_width="match_parent"
                    android:layout_gravity="center_vertical|center_horizontal|center"
                    >

                layout_width="wrap_content"
                    android:layout_height="match_parent"
                    android:textSize="17sp"
                    android:layout_weight="3"
                    android:gravity="left"
                    android:padding="5dp"
                    android:text="Recommendations"
                    android:id="@+id/QFi"

                    />

                layout_width="wrap_content"
                    android:layout_height="match_parent"
                    android:text="No Ratings"
                    android:textSize="17sp"
                    android:id="@+id/rate5"
                    android:layout_weight="0"
                    android:gravity="center"
                    android:padding="5dp"

                    />
                



                layout_width="match_parent"
                    android:layout_height="0.3dp" android:background="#000000" android:layout_marginTop="10dp" android:layout_below="@+id/tr1">
                




        layout_height="0dp"
            android:layout_width="match_parent">
        layout_width="wrap_content"
                        android:layout_height="match_parent"
            android:textSize="17sp"
            android:layout_weight="3"
            android:gravity="left"
            android:padding="5dp"
                        android:text="Overall Ratings"
                        android:id="@+id/Or"
                        />

                    layout_width="wrap_content"
                        android:layout_height="match_parent"
                        android:text="No Ratings"
                        android:textSize="17sp"
                        android:id="@+id/rateo"
                        android:layout_weight="0"
                        android:gravity="center"
                        android:padding="5dp"


                        />


            



                layout_width="match_parent"
                    android:layout_height="0.3dp" android:background="#000000" android:layout_marginTop="10dp" android:layout_below="@+id/tr2">
                

                layout_height="0dp"
                    android:layout_width="match_parent" android:padding="15dp"
                    > 




                layout_height="0dp"
                    android:layout_width="match_parent">

        layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textAppearance="?android:attr/textAppearanceMedium"
            android:text="Fees:"
            android:textSize="17sp"
            android:id="@+id/tv1"

            android:layout_weight="3"
            android:gravity="left"
            android:padding="5dp"
             />



        layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textAppearance="?android:attr/textAppearanceMedium"
            android:text=""
            android:textSize="17sp"

            android:id="@+id/fees"

            android:layout_weight="0"
            android:gravity="center"
            android:padding="5dp"
             />

                



                layout_height="0dp"
                    android:layout_width="match_parent">
        layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textAppearance="?android:attr/textAppearanceMedium"
            android:text="Installment:"
            android:textSize="17sp"

            android:id="@+id/tv2"
            android:layout_weight="3"
            android:gravity="left"
            android:padding="5dp"
            />

        layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textAppearance="?android:attr/textAppearanceMedium"
            android:text=""
            android:id="@+id/instavl"
            android:layout_below="@+id/fees"
            android:layout_weight="0"
            android:gravity="center"
            android:textSize="17sp"

            android:padding="5dp"
            />
                



                layout_height="0dp"
                    android:layout_width="match_parent">
        layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textAppearance="?android:attr/textAppearanceMedium"
            android:text="Duration:"
            android:id="@+id/tv3"
            android:layout_weight="3"
            android:textSize="17sp"

            android:gravity="left"
            android:padding="5dp"
            />

        layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textAppearance="?android:attr/textAppearanceMedium"
            android:text=""
            android:id="@+id/duration"
            android:layout_weight="0"
            android:textSize="17sp"

            android:gravity="center"
            android:padding="5dp"
            />
                


                layout_height="0dp"
                    android:layout_width="match_parent">

        layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textAppearance="?android:attr/textAppearanceMedium"
            android:text="Group Discount:"
            android:textSize="17sp"

            android:layout_weight="3"
            android:gravity="left"
            android:padding="5dp"
            />

        layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textAppearance="?android:attr/textAppearanceMedium"
            android:text=""
            android:textSize="17sp"

            android:id="@+id/groupdiscount"
            android:layout_weight="0"
            android:gravity="center"
            android:padding="5dp"
            />
                


                layout_height="0dp"
                    android:layout_width="match_parent">

        layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textAppearance="?android:attr/textAppearanceMedium"
            android:text="One Time Discount:"
            android:textSize="17sp"

            android:id="@+id/tv5"
            android:layout_weight="3"
            android:gravity="left"
            android:padding="5dp"
            />

        layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textAppearance="?android:attr/textAppearanceMedium"
            android:text=""
            android:textSize="17sp"


            android:id="@+id/otpdiscount"
            android:layout_weight="0"
            android:gravity="center"
            android:padding="5dp"
            />
                



            

                layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="10dp"
                    android:id="@+id/rr3"
                    android:layout_below="@+id/tablelayout">

                    

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.