128 lines
4.7 KiB
XML
128 lines
4.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:id="@+id/topbar_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="#a600f9"
|
|
android:clipChildren="false">
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:id="@+id/topbar_levellayout"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginEnd="20dp"
|
|
android:layout_marginStart="5dp"
|
|
android:orientation="vertical"
|
|
android:clipChildren="false">
|
|
|
|
<TextView
|
|
android:id="@+id/topbar_leveldisplay"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/topbar_level_placeholder"
|
|
android:textSize="25sp"/>
|
|
|
|
<ProgressBar
|
|
android:id="@+id/topbar_levelprogress"
|
|
style="?android:attr/progressBarStyleHorizontal"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:progress="50"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<ImageView
|
|
android:id="@+id/topbar_starview"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:layout_centerVertical="true"
|
|
android:layout_toEndOf="@id/topbar_levellayout"
|
|
android:background="@drawable/currency_star"/>
|
|
|
|
<ImageView
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:background="@drawable/currency_energy"
|
|
android:layout_centerVertical="true"
|
|
android:layout_toRightOf="@+id/topbar_starcount"
|
|
android:layout_toEndOf="@+id/topbar_starcount"
|
|
android:layout_marginLeft="20dp"
|
|
android:layout_marginStart="20dp"
|
|
android:id="@+id/topbar_energyview"/>
|
|
|
|
<TextView
|
|
android:id="@+id/topbar_starcount"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerVertical="true"
|
|
android:layout_toEndOf="@+id/topbar_starview"
|
|
android:text="@string/number_placeholder"
|
|
android:textSize="25sp"/>
|
|
|
|
<TextView
|
|
android:id="@+id/topbar_energycount"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerVertical="true"
|
|
android:layout_toEndOf="@+id/topbar_energyview"
|
|
android:text="@string/number_placeholder"
|
|
android:textSize="25sp"/>
|
|
|
|
<ToggleButton
|
|
android:id="@+id/topbar_soundtoggle"
|
|
android:layout_width="50dp"
|
|
android:layout_height="50dp"
|
|
android:layout_alignParentTop="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_margin="5dp"
|
|
android:layout_toStartOf="@+id/topbar_toolshop"
|
|
android:background="@drawable/xml_selector_sound"
|
|
android:textOff=""
|
|
android:textOn=""/>
|
|
|
|
<Button
|
|
android:id="@+id/topbar_toolshop"
|
|
style="@style/GameButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginRight="5dp"
|
|
android:text="@string/topbar_toolshop"/>
|
|
|
|
<TextView
|
|
android:id="@+id/topbar_starcount_decrease"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/number_placeholder"
|
|
android:visibility="invisible"
|
|
android:textSize="20sp"
|
|
android:layout_centerVertical="true"
|
|
android:layout_alignEnd="@+id/topbar_starcount"/>
|
|
|
|
<TextView
|
|
android:id="@+id/topbar_energycount_decrease"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/number_placeholder"
|
|
android:visibility="invisible"
|
|
android:textSize="20sp"
|
|
android:layout_centerVertical="true"
|
|
android:layout_alignEnd="@+id/topbar_energycount"/>
|
|
|
|
<Button
|
|
android:id="@+id/topbar_resetButton"
|
|
style="@style/GameButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/topbar_reset"
|
|
android:layout_marginLeft="64dp"
|
|
android:layout_marginStart="64dp"
|
|
android:layout_alignBaseline="@+id/topbar_soundtoggle"
|
|
android:layout_alignBottom="@+id/topbar_soundtoggle"
|
|
android:layout_toRightOf="@+id/topbar_energycount"
|
|
android:layout_toEndOf="@+id/topbar_energycount"/>
|
|
|
|
</RelativeLayout> |