I have an activity `LoginActivity` and a fragment `GoogleSignInFragment`. The login logic for the app works perfectly okay but the only thing bugging me is the fact that the `GoogleSignInFragment` didn't show up in the XML preview for `activity_login.xml`. Without it showing up, it'll be very difficult for me to move my code to Fragments, since I can't style the activity as well anymore

Here's all the relevant code...

`LoginActivity.java`

```java
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_login);

    getSupportFragmentManager()
                .beginTransaction()
                .replace(R.id.sign_in_google, new GoogleSignInFragment())
                .commit();

}

```

`activity_login.xml`

```xml
<FrameLayout
    android:id="@+id/sign_in_google"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    tools:layout="@layout/fragment_sign_in_google_button"/>

```

`GoogleSignInFragment.java`

```java
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
    // Inflate the layout for this fragment
    View v = inflater.inflate(R.layout.fragment_google_sign_in_button, container, false);

    return v;
}

```

`fragment_google_sign_in_button.xml`

```xml
<?xml version="1.0" encoding="utf-8"?>
<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="wrap_content"
    android:layout_marginTop="16dp"
    tools:context=".GoogleSignInFragment">

    <com.google.android.gms.common.SignInButton
        android:id="@+id/sign_in_google_button"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center_horizontal" />

</FrameLayout>

```