I have two layouts that I want to change between each other when clicking a button. They are full screen views like this:
<FrameLayout 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:background="#FF0000"
tools:context=".FullscreenActivity" >
and I want them to change between them when clicking
<Button
android:id="@+id/green_button"
style="?buttonBarButtonStyle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/green" />
Am I supposed to change something in src/com.example.layout/fullscreenactivity.java onClick() or where can I change so this happens?
Big thanks in advance