I have searched a bit through the net but i haven't found any viable solution to my problem. I have a button within my XML file, however i would like to have 2 smaller buttons underneath it that are not visible. And at runtime when the button gets clicked the two others get visible. I know how to achieve the last part. The last button that is not within a relative layout, i would like to have invisible under button3.
However within my xml file i do not manage to place the buttons under the (super)button. Here is my XML code and i hope you guys can help out.
<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"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin"
tools:context=".MyActivity">
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:orientation="horizontal"
android:id="@+id/linearLayout3">
<Button
android:layout_width="75dp"
android:layout_height="wrap_content"
style="?android:attr/buttonBarButtonStyle"
android:id="@+id/button1"
android:textColor="#FFFFFF"
android:background="@drawable/round_left_corner"
android:drawablePadding="-10sp"/>
<View android:layout_height="fill_parent"
android:layout_width="1px"
android:background="#90909090"
android:layout_marginBottom="5dp"
android:layout_marginTop="5dp"
android:id="@+id/separator" />
<Button
android:layout_width="fill_parent"
android:layout_height="wrap_content"
style="?android:attr/buttonBarButtonStyle"
android:text="Login met Facebook"
android:layout_weight="1"
android:id="@+id/button2"
android:textColor="#FFFFFF"
android:drawableRight="@drawable/ic_action_forward"
android:background="@drawable/round_right_corner"/>
</LinearLayout>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/linearLayout3"
android:layout_marginTop="45dp"
android:layout_alignRight="@+id/linearLayout3"
android:layout_alignEnd="@+id/linearLayout3"
android:id="@+id/linearLayout5">
<Button
android:layout_width="75dp"
android:layout_height="wrap_content"
style="?android:attr/buttonBarButtonStyle"
android:id="@+id/button3"
android:textColor="#FFFFFF"
android:background="@drawable/round_left_corner"
android:drawable="@drawable/ic_action_email"
android:drawablePadding="-10sp"/>
<View android:layout_height="fill_parent"
android:layout_width="1px"
android:background="#90909090"
android:layout_marginBottom="5dp"
android:layout_marginTop="5dp"
android:id="@+id/separator2" />
<Button
android:layout_width="fill_parent"
android:layout_height="wrap_content"
style="?android:attr/buttonBarButtonStyle"
android:text="Login met E-Mail"
android:layout_weight="1"
android:id="@+id/button4"
android:textColor="#FFFFFF"
android:drawableRight="@drawable/ic_action_forward"
android:background="@drawable/round_right_corner"/>
</LinearLayout>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Registreer"
android:id="@+id/button5"
android:layout_below="@+id/linearLayout5"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_marginLeft="84dp" />