95 lines
4.2 KiB
XML
95 lines
4.2 KiB
XML
<?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"
|
|
android:id="@+id/game_coordinate_layout"
|
|
tools:context="tu_darmstadt.sudoku.activity.GameActivity">
|
|
|
|
<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" >
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:weightSum="14"
|
|
android:orientation="horizontal"
|
|
android:layout_marginLeft="@dimen/activity_horizontal_margin"
|
|
android:layout_marginRight="@dimen/activity_horizontal_margin"
|
|
android:gravity="center_vertical">
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/gametype_unspecified"
|
|
android:id="@+id/gameModeText"
|
|
android:layout_weight="8"/>
|
|
<RelativeLayout
|
|
android:layout_width="0dp"
|
|
android:layout_weight="4"
|
|
android:layout_height="wrap_content">
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/difficulty_easy"
|
|
android:layout_centerHorizontal="true"
|
|
android:id="@+id/difficultyText"
|
|
/>
|
|
<RatingBar
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:numStars="3"
|
|
android:clickable="false"
|
|
android:id="@+id/gameModeStar"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_below="@+id/difficultyText"
|
|
style="?android:attr/ratingBarStyleSmall"/>
|
|
</RelativeLayout>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="00:00"
|
|
android:layout_weight="2"
|
|
android:id="@+id/timerView"
|
|
android:gravity="right"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_centerVertical="true"/>
|
|
</LinearLayout>
|
|
</android.support.v7.widget.Toolbar>
|
|
|
|
</android.support.design.widget.AppBarLayout>
|
|
|
|
<android.support.v4.widget.DrawerLayout 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:id="@+id/drawer_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginTop="?attr/actionBarSize"
|
|
android:fitsSystemWindows="true"
|
|
tools:openDrawer="start">
|
|
|
|
<include layout="@layout/content_game_view" />
|
|
|
|
<android.support.design.widget.NavigationView android:id="@+id/nav_view"
|
|
android:layout_width="200dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="start"
|
|
android:background="@color/white"
|
|
app:menu="@menu/menu_drawer" />
|
|
<!--app:headerLayout="@layout/nav_header_game_view"-->
|
|
|
|
</android.support.v4.widget.DrawerLayout>
|
|
|
|
</android.support.design.widget.CoordinatorLayout>
|