<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_gravity="center_horizontal"
    android:orientation="vertical"
	style="@style/AndorsTrail_Style_TabFrame" >

    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_weight="1" >

        <LinearLayout
            android:id="@+id/heroinfo_container"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical" >

            <TextView
                android:id="@+id/heroinfo_title"
                style="@style/titleWithIcon"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="?attr/ui_theme_stdframe_bitmap"
                android:drawableLeft="@drawable/char_hero_large"
                android:text="@android:string/unknownName" />

            <TableLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="?attr/ui_theme_stdframe_bitmap" >
                <TableRow>

                    <TextView
                        style="@style/traitsinfo_label"
                        android:text="@string/heroinfo_mode" />

                    <TextView
                        android:id="@+id/heroinfo_mode"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:text="@android:string/unknownName" />

                </TableRow>
                <TableRow>

                    <TextView
                        style="@style/traitsinfo_label"
                        android:text="@string/heroinfo_level" />

                    <TextView
                        android:id="@+id/heroinfo_level"
                        android:text="@android:string/unknownName" />
                </TableRow>

                <TableRow>

                    <TextView
                        style="@style/traitsinfo_label"
                        android:text="@string/heroinfo_totalexperience" />

                    <TextView
                        android:id="@+id/heroinfo_totalexperience"
                        android:text="@android:string/unknownName" />
                </TableRow>
            </TableLayout>

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="?attr/ui_theme_stdframe_bitmap"
                android:orientation="vertical" >

                <com.gpl.rpg.AndorsTrail.view.RangeBar
                    android:id="@+id/heroinfo_healthbar"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content" />

                <com.gpl.rpg.AndorsTrail.view.RangeBar
                    android:id="@+id/heroinfo_expbar"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="5sp" />
                
                <com.gpl.rpg.AndorsTrail.view.RangeBar
                    android:id="@+id/heroinfo_apbar"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="5sp" />
            </LinearLayout>

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="?attr/ui_theme_stdframe_bitmap"
                android:orientation="vertical" >

                <TextView
                    style="@style/actorinfo_sectionheader"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:text="@string/actorinfo_currenttraits" />

                <View
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="-1dp"
                    android:layout_marginBottom="-1dp"
                    android:background="?attr/ui_theme_listseparator_drawable" />

                <TableLayout
                    android:id="@+id/actorinfo_stats_table"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content" >

<!--                     <TableRow>

                        <TextView
                            style="@style/traitsinfo_label"
                            android:text="@string/heroinfo_actionpoints" />

                        <TextView android:id="@+id/heroinfo_ap" />
                    </TableRow> -->

                    <TableRow>

                        <TextView
                            style="@style/traitsinfo_label"
                            android:text="@string/heroinfo_reequip_cost" />

                        <TextView android:id="@+id/heroinfo_reequip_cost" />
                    </TableRow>

                    <TableRow>

                        <TextView
                            style="@style/traitsinfo_label"
                            android:text="@string/heroinfo_useitem_cost" />

                        <TextView android:id="@+id/heroinfo_useitem_cost" />
                    </TableRow>

                    <include layout="@layout/traitsinfoview" />
                </TableLayout>

                <com.gpl.rpg.AndorsTrail.view.ItemEffectsView
                    android:id="@+id/actorinfo_onhiteffects"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content" />

                <TextView
                    android:id="@+id/actorinfo_currentconditions_title"
                    style="@style/actorinfo_sectionheader"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:text="@string/actorinfo_currentconditions" />

                <com.gpl.rpg.AndorsTrail.view.ActorConditionList
                    android:id="@+id/actorinfo_currentconditions"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content" />

                <TextView
                    style="@style/actorinfo_sectionheader"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:text="@string/actorinfo_basetraits" />

                <View
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="-1dp"
                    android:layout_marginBottom="-1dp"
                    android:background="?attr/ui_theme_listseparator_drawable" />

                <TableLayout
                    android:id="@+id/heroinfo_basestats_table"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content" >

                    <TableRow>

                        <TextView
                            style="@style/traitsinfo_label"
                            android:text="@string/traitsinfo_base_max_hp" />

                        <TextView android:id="@+id/basetraitsinfo_max_hp" />
                    </TableRow>

                    <TableRow>

                        <TextView
                            style="@style/traitsinfo_label"
                            android:text="@string/traitsinfo_base_max_ap" />

                        <TextView android:id="@+id/basetraitsinfo_max_ap" />
                    </TableRow>

                    <TableRow>

                        <TextView
                            style="@style/traitsinfo_label"
                            android:text="@string/heroinfo_reequip_cost" />

                        <TextView android:id="@+id/heroinfo_base_reequip_cost" />
                    </TableRow>

                    <TableRow>

                        <TextView
                            style="@style/traitsinfo_label"
                            android:text="@string/heroinfo_useitem_cost" />

                        <TextView android:id="@+id/heroinfo_base_useitem_cost" />
                    </TableRow>

                    <include layout="@layout/traitsinfoview" />
                </TableLayout>

                <TextView
                    style="@style/actorinfo_sectionheader"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:text="@string/heroinfo_gamestats" />

                <View
                    android:id="@+id/actorinfo_currentconditions_title2"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="-1dp"
                    android:layout_marginBottom="-1dp"
                    android:background="?attr/ui_theme_listseparator_drawable" />

                <include layout="@layout/heroinfo_stats_gamestats" />
            </LinearLayout>
        </LinearLayout>
    </ScrollView>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:gravity="center_vertical"
        android:background="?attr/ui_theme_stdframe_bitmap"
        android:orientation="horizontal" >

        <Button
            android:id="@+id/heroinfo_levelup"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:text="@string/heroinfo_levelup" />
    </LinearLayout>

</LinearLayout>