Hi =) I was just curious, when i am creating an android project in Android Studio, which i believe i have the most recent version of, with a blank activity or whatever it makes a main activity for example... And this main activity comes with 2 xml files, activity-main.xml and content-main.xml Well i have several reference guides and tutorial books that all say to navigate to the activity-main.xml to edit the layout of the actual app. But the contents of activity-main.xml consist of:
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:context="blahblahblah">
<android.support.design.widget.AppBarLayout
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:theme="@style/AppTheme.AppBarOverlay">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
app:popupTheme="@style/AppTheme.PopupOverlay" />
</android.support.design.widget.AppBarLayout>
<include layout="@layout/content_crime"/>
<android.support.design.widget.FloatingActionButton
android:id="@+id/fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_margin="@dimen/fab_margin"
android:src="@android:drawable/ic_dialog_email" />
</android.support.design.widget.CoordinatorLayout>
Im assuming this is only for the newer android versions that come with the floating action button because this file from what i can see controls the action bar and action button... But the app layout for everything else is actually contained in content-main.xml I was just curious what happened to split these to files apart?