parent
3d56a6bbbe
commit
6a4adbb061
@ -0,0 +1,70 @@ |
|||||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||||
|
<androidx.appcompat.widget.LinearLayoutCompat 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:id="@+id/rowHeaderTitleAmount.container" |
||||||
|
android:layout_width="match_parent" |
||||||
|
android:layout_height="56dp" |
||||||
|
android:orientation="vertical"> |
||||||
|
|
||||||
|
<androidx.constraintlayout.widget.ConstraintLayout |
||||||
|
android:layout_width="match_parent" |
||||||
|
android:layout_height="match_parent" |
||||||
|
android:background="@color/green_header"> |
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatTextView |
||||||
|
android:id="@+id/rowHeaderTitleAmount.title" |
||||||
|
style="@style/PokerAnalyticsTheme.TextView.RowTitle" |
||||||
|
android:layout_width="wrap_content" |
||||||
|
android:layout_height="wrap_content" |
||||||
|
android:textSize="20sp" |
||||||
|
android:fontFamily="@font/roboto_medium" |
||||||
|
app:layout_constraintBottom_toBottomOf="parent" |
||||||
|
app:layout_constraintStart_toStartOf="@+id/guidelineStart" |
||||||
|
app:layout_constraintTop_toTopOf="parent" |
||||||
|
tools:text="Title" /> |
||||||
|
|
||||||
|
<net.pokeranalytics.android.ui.view.PokerAnalyticsTextView |
||||||
|
android:id="@+id/rowHeaderTitleAmount.value" |
||||||
|
style="@style/PokerAnalyticsTheme.TextView.RowValue" |
||||||
|
android:layout_width="0dp" |
||||||
|
android:layout_height="wrap_content" |
||||||
|
android:layout_marginStart="16dp" |
||||||
|
android:ellipsize="end" |
||||||
|
android:fontFamily="@font/roboto_medium" |
||||||
|
android:textSize="20sp" |
||||||
|
android:gravity="end" |
||||||
|
android:maxLines="1" |
||||||
|
app:layout_constraintBottom_toBottomOf="parent" |
||||||
|
app:layout_constraintEnd_toEndOf="@+id/guidelineEnd" |
||||||
|
app:layout_constraintStart_toEndOf="@+id/rowHeaderTitleAmount.title" |
||||||
|
app:layout_constraintTop_toTopOf="parent" |
||||||
|
tools:text="Value" /> |
||||||
|
|
||||||
|
<androidx.constraintlayout.widget.Guideline |
||||||
|
android:id="@+id/guidelineStart" |
||||||
|
android:layout_width="wrap_content" |
||||||
|
android:layout_height="wrap_content" |
||||||
|
android:orientation="vertical" |
||||||
|
app:layout_constraintGuide_begin="16dp" /> |
||||||
|
|
||||||
|
<androidx.constraintlayout.widget.Guideline |
||||||
|
android:id="@+id/guidelineEnd" |
||||||
|
android:layout_width="wrap_content" |
||||||
|
android:layout_height="wrap_content" |
||||||
|
android:orientation="vertical" |
||||||
|
app:layout_constraintGuide_end="16dp" /> |
||||||
|
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout> |
||||||
|
|
||||||
|
<FrameLayout |
||||||
|
android:id="@+id/rowHeaderTitleAmount.separator" |
||||||
|
android:layout_width="match_parent" |
||||||
|
android:layout_height="16dp" |
||||||
|
android:visibility="gone" |
||||||
|
app:layout_constraintBottom_toBottomOf="parent" |
||||||
|
app:layout_constraintEnd_toEndOf="parent" |
||||||
|
app:layout_constraintStart_toStartOf="parent" |
||||||
|
tools:visibility="visible" /> |
||||||
|
|
||||||
|
</androidx.appcompat.widget.LinearLayoutCompat> |
||||||
@ -1,63 +1,66 @@ |
|||||||
<?xml version="1.0" encoding="utf-8"?> |
<?xml version="1.0" encoding="utf-8"?> |
||||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" |
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" |
||||||
xmlns:app="http://schemas.android.com/apk/res-auto" |
xmlns:app="http://schemas.android.com/apk/res-auto" |
||||||
xmlns:tools="http://schemas.android.com/tools" |
xmlns:tools="http://schemas.android.com/tools" |
||||||
android:id="@+id/rowTitleSwitch.container" |
android:id="@+id/rowTitleSwitch.container" |
||||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||||
android:background="?selectableItemBackground"> |
android:background="?selectableItemBackground"> |
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView |
<androidx.appcompat.widget.AppCompatTextView |
||||||
android:id="@+id/rowTitleSwitch.title" |
android:id="@+id/rowTitleSwitch.title" |
||||||
android:layout_width="0dp" |
android:layout_width="0dp" |
||||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||||
android:layout_marginTop="16dp" |
style="@style/PokerAnalyticsTheme.TextView.RowTitle" |
||||||
android:layout_marginBottom="16dp" |
android:layout_marginTop="16dp" |
||||||
android:textSize="16sp" |
android:layout_marginEnd="8dp" |
||||||
app:layout_constraintBottom_toBottomOf="parent" |
android:layout_marginBottom="16dp" |
||||||
app:layout_constraintEnd_toEndOf="@+id/guidelineEnd" |
app:layout_constraintBottom_toBottomOf="parent" |
||||||
app:layout_constraintStart_toStartOf="@+id/guidelineStart" |
app:layout_constraintEnd_toStartOf="@+id/rowTitleSwitch.switch" |
||||||
app:layout_constraintTop_toTopOf="parent" |
app:layout_constraintStart_toStartOf="@+id/guidelineStart" |
||||||
tools:text="Data Type Title"/> |
app:layout_constraintTop_toTopOf="parent" |
||||||
|
app:layout_constraintVertical_bias="0.0" |
||||||
|
tools:text="Data Type Title" /> |
||||||
|
|
||||||
<androidx.constraintlayout.widget.Guideline |
<androidx.constraintlayout.widget.Guideline |
||||||
android:id="@+id/guidelineStart" |
android:id="@+id/guidelineStart" |
||||||
android:layout_width="wrap_content" |
android:layout_width="wrap_content" |
||||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||||
android:orientation="vertical" |
android:orientation="vertical" |
||||||
app:layout_constraintGuide_begin="16dp"/> |
app:layout_constraintGuide_begin="16dp" /> |
||||||
|
|
||||||
<androidx.constraintlayout.widget.Guideline |
<androidx.constraintlayout.widget.Guideline |
||||||
android:id="@+id/guidelineEnd" |
android:id="@+id/guidelineEnd" |
||||||
android:layout_width="wrap_content" |
android:layout_width="wrap_content" |
||||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||||
android:orientation="vertical" |
android:orientation="vertical" |
||||||
app:layout_constraintGuide_end="16dp"/> |
app:layout_constraintGuide_end="16dp" /> |
||||||
<Switch |
|
||||||
android:layout_width="wrap_content" |
<androidx.appcompat.widget.SwitchCompat |
||||||
android:layout_height="wrap_content" |
android:id="@+id/rowTitleSwitch.switch" |
||||||
android:id="@+id/rowTitleSwitch.switch" |
android:layout_width="wrap_content" |
||||||
app:layout_constraintTop_toTopOf="parent" |
android:layout_height="wrap_content" |
||||||
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="@+id/rowTitleSwitch.title" |
app:layout_constraintBottom_toBottomOf="parent" |
||||||
app:layout_constraintStart_toStartOf="parent" android:layout_marginStart="356dp"/> |
app:layout_constraintEnd_toStartOf="@+id/guidelineEnd" |
||||||
|
app:layout_constraintTop_toTopOf="parent" /> |
||||||
|
|
||||||
<FrameLayout |
<FrameLayout |
||||||
android:id="@+id/rowTitleSwitch.separator" |
android:id="@+id/rowTitleSwitch.separator" |
||||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||||
android:layout_height="16dp" |
android:layout_height="16dp" |
||||||
android:visibility="gone" |
android:visibility="gone" |
||||||
app:layout_constraintBottom_toBottomOf="parent" |
app:layout_constraintBottom_toBottomOf="parent" |
||||||
app:layout_constraintEnd_toEndOf="parent" |
app:layout_constraintEnd_toEndOf="parent" |
||||||
app:layout_constraintStart_toStartOf="parent" |
app:layout_constraintStart_toStartOf="parent" |
||||||
tools:visibility="visible"> |
tools:visibility="visible"> |
||||||
|
|
||||||
<View |
<View |
||||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||||
android:layout_height="1dp" |
android:layout_height="1dp" |
||||||
android:layout_gravity="center" |
android:layout_gravity="center" |
||||||
android:layout_marginStart="16dp" |
android:layout_marginStart="16dp" |
||||||
android:layout_marginEnd="16dp" |
android:layout_marginEnd="16dp" |
||||||
android:background="@color/kaki" /> |
android:background="@color/kaki" /> |
||||||
|
|
||||||
</FrameLayout> |
</FrameLayout> |
||||||
|
|
||||||
|
|||||||
Loading…
Reference in new issue