parent
c7d9d22a28
commit
7fce966159
@ -1,57 +1,59 @@ |
||||
<?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.appcompat.widget.Toolbar |
||||
android:id="@+id/toolbar" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="?attr/actionBarSize" |
||||
app:layout_constraintEnd_toEndOf="parent" |
||||
app:layout_constraintStart_toStartOf="parent" |
||||
app:layout_constraintTop_toTopOf="parent" |
||||
app:title="@string/app_name" /> |
||||
|
||||
<FrameLayout |
||||
android:id="@+id/legendContainer" |
||||
android:layout_width="0dp" |
||||
android:layout_height="wrap_content" |
||||
app:layout_constraintEnd_toEndOf="parent" |
||||
app:layout_constraintStart_toStartOf="parent" |
||||
app:layout_constraintTop_toBottomOf="@+id/toolbar"> |
||||
|
||||
<!--<include layout="@layout/layout_legend_default"/>--> |
||||
|
||||
</FrameLayout> |
||||
|
||||
<FrameLayout |
||||
android:id="@+id/chartContainer" |
||||
android:layout_width="0dp" |
||||
android:layout_height="0dp" |
||||
app:layout_constraintBottom_toTopOf="@id/chipGroup" |
||||
app:layout_constraintEnd_toEndOf="parent" |
||||
app:layout_constraintStart_toStartOf="parent" |
||||
app:layout_constraintTop_toBottomOf="@+id/legendContainer"></FrameLayout> |
||||
|
||||
<com.google.android.material.chip.ChipGroup |
||||
android:id="@+id/chipGroup" |
||||
android:layout_width="0dp" |
||||
android:layout_height="wrap_content" |
||||
app:layout_constraintBottom_toBottomOf="parent" |
||||
app:layout_constraintEnd_toEndOf="parent" |
||||
app:layout_constraintStart_toStartOf="parent" |
||||
app:singleSelection="true" |
||||
tools:layout_height="60dp"> |
||||
|
||||
</com.google.android.material.chip.ChipGroup> |
||||
|
||||
<!--<com.github.mikephil.charting.charts.LineChart--> |
||||
<!--android:id="@+id/chart"--> |
||||
<!--android:layout_width="50dp"--> |
||||
<!--android:layout_height="50dp" app:layout_constraintTop_toBottomOf="@+id/toolbar" android:layout_marginBottom="8dp"--> |
||||
<!--app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" android:layout_marginEnd="8dp"--> |
||||
<!--app:layout_constraintStart_toStartOf="parent" android:layout_marginStart="8dp"/>--> |
||||
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.appcompat.widget.Toolbar |
||||
android:id="@+id/toolbar" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="?attr/actionBarSize" |
||||
app:layout_constraintEnd_toEndOf="parent" |
||||
app:layout_constraintStart_toStartOf="parent" |
||||
app:layout_constraintTop_toTopOf="parent" |
||||
tools:title="@string/app_name" /> |
||||
|
||||
<FrameLayout |
||||
android:id="@+id/legendContainer" |
||||
android:layout_width="0dp" |
||||
android:layout_height="wrap_content" |
||||
app:layout_constraintEnd_toEndOf="parent" |
||||
app:layout_constraintStart_toStartOf="parent" |
||||
app:layout_constraintTop_toBottomOf="@+id/toolbar" /> |
||||
|
||||
<FrameLayout |
||||
android:id="@+id/chartContainer" |
||||
android:layout_width="0dp" |
||||
android:layout_height="0dp" |
||||
android:layout_marginTop="8dp" |
||||
android:layout_marginBottom="8dp" |
||||
app:layout_constraintBottom_toTopOf="@id/chips" |
||||
app:layout_constraintEnd_toEndOf="parent" |
||||
app:layout_constraintStart_toStartOf="parent" |
||||
app:layout_constraintTop_toBottomOf="@+id/legendContainer" /> |
||||
|
||||
<FrameLayout |
||||
android:id="@+id/chips" |
||||
android:layout_width="0dp" |
||||
android:layout_height="wrap_content" |
||||
android:paddingTop="8dp" |
||||
android:paddingBottom="8dp" |
||||
app:layout_constraintBottom_toBottomOf="parent" |
||||
app:layout_constraintEnd_toEndOf="parent" |
||||
app:layout_constraintStart_toStartOf="parent" |
||||
tools:layout_height="60dp"> |
||||
|
||||
<com.google.android.material.chip.ChipGroup |
||||
android:id="@+id/chipGroup" |
||||
android:layout_width="wrap_content" |
||||
android:layout_height="wrap_content" |
||||
android:layout_gravity="center" |
||||
android:orientation="horizontal" |
||||
app:chipSpacingHorizontal="8dp" |
||||
app:singleSelection="true" |
||||
tools:layout_height="60dp" /> |
||||
|
||||
</FrameLayout> |
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout> |
||||
@ -1,79 +1,94 @@ |
||||
<?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="wrap_content" |
||||
android:orientation="vertical"> |
||||
xmlns:app="http://schemas.android.com/apk/res-auto" |
||||
xmlns:tools="http://schemas.android.com/tools" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:orientation="vertical"> |
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView |
||||
android:id="@+id/title" |
||||
style="@style/PokerAnalyticsTheme.TextView.LegendStatsValue" |
||||
android:layout_width="wrap_content" |
||||
android:layout_height="wrap_content" |
||||
android:layout_marginStart="8dp" |
||||
android:layout_marginEnd="8dp" |
||||
app:layout_constraintEnd_toEndOf="parent" |
||||
app:layout_constraintStart_toStartOf="parent" |
||||
app:layout_constraintTop_toTopOf="parent" |
||||
tools:text="test" /> |
||||
<View |
||||
android:id="@+id/background" |
||||
android:background="@color/green_header" |
||||
android:layout_width="0dp" |
||||
android:layout_height="0dp" |
||||
app:layout_constraintBottom_toTopOf="@+id/counter" |
||||
android:layout_marginBottom="4dp" |
||||
app:layout_constraintEnd_toEndOf="parent" |
||||
app:layout_constraintStart_toStartOf="parent" |
||||
app:layout_constraintTop_toTopOf="parent" /> |
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView |
||||
android:id="@+id/stat1Name" |
||||
style="@style/PokerAnalyticsTheme.TextView.LegendStatsTitle" |
||||
android:layout_width="wrap_content" |
||||
android:layout_height="wrap_content" |
||||
android:layout_marginStart="8dp" |
||||
android:layout_marginTop="4dp" |
||||
app:layout_constraintStart_toStartOf="parent" |
||||
app:layout_constraintTop_toBottomOf="@id/title" |
||||
tools:text="NET RESULT" /> |
||||
<androidx.appcompat.widget.AppCompatTextView |
||||
android:id="@+id/title" |
||||
style="@style/PokerAnalyticsTheme.TextView.LegendTitle" |
||||
android:layout_width="wrap_content" |
||||
android:layout_height="wrap_content" |
||||
android:layout_marginStart="16dp" |
||||
android:layout_marginEnd="16dp" |
||||
android:layout_marginTop="4dp" |
||||
app:layout_constraintEnd_toEndOf="parent" |
||||
app:layout_constraintStart_toStartOf="parent" |
||||
app:layout_constraintTop_toTopOf="parent" |
||||
tools:text="11/04/2019" /> |
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView |
||||
android:id="@+id/stat1Value" |
||||
style="@style/PokerAnalyticsTheme.TextView.LegendStatsValue" |
||||
android:layout_width="wrap_content" |
||||
android:layout_height="wrap_content" |
||||
android:layout_marginStart="8dp" |
||||
app:layout_constraintStart_toStartOf="parent" |
||||
app:layout_constraintTop_toBottomOf="@id/stat1Name" |
||||
tools:text="$2000" /> |
||||
<androidx.appcompat.widget.AppCompatTextView |
||||
android:id="@+id/stat1Name" |
||||
style="@style/PokerAnalyticsTheme.TextView.LegendStatsTitle" |
||||
android:layout_width="wrap_content" |
||||
android:layout_height="wrap_content" |
||||
android:layout_marginStart="16dp" |
||||
android:layout_marginTop="4dp" |
||||
app:layout_constraintStart_toStartOf="parent" |
||||
app:layout_constraintTop_toBottomOf="@id/title" |
||||
tools:text="NET RESULT" /> |
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView |
||||
android:id="@+id/stat2Name" |
||||
style="@style/PokerAnalyticsTheme.TextView.LegendStatsTitle" |
||||
android:layout_width="wrap_content" |
||||
android:layout_height="wrap_content" |
||||
android:layout_marginEnd="8dp" |
||||
android:layout_marginTop="4dp" |
||||
app:layout_constraintEnd_toEndOf="parent" |
||||
app:layout_constraintHorizontal_bias="1.0" |
||||
app:layout_constraintStart_toEndOf="@+id/stat1Name" |
||||
app:layout_constraintTop_toBottomOf="@id/title" |
||||
tools:text="NET RESULT" /> |
||||
<androidx.appcompat.widget.AppCompatTextView |
||||
android:id="@+id/stat1Value" |
||||
style="@style/PokerAnalyticsTheme.TextView.LegendStatsValue" |
||||
android:layout_width="0dp" |
||||
android:layout_height="wrap_content" |
||||
android:layout_marginStart="16dp" |
||||
app:layout_constraintEnd_toStartOf="@+id/stat2Value" |
||||
app:layout_constraintStart_toStartOf="parent" |
||||
app:layout_constraintTop_toBottomOf="@id/stat1Name" |
||||
tools:text="$2000" /> |
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView |
||||
android:id="@+id/stat2Value" |
||||
style="@style/PokerAnalyticsTheme.TextView.LegendStatsValue" |
||||
android:layout_width="wrap_content" |
||||
android:layout_height="wrap_content" |
||||
android:layout_marginEnd="8dp" |
||||
app:layout_constraintEnd_toEndOf="parent" |
||||
app:layout_constraintHorizontal_bias="1.0" |
||||
app:layout_constraintStart_toEndOf="@+id/stat1Value" |
||||
app:layout_constraintTop_toBottomOf="@id/stat2Name" |
||||
tools:text="$2000000000000000" /> |
||||
<androidx.appcompat.widget.AppCompatTextView |
||||
android:id="@+id/stat2Name" |
||||
style="@style/PokerAnalyticsTheme.TextView.LegendStatsTitle" |
||||
android:layout_width="wrap_content" |
||||
android:layout_height="0dp" |
||||
android:layout_marginTop="4dp" |
||||
android:layout_marginEnd="16dp" |
||||
app:layout_constraintEnd_toEndOf="parent" |
||||
app:layout_constraintHorizontal_bias="1.0" |
||||
app:layout_constraintStart_toEndOf="@+id/stat1Name" |
||||
app:layout_constraintTop_toBottomOf="@id/title" |
||||
tools:text="NET RESULT" /> |
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView |
||||
android:id="@+id/counter" |
||||
style="@style/PokerAnalyticsTheme.TextView.LegendStatsTitle" |
||||
android:layout_width="wrap_content" |
||||
android:layout_height="wrap_content" |
||||
android:layout_marginEnd="8dp" |
||||
app:layout_constraintEnd_toEndOf="parent" |
||||
app:layout_constraintTop_toBottomOf="@id/stat2Value" |
||||
app:layout_constraintBottom_toBottomOf="parent" |
||||
tools:text="152 sessions" /> |
||||
<androidx.appcompat.widget.AppCompatTextView |
||||
android:id="@+id/stat2Value" |
||||
style="@style/PokerAnalyticsTheme.TextView.LegendStatsValue" |
||||
android:layout_width="wrap_content" |
||||
android:layout_height="wrap_content" |
||||
android:layout_marginEnd="16dp" |
||||
android:layout_marginStart="8dp" |
||||
app:layout_constraintEnd_toEndOf="parent" |
||||
app:layout_constraintHorizontal_bias="1.0" |
||||
app:layout_constraintStart_toEndOf="@+id/stat1Value" |
||||
app:layout_constraintTop_toBottomOf="@id/stat2Name" |
||||
tools:text="$2000000000" /> |
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView |
||||
android:id="@+id/counter" |
||||
style="@style/PokerAnalyticsTheme.TextView.LegendSubtitle" |
||||
android:layout_width="wrap_content" |
||||
android:layout_height="wrap_content" |
||||
android:layout_marginEnd="16dp" |
||||
android:layout_marginTop="8dp" |
||||
android:layout_marginBottom="8dp" |
||||
app:layout_constraintBottom_toBottomOf="parent" |
||||
app:layout_constraintEnd_toEndOf="parent" |
||||
app:layout_constraintTop_toBottomOf="@id/stat2Value" |
||||
tools:text="152 sessions" /> |
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout> |
||||
Loading…
Reference in new issue