aboutsummaryrefslogtreecommitdiffstats
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/fragment_chart.xml108
-rw-r--r--app/src/main/res/layout/fragment_screen_home_list.xml6
2 files changed, 108 insertions, 6 deletions
diff --git a/app/src/main/res/layout/fragment_chart.xml b/app/src/main/res/layout/fragment_chart.xml
index be8e789..dcf4778 100644
--- a/app/src/main/res/layout/fragment_chart.xml
+++ b/app/src/main/res/layout/fragment_chart.xml
@@ -1,14 +1,112 @@
<?xml version="1.0" encoding="utf-8"?>
-<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<LinearLayout 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"
+ android:orientation="vertical"
tools:context=".ChartFragment">
- <!-- TODO: Update blank fragment layout -->
- <TextView
+ <LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:text="@string/hello_blank_fragment" />
+ android:layout_weight="4"
+ android:orientation="horizontal">
-</FrameLayout> \ No newline at end of file
+ <Spinner
+ android:id="@+id/cur_from"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_weight="1" />
+
+ <Spinner
+ android:id="@+id/cur_to"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_weight="1" />
+ </LinearLayout>
+
+ <Button
+ android:id="@+id/btn_change_chart_type"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center"
+ android:text="Change chart type" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_weight="4"
+ android:orientation="horizontal">
+
+ <Button
+ android:id="@+id/b1d"
+ style="?android:attr/buttonBarButtonStyle"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_weight="1"
+ android:text="1D" />
+
+ <Button
+ android:id="@+id/b7d"
+ style="?android:attr/buttonBarButtonStyle"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_weight="1"
+ android:text="7D" />
+
+ <Button
+ android:id="@+id/b1m"
+ style="?android:attr/buttonBarButtonStyle"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_weight="1"
+ android:text="1M" />
+
+ <Button
+ android:id="@+id/b3m"
+ style="?android:attr/buttonBarButtonStyle"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_weight="1"
+ android:text="3M" />
+
+ <Button
+ android:id="@+id/b6m"
+ style="?android:attr/buttonBarButtonStyle"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_weight="1"
+ android:text="6M" />
+
+ <Button
+ android:id="@+id/b1y"
+ style="?android:attr/buttonBarButtonStyle"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_weight="1"
+ android:text="1Y" />
+ </LinearLayout>
+
+ <androidx.constraintlayout.widget.ConstraintLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_weight="1">
+
+ <!-- <View-->
+ <com.anychart.AnyChartView
+ android:id="@+id/any_chart_view"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" />
+
+ <ProgressBar
+ android:id="@+id/progress_bar"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent" />
+
+ </androidx.constraintlayout.widget.ConstraintLayout>
+</LinearLayout> \ No newline at end of file
diff --git a/app/src/main/res/layout/fragment_screen_home_list.xml b/app/src/main/res/layout/fragment_screen_home_list.xml
index 32d2ab3..a688366 100644
--- a/app/src/main/res/layout/fragment_screen_home_list.xml
+++ b/app/src/main/res/layout/fragment_screen_home_list.xml
@@ -23,6 +23,9 @@
android:layout_weight="1" />
<EditText
+ android:id="@+id/amount_input"
+ android:text="1.0000"
+ android:inputType="number"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1" />
@@ -31,11 +34,12 @@
<TextView
android:layout_width="wrap_content"
android:background="@color/teal_700"
- android:text="Add new currency to list"
+ android:text="Add current currency to list"
android:id="@+id/btn_add"
android:textSize="25sp"
android:paddingLeft="7dp"
android:paddingRight="7dp"
+ android:layout_marginBottom="15dp"
android:layout_gravity="center"
android:layout_height="wrap_content"/>