From d3a65a1c7f9b55d0754636365a3eac89afdd6f4e Mon Sep 17 00:00:00 2001 From: Aurelien Hubert Date: Fri, 17 May 2019 12:06:22 +0200 Subject: [PATCH] Update layouts --- .../res/layout-sw320dp/fragment_calendar.xml | 9 + .../res/layout-sw400dp/fragment_calendar.xml | 9 + app/src/main/res/layout/activity_home.xml | 11 +- app/src/main/res/layout/fragment_calendar.xml | 9 + app/src/main/res/layout/fragment_feed.xml | 184 +++++++++--------- app/src/main/res/layout/fragment_more.xml | 43 ++-- app/src/main/res/layout/fragment_reports.xml | 42 ++-- app/src/main/res/layout/fragment_stats.xml | 40 ++-- 8 files changed, 210 insertions(+), 137 deletions(-) diff --git a/app/src/main/res/layout-sw320dp/fragment_calendar.xml b/app/src/main/res/layout-sw320dp/fragment_calendar.xml index 7bb22310..e5673d6d 100644 --- a/app/src/main/res/layout-sw320dp/fragment_calendar.xml +++ b/app/src/main/res/layout-sw320dp/fragment_calendar.xml @@ -13,6 +13,15 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent"> + + + + - - + app:layout_constraintTop_toTopOf="parent" /> + + - + + + + app:layout_constraintTop_toTopOf="parent" + app:title="@string/feed" /> + android:id="@+id/tabs" + android:layout_width="match_parent" + android:layout_height="wrap_content" + app:tabMode="fixed"> + android:id="@+id/filterSessions" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/sessions" /> + android:id="@+id/filterTransactions" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/operations" /> + 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" + tools:listitem="@layout/row_feed_session" /> + android:id="@+id/noSessionFound" + style="@style/PokerAnalyticsTheme.TextView.Header" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginStart="8dp" + android:layout_marginTop="8dp" + android:layout_marginEnd="8dp" + android:layout_marginBottom="8dp" + android:text="@string/no_sessions" + android:textSize="24sp" + android:visibility="gone" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintVertical_bias="0.5" + tools:visibility="visible" /> + android:id="@+id/addButton" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="bottom|end" + android:layout_marginEnd="16dp" + android:layout_marginBottom="16dp" + android:src="@drawable/ic_add" + android:tint="@color/black" + android:transitionName="floating_action_button" + app:fabSize="normal" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" /> + android:id="@+id/disclaimerContainer" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:background="@color/green_darker" + android:elevation="8dp" + android:orientation="vertical" + android:padding="24dp" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent"> + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginStart="8dp" + android:layout_marginEnd="8dp" + android:layout_marginBottom="8dp" + android:text="@string/disclaimer" + android:textSize="18sp" + tools:visibility="visible" /> + android:id="@+id/disclaimerDismiss" + style="@style/PokerAnalyticsTheme.Button" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginStart="8dp" + android:layout_marginTop="8dp" + android:layout_marginEnd="16dp" + android:text="@string/iunderstand" /> diff --git a/app/src/main/res/layout/fragment_more.xml b/app/src/main/res/layout/fragment_more.xml index aaa1d704..aecbe709 100644 --- a/app/src/main/res/layout/fragment_more.xml +++ b/app/src/main/res/layout/fragment_more.xml @@ -1,18 +1,37 @@ - + - + + + app:layout_constraintTop_toTopOf="parent" + app:title="@string/more" /> + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_reports.xml b/app/src/main/res/layout/fragment_reports.xml index 461dce4c..f7a184d4 100644 --- a/app/src/main/res/layout/fragment_reports.xml +++ b/app/src/main/res/layout/fragment_reports.xml @@ -1,19 +1,37 @@ - + - + + + app:layout_constraintTop_toTopOf="parent" + app:title="@string/reports" /> + + + + - + + + + + + + - - - - - - - - - + app:layout_constraintTop_toBottomOf="@+id/appBar" /> \ No newline at end of file