commit
74dd8116a3
@ -0,0 +1,29 @@ |
||||
package net.pokeranalytics.android.ui.view |
||||
|
||||
import net.pokeranalytics.android.R |
||||
|
||||
|
||||
enum class CalendarTabs : Displayable { |
||||
NET_RESULTS, |
||||
NET_HOURLY_RATE, |
||||
NUMBER_OF_GAMES, |
||||
WIN_RATIO, |
||||
STANDARD_DEVIATION_PER_HOUR, |
||||
AVERAGE_NET_RESULT, |
||||
AVERAGE_DURATION, |
||||
DURATION_OF_PLAY; |
||||
|
||||
override val resId: Int |
||||
get() { |
||||
return when (this) { |
||||
NET_RESULTS -> R.string.net_result |
||||
NET_HOURLY_RATE -> R.string.hour_rate_without_pauses |
||||
NUMBER_OF_GAMES -> R.string.number_of_records |
||||
WIN_RATIO -> R.string.win_ratio |
||||
STANDARD_DEVIATION_PER_HOUR -> R.string.standard_deviation_per_hour |
||||
AVERAGE_NET_RESULT -> R.string.average_net_result |
||||
AVERAGE_DURATION -> R.string.average_hours_played |
||||
DURATION_OF_PLAY -> R.string.total_hours_played |
||||
} |
||||
} |
||||
} |
||||
@ -1,18 +1,36 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<androidx.constraintlayout.widget.ConstraintLayout |
||||
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"> |
||||
<androidx.constraintlayout.widget.ConstraintLayout 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"> |
||||
|
||||
<com.google.android.material.appbar.AppBarLayout |
||||
android:id="@+id/appBar" |
||||
android:layout_width="0dp" |
||||
android:layout_height="wrap_content" |
||||
android:theme="@style/PokerAnalyticsTheme.Toolbar.Session" |
||||
app:layout_constraintEnd_toEndOf="parent" |
||||
app:layout_constraintStart_toStartOf="parent" |
||||
app:layout_constraintTop_toTopOf="parent"> |
||||
|
||||
<com.google.android.material.tabs.TabLayout |
||||
android:id="@+id/tabs" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
app:tabMode="scrollable"> |
||||
|
||||
</com.google.android.material.tabs.TabLayout> |
||||
|
||||
</com.google.android.material.appbar.AppBarLayout> |
||||
|
||||
<androidx.recyclerview.widget.RecyclerView |
||||
android:id="@+id/recyclerView" |
||||
android:layout_width="0dp" |
||||
android:layout_height="0dp" |
||||
app:layout_constraintBottom_toBottomOf="parent" |
||||
app:layout_constraintEnd_toEndOf="parent" |
||||
app:layout_constraintStart_toStartOf="parent" |
||||
app:layout_constraintTop_toTopOf="parent" /> |
||||
android:id="@+id/recyclerView" |
||||
android:layout_width="0dp" |
||||
android:layout_height="0dp" |
||||
app:layout_constraintBottom_toBottomOf="parent" |
||||
app:layout_constraintEnd_toEndOf="parent" |
||||
app:layout_constraintStart_toStartOf="parent" |
||||
app:layout_constraintTop_toBottomOf="@+id/appBar" /> |
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout> |
||||
Loading…
Reference in new issue