1

I have a RelativeLayout activity. I have another layout for a fragment. The fragment layout is added programmatically to the activity. In the RelativeLayout of the activity there is a LinearLayout with three buttons. How can I set the position of this LinearLayout to be under(in y edge) the fragment without having the fragment in the activity xml?

This is the activity XML structure:

<RelativeLayout 
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"

    <LinearLayout
         >

        <Button
             />

        <Button
            />

        <Button
            />
    </LinearLayout>

 </RelativeLayout>  
eddie
  • 1,252
  • 3
  • 15
  • 20
dephinera
  • 3,703
  • 11
  • 41
  • 75

1 Answers1

0

Try bring to front your layout this post could helps you: Defining Z order of views of RelativeLayout in Android

and android documentation: http://developer.android.com/reference/android/view/View.html#bringToFront()

Community
  • 1
  • 1
ƒernando Valle
  • 3,634
  • 6
  • 36
  • 58