Commit df4aacf0 authored by Adrien Oliva's avatar Adrien Oliva

feat(character) Finalyse character switch layout

Set up activity container
Set up character listview
Set up single character fragment

GTLAB #4Signed-off-by: Adrien Oliva's avatarAdrien Oliva <olivaa+gitlab@yapbreak.fr>
parent ee9f2345
Pipeline #480 passed with stage
in 0 seconds
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
<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"
tools:context=".CharacterSwitch">
<ListView
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/character_switch_listview"/>
</android.support.constraint.ConstraintLayout>
\ No newline at end of file
android:layout_height="wrap_content"
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_character_switch" />
</android.support.design.widget.CoordinatorLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto">
<ImageView
android:id="@+id/character_avatar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_alignParentBottom="true"
android:contentDescription="@string/character_avatar_alt"
android:minWidth="50dip"
android:src="@mipmap/ic_default_avatar"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="@id/character_race_label"/>
<TextView
android:id="@+id/character_name_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/character_name_default"
android:textSize="24sp"
android:textStyle="bold"
app:layout_constraintLeft_toRightOf="@id/character_avatar"
/>
<TextView
android:id="@+id/character_race_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/character_race_default"
android:textStyle="italic"
app:layout_constraintLeft_toRightOf="@id/character_avatar"
app:layout_constraintTop_toBottomOf="@id/character_name_label"/>
<TextView
android:id="@+id/character_level_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/character_level_default"
app:layout_constraintTop_toBottomOf="@id/character_name_label"
app:layout_constraintRight_toRightOf="parent"/>
</android.support.constraint.ConstraintLayout>
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/activity_character_switch"
tools:context=".CharacterSwitch"
tools:showIn="@layout/activity_character_switch" >
<ListView
android:id="@+id/character_listview"
android:layout_width="match_parent"
android:layout_height="match_parent" >
</ListView>
</android.support.constraint.ConstraintLayout>
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto">
......
......@@ -61,4 +61,8 @@
<string name="action_debug_grab_database">Copie base de données</string>
<string name="action_debug_grab_database_result">"Base de données disponnible sous "</string>
<string name="title_activity_character_switch">Changement de personnage</string>
<string name="character_avatar_alt">Avatar du personnage</string>
<string name="character_name_default">Nom du personnage</string>
<string name="character_race_default">Race du personnage</string>
<string name="character_level_default">Niveau</string>
</resources>
\ No newline at end of file
......@@ -25,4 +25,8 @@
<!-- Strings from Character switch activity -->
<string name="title_activity_character_switch">Character Switch</string>
<string name="character_avatar_alt">Avatar image of current character</string>
<string name="character_name_default">Character name</string>
<string name="character_race_default">Character race default</string>
<string name="character_level_default">Level</string>
</resources>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment