214 lines
8.0 KiB
XML
214 lines
8.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:id="@+id/mainLinear"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:clickable="false"
|
|
android:orientation="vertical"
|
|
android:tag="mainLinear">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:baselineAligned="false">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/dragCardWatchlist"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:gravity="center"
|
|
android:layout_gravity="start"
|
|
android:visibility="gone"
|
|
android:layout_weight="0.08"
|
|
android:orientation="vertical">
|
|
|
|
<ImageView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="@drawable/ic_drag_handle_24dp"
|
|
android:clickable="false"
|
|
android:focusable="false"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/currencyInfoLayout"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="5dp"
|
|
android:orientation="vertical"
|
|
android:layout_weight="0.92">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/topLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:gravity="center">
|
|
|
|
<ImageView
|
|
android:id="@+id/currencyIcon"
|
|
android:layout_width="@dimen/currency_icon_cardview_size"
|
|
android:layout_height="@dimen/currency_icon_cardview_size"
|
|
android:layout_margin="1dp" />
|
|
|
|
<TextView
|
|
android:id="@+id/currencyNameTextView"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:gravity="start"
|
|
android:textColor="@color/mainTextViewColor"
|
|
android:textSize="@dimen/cardViewTitle" />
|
|
|
|
<TextView
|
|
android:id="@+id/currencySymbolTextView"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="2dp"
|
|
android:layout_marginLeft="2dp"
|
|
android:gravity="left"
|
|
android:textColor="@color/secondaryTextViewColor"
|
|
android:textSize="@dimen/cardViewCaption" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/bottomLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/currencyValueTextView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="start"
|
|
android:textColor="@color/secondaryTextViewColor"
|
|
android:textSize="@dimen/cardViewTitle"
|
|
android:layout_weight="0.5"/>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/secondaryLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="end"
|
|
android:orientation="horizontal"
|
|
android:layout_weight="0.5">
|
|
|
|
<TextView
|
|
android:id="@+id/currencyFluctuationPercentageTextView"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textSize="@dimen/cardViewTitle" />
|
|
|
|
<TextView
|
|
android:id="@+id/currencyFluctuationTextView"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textSize="@dimen/cardViewCaption" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/deleteCardWatchlist"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:background="@color/decreaseCandle"
|
|
android:gravity="center"
|
|
android:layout_gravity="end"
|
|
android:visibility="gone"
|
|
android:layout_weight="0.08"
|
|
android:orientation="vertical">
|
|
|
|
<ImageView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="@drawable/ic_delete_white_24dp"
|
|
android:clickable="false"
|
|
android:focusable="false"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/collapsableLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="gone"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/separationLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="5dp">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/day_history"
|
|
android:textSize="@dimen/cardViewCaption" />
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/separationLineSize"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginStart="10dp"
|
|
android:layout_marginEnd="10dp"
|
|
android:layout_marginLeft="10dp"
|
|
android:layout_marginRight="10dp"
|
|
android:background="@color/separationColor" />
|
|
|
|
</LinearLayout>
|
|
|
|
<FrameLayout
|
|
android:id="@+id/frameLayoutChart"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/cardViewChartSize"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:visibility="visible">
|
|
|
|
<ProgressBar
|
|
android:id="@+id/progressBarLinechartWatchlist"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:clickable="false"
|
|
android:focusable="false"
|
|
android:visibility="visible"/>
|
|
|
|
<FrameLayout
|
|
android:id="@+id/linearLayoutSubCharts"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:visibility="gone">
|
|
|
|
<com.github.mikephil.charting.charts.LineChart
|
|
android:id="@+id/LineChartView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"/>
|
|
|
|
<ImageView
|
|
android:id="@+id/detailsArrow"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@drawable/ic_keyboard_arrow_right_grey_48dp"
|
|
android:layout_gravity="center_vertical|end"/>
|
|
|
|
</FrameLayout>
|
|
|
|
</FrameLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout> |