<LinearLayout
	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="fill_parent"
	android:orientation="vertical">

	<LinearLayout
		android:layout_width="fill_parent"
		android:layout_height="wrap_content"
		android:background="@drawable/titlebar"
		android:gravity="center_vertical"
		android:orientation="horizontal"
		android:padding="2dp">

		<!-- Button to open slider menu -->

		<ImageView
			android:contentDescription="@string/app_name"
			android:layout_width="40dp"
			android:layout_height="40dp"
			android:id="@+id/iv_logo"
			android:src="@drawable/ic_launcher"
			android:adjustViewBounds="true"
			android:layout_weight=".2"
			android:maxHeight="45dp"
			android:maxWidth="45dp"
			android:padding="1dp"/>

		<!-- Layout with the app title and current section -->

		<LinearLayout
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"
			android:layout_gravity="center"
			android:layout_weight=".8"
			android:gravity="center"
			android:orientation="vertical" >

			<!-- App name. Remains unchanged -->

			<TextView
				android:layout_width="wrap_content"
				android:layout_height="wrap_content"
				android:gravity="center"
				android:text="@string/app_name"
				android:textSize="18sp"
				android:textStyle="bold" />

			<!-- Section title -->

			<TextView
				android:id="@+id/activity_main_content_title"
				android:layout_width="wrap_content"
				android:layout_height="wrap_content"
				android:gravity="center"
				android:text="@string/menu_home"
				android:textSize="20sp" />

		</LinearLayout>

		<ImageButton
			android:layout_width="40dp"
			android:layout_height="match_parent"
			android:src="@drawable/ic_expand"
			android:contentDescription="@string/tutorial_menu"
			android:onClick="showMenu"
			android:layout_weight=".2"
			android:id="@+id/bt_menu"
			app:srcCompat="@drawable/ic_expand"
			android:background="#00000000"/>

		<ProgressBar
			android:id="@+id/pb_sync"
			android:layout_width="40dp"
			android:layout_height="40dp"
			android:layout_weight=".2"
			android:visibility="gone"
			android:maxHeight="40dp"
			android:maxWidth="40dp"/>

	</LinearLayout>

	<!-- The part where the fragments will be loaded -->

	<HorizontalScrollView
		android:layout_width="wrap_content"
		android:layout_height="50dp"
		android:id="@+id/sv_menu"
		android:scrollIndicators="none"
		android:requiresFadingEdge="horizontal"
		android:fadingEdgeLength="125dp"
		android:background="@color/background_bar_gradient"
		tools:ignore="UnusedAttribute">

		<LinearLayout
			android:orientation="horizontal"
			android:layout_width="wrap_content"
			android:layout_height="match_parent"
			>

			<RelativeLayout
				android:orientation="vertical"
				android:layout_width="100dp"
				android:layout_height="match_parent"
				android:id="@+id/rl_menu_home"
				android:layout_marginRight="0.5dp"
				android:layout_marginLeft="0.5dp">

				<TextView
					android:layout_width="wrap_content"
					android:layout_height="wrap_content"
					android:textAppearance="?android:attr/textAppearanceMedium"
					android:text="@string/menu_home"
					android:layout_gravity="top"
					android:textSize="15sp"
					android:layout_centerInParent="true"
					android:textStyle="bold"
					android:id="@+id/tv_menu_home"/>

				<ImageView
					android:layout_width="match_parent"
					android:layout_height="8dp"
					android:id="@+id/iv_menu_home"
					android:background="@color/menu_selected"
					android:alpha="1"
					android:layout_gravity="bottom"
					android:layout_alignParentStart="false"
					android:layout_alignParentEnd="false"
					android:layout_alignParentLeft="false"
					android:layout_alignParentRight="false"
					android:layout_alignParentBottom="true"
					tools:ignore="ContentDescription"/>
			</RelativeLayout>

			<RelativeLayout
				android:orientation="vertical"
				android:layout_width="100dp"
				android:layout_height="match_parent"
				android:id="@+id/rl_menu_location"
				android:layout_marginLeft="1dp"
				android:layout_marginRight="1dp">

				<TextView
					android:layout_width="wrap_content"
					android:layout_height="wrap_content"
					android:textAppearance="?android:attr/textAppearanceMedium"
					android:text="@string/menu_location"
					android:layout_gravity="top"
					android:textSize="15sp"
					android:layout_centerInParent="true"
					android:id="@+id/tv_menu_location"/>

				<ImageView
					android:layout_width="match_parent"
					android:layout_height="2dp"
					android:id="@+id/iv_menu_location"
					android:background="@color/menu_selected"
					android:alpha="1"
					android:layout_gravity="bottom"
					android:layout_alignParentStart="false"
					android:layout_alignParentEnd="false"
					android:layout_alignParentLeft="false"
					android:layout_alignParentRight="false"
					android:layout_alignParentBottom="true"
					tools:ignore="ContentDescription"/>
			</RelativeLayout>

			<RelativeLayout
				android:orientation="vertical"
				android:layout_width="100dp"
				android:layout_height="match_parent"
				android:id="@+id/rl_menu_lablanca"
				android:layout_marginLeft="1dp"
				android:layout_marginRight="1dp">

				<TextView
					android:layout_width="wrap_content"
					android:layout_height="wrap_content"
					android:textAppearance="?android:attr/textAppearanceMedium"
					android:text="@string/menu_lablanca"
					android:layout_gravity="top"
					android:textSize="15sp"
					android:layout_centerInParent="true"
					android:id="@+id/tv_menu_lablanca"/>

				<ImageView
					android:layout_width="match_parent"
					android:layout_height="2dp"
					android:id="@+id/iv_menu_lablanca"
					android:background="@color/menu_selected"
					android:alpha="1"
					android:layout_gravity="bottom"
					android:layout_alignParentStart="false"
					android:layout_alignParentEnd="false"
					android:layout_alignParentLeft="false"
					android:layout_alignParentRight="false"
					android:layout_alignParentBottom="true"
					tools:ignore="ContentDescription"/>
			</RelativeLayout>

			<RelativeLayout
				android:orientation="vertical"
				android:layout_width="100dp"
				android:layout_height="match_parent"
				android:id="@+id/rl_menu_activities"
				android:layout_marginLeft="1dp"
				android:layout_marginRight="1dp">

				<TextView
					android:layout_width="wrap_content"
					android:layout_height="wrap_content"
					android:textAppearance="?android:attr/textAppearanceMedium"
					android:text="@string/menu_activities"
					android:layout_gravity="top"
					android:textSize="15sp"
					android:layout_centerInParent="true"
					android:id="@+id/tv_menu_activities"/>

				<ImageView
					android:layout_width="match_parent"
					android:layout_height="2dp"
					android:id="@+id/iv_menu_activities"
					android:background="@color/menu_selected"
					android:alpha="1"
					android:layout_gravity="bottom"
					android:layout_alignParentStart="false"
					android:layout_alignParentEnd="false"
					android:layout_alignParentLeft="false"
					android:layout_alignParentRight="false"
					android:layout_alignParentBottom="true"
					tools:ignore="ContentDescription"/>
			</RelativeLayout>

			<RelativeLayout
				android:orientation="vertical"
				android:layout_width="100dp"
				android:layout_height="match_parent"
				android:id="@+id/rl_menu_blog"
				android:layout_marginLeft="1dp"
				android:layout_marginRight="1dp">

				<TextView
					android:layout_width="wrap_content"
					android:layout_height="wrap_content"
					android:textAppearance="?android:attr/textAppearanceMedium"
					android:text="@string/menu_blog"
					android:layout_gravity="top"
					android:textSize="15sp"
					android:layout_centerInParent="true"
					android:id="@+id/tv_menu_blog"/>

				<ImageView
					android:layout_width="match_parent"
					android:layout_height="2dp"
					android:id="@+id/iv_menu_blog"
					android:background="@color/menu_selected"
					android:alpha="1"
					android:layout_gravity="bottom"
					android:layout_alignParentStart="false"
					android:layout_alignParentEnd="false"
					android:layout_alignParentLeft="false"
					android:layout_alignParentRight="false"
					android:layout_alignParentBottom="true"
					tools:ignore="ContentDescription"/>
			</RelativeLayout>

			<RelativeLayout
				android:orientation="vertical"
				android:layout_width="100dp"
				android:layout_height="match_parent"
				android:id="@+id/rl_menu_gallery"
				android:layout_marginLeft="1dp"
				android:layout_marginRight="1dp">

				<TextView
					android:layout_width="wrap_content"
					android:layout_height="wrap_content"
					android:textAppearance="?android:attr/textAppearanceMedium"
					android:text="@string/menu_gallery"
					android:layout_gravity="top"
					android:textSize="15sp"
					android:layout_centerInParent="true"
					android:id="@+id/tv_menu_gallery"/>

				<ImageView
					android:layout_width="match_parent"
					android:layout_height="2dp"
					android:id="@+id/iv_menu_gallery"
					android:background="@color/menu_selected"
					android:alpha="1"
					android:layout_gravity="bottom"
					android:layout_alignParentStart="false"
					android:layout_alignParentEnd="false"
					android:layout_alignParentLeft="false"
					android:layout_alignParentRight="false"
					android:layout_alignParentBottom="true"
					tools:ignore="ContentDescription"/>
			</RelativeLayout>

		</LinearLayout>
	</HorizontalScrollView>

	<ScrollView
		android:layout_width="fill_parent"
		android:layout_height="wrap_content"
		android:id="@+id/sv_main_content">

		<FrameLayout
			android:id="@+id/activity_main_content_fragment"
			android:layout_width="match_parent"
			android:layout_height="match_parent"
			tools:ignore="ScrollViewSize">

		</FrameLayout>
	</ScrollView>

</LinearLayout>

