axml problem with relative layout

Hello !
I'm trying to do something like this :

I've this axml :

    <RelativeLayout
        android:orientation="vertical"
        android:id="@+id/layoutImg"
        android:layout_width="match_parent"
        android:layout_marginTop="80dp"
        android:layout_height="wrap_content">
        <RelativeLayout
            android:orientation="horizontal"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:gravity="center_horizontal"
            android:id="container">
            <ImageView
                android:id="@+id/picture"
                android:layout_height="200dp"
                android:layout_width="200dp"
                android:src="@drawable/blade"
                android:layout_alignParentRight="@id/container"
                android:layout_centerInParent="true" />
            <LinearLayout
                android:orientation="vertical"
                android:align_parentRight="true"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginLeft="20dp"
                android:layout_alignParentEnd="true">
                <Button
                    android:id="@+id/buttonSoluce1"
                    android:layout_height="50dp"
                    android:layout_width="match_parent"
                    android:text="H1" />
                <Button
                    android:id="@+id/buttonSoluce2"
                    android:layout_height="48.0dp"
                    android:layout_width="match_parent"
                    android:text="H2" />
            </LinearLayout>
        </RelativeLayout>
        <LinearLayout
            android:orientation="vertical"
            android:id="@+id/responseLetter"
            android:layout_width="match_parent"
            android:layout_height="wrap_content" />
    </RelativeLayout>

But that's make me this...

Could you help me please !

Best Answer

Answers

  • Yeah ! That's work fine ! THANK YOU VERY MUCH

Sign In or Register to comment.