|
|
@@ -1,7 +1,8 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
-<RelativeLayout
|
|
|
+<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
+ android:id="@+id/roots_view"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
@@ -11,6 +12,9 @@
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:background="@color/main_title_bg_color"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
>
|
|
|
|
|
|
<ImageView
|
|
|
@@ -96,259 +100,138 @@
|
|
|
layout="@layout/chart_info_layout"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_below="@+id/title_lay" />
|
|
|
+ android:layout_below="@+id/title_lay"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/title_lay"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ />
|
|
|
|
|
|
- <HorizontalScrollView
|
|
|
+ <com.google.android.material.tabs.TabLayout
|
|
|
android:layout_below="@+id/chart_info_lay"
|
|
|
android:id="@+id/mtp_chart_head"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:scrollbars="none">
|
|
|
-
|
|
|
- <LinearLayout
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:orientation="horizontal">
|
|
|
-
|
|
|
- <RelativeLayout
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:orientation="vertical">
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/mtp_time_chart"
|
|
|
- android:layout_width="40dip"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginLeft="1dip"
|
|
|
- android:background="@color/p_global_bg_color"
|
|
|
- android:gravity="center"
|
|
|
- android:paddingBottom="5dip"
|
|
|
- android:paddingTop="5dip"
|
|
|
- android:text="分时图"
|
|
|
- android:textColor="@color/p_normal_txt_color"
|
|
|
- android:textSize="12sp" />
|
|
|
+ android:layout_height="30dp"
|
|
|
+ app:tabMode="scrollable"
|
|
|
+ app:tabGravity="center"
|
|
|
+ app:tabIndicatorColor="@color/rma_item_yellow_color"
|
|
|
+ app:tabSelectedTextColor="@color/rma_item_yellow_color"
|
|
|
+ app:tabTextColor="@color/__picker_black_40"
|
|
|
+ app:tabBackground="@android:color/transparent"
|
|
|
+ app:tabRippleColor="@android:color/transparent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/chart_info_lay"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ />
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/mtp_time_chart_b"
|
|
|
- android:layout_width="34dip"
|
|
|
- android:layout_height="3dip"
|
|
|
- android:layout_alignBottom="@+id/mtp_time_chart"
|
|
|
- android:layout_centerHorizontal="true"
|
|
|
- android:background="@color/line_hint_color" />
|
|
|
- </RelativeLayout>
|
|
|
-
|
|
|
- <RelativeLayout
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:orientation="vertical">
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/mtp_one_chart"
|
|
|
- android:layout_width="40dip"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:background="@color/p_global_bg_color"
|
|
|
- android:gravity="center"
|
|
|
- android:paddingBottom="5dip"
|
|
|
- android:paddingTop="5dip"
|
|
|
- android:text="1分"
|
|
|
- android:textColor="@color/p_normal_txt_color"
|
|
|
- android:textSize="12sp" />
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/mtp_one_chart_b"
|
|
|
- android:layout_width="34dp"
|
|
|
- android:layout_height="3dip"
|
|
|
- android:layout_alignBottom="@+id/mtp_one_chart"
|
|
|
- android:layout_centerHorizontal="true"
|
|
|
- android:background="@color/line_hint_color"
|
|
|
- android:visibility="gone" />
|
|
|
- </RelativeLayout>
|
|
|
-
|
|
|
- <RelativeLayout
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:orientation="vertical">
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/mtp_five_chart"
|
|
|
- android:layout_width="40dip"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:background="@color/p_global_bg_color"
|
|
|
- android:gravity="center"
|
|
|
- android:paddingBottom="5dip"
|
|
|
- android:paddingTop="5dip"
|
|
|
- android:text="5分"
|
|
|
- android:textColor="@color/p_normal_txt_color"
|
|
|
- android:textSize="12sp" />
|
|
|
+ <RelativeLayout
|
|
|
+ android:layout_below="@+id/mtp_chart_head"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:id="@+id/chart_lay"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/mtp_chart_head"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintBottom_toTopOf="@+id/bottom_lay"
|
|
|
+ >
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/mtp_five_chart_b"
|
|
|
- android:layout_width="34dp"
|
|
|
- android:layout_height="3dip"
|
|
|
- android:layout_alignBottom="@+id/mtp_five_chart"
|
|
|
- android:layout_centerHorizontal="true"
|
|
|
- android:background="@color/line_hint_color"
|
|
|
- android:visibility="gone" />
|
|
|
- </RelativeLayout>
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/chart_title"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
+ android:paddingBottom="2dip"
|
|
|
+ android:paddingLeft="10dip"
|
|
|
+ android:paddingRight="15dip"
|
|
|
+ android:paddingTop="2dip" />
|
|
|
|
|
|
- <RelativeLayout
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:orientation="vertical">
|
|
|
+ <cn.muchinfo.rma.view.base.chart.old.timeCharts.TimeChartView
|
|
|
+ android:id="@+id/time_chart_view"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_below="@+id/chart_title"
|
|
|
+ />
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/mtp_thirty_chart"
|
|
|
- android:layout_width="40dip"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:background="@color/p_global_bg_color"
|
|
|
- android:gravity="center"
|
|
|
- android:paddingBottom="5dip"
|
|
|
- android:paddingTop="5dip"
|
|
|
- android:text="30分"
|
|
|
- android:textColor="@color/p_normal_txt_color"
|
|
|
- android:textSize="12sp" />
|
|
|
+ <cn.muchinfo.rma.view.base.chart.old.timeCharts.KChartView
|
|
|
+ android:id="@+id/k_chart_view"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_below="@+id/chart_title"
|
|
|
+ android:visibility="invisible"
|
|
|
+ />
|
|
|
+
|
|
|
+ <ProgressBar
|
|
|
+ android:id="@+id/progress_view"
|
|
|
+ android:layout_width="50dp"
|
|
|
+ android:layout_height="50dp"
|
|
|
+ android:layout_centerInParent="true"
|
|
|
+ />
|
|
|
+ </RelativeLayout>
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/mtp_thirty_chart_b"
|
|
|
- android:layout_width="34dp"
|
|
|
- android:layout_height="3dip"
|
|
|
- android:layout_alignBottom="@+id/mtp_thirty_chart"
|
|
|
- android:layout_centerHorizontal="true"
|
|
|
- android:background="@color/line_hint_color"
|
|
|
- android:visibility="gone" />
|
|
|
- </RelativeLayout>
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/bottom_lay"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="60dp"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/chart_lay"
|
|
|
+ >
|
|
|
|
|
|
- <RelativeLayout
|
|
|
+ <RelativeLayout
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:gravity="center_horizontal"
|
|
|
+ android:padding="5dp"
|
|
|
+ >
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/self_choice_img"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:visibility="gone"
|
|
|
- android:orientation="vertical">
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/mtp_one_hour_chart"
|
|
|
- android:layout_width="40dip"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:background="@color/p_global_bg_color"
|
|
|
- android:gravity="center"
|
|
|
- android:paddingBottom="5dip"
|
|
|
- android:paddingTop="5dip"
|
|
|
- android:text="1时"
|
|
|
- android:textColor="@color/p_normal_txt_color"
|
|
|
- android:textSize="12sp" />
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/mtp_one_hour_chart_b"
|
|
|
- android:layout_width="34dp"
|
|
|
- android:layout_height="3dip"
|
|
|
- android:layout_alignBottom="@+id/mtp_one_hour_chart"
|
|
|
- android:layout_centerHorizontal="true"
|
|
|
- android:background="@color/line_hint_color"
|
|
|
- android:visibility="gone" />
|
|
|
- </RelativeLayout>
|
|
|
+ android:src="@mipmap/chart_buy_icon"
|
|
|
+ android:layout_centerHorizontal="true"
|
|
|
+ />
|
|
|
|
|
|
- <RelativeLayout
|
|
|
+ <TextView
|
|
|
+ android:layout_below="@+id/self_choice_img"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:visibility="gone"
|
|
|
- android:orientation="vertical">
|
|
|
+ android:layout_centerHorizontal="true"
|
|
|
+ android:textSize="@dimen/textsize_18sp"
|
|
|
+ android:text="自选"
|
|
|
+ />
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/mtp_two_hour_chart"
|
|
|
- android:layout_width="40dip"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:background="@color/p_global_bg_color"
|
|
|
- android:gravity="center"
|
|
|
- android:paddingBottom="5dip"
|
|
|
- android:paddingTop="5dip"
|
|
|
- android:text="2时"
|
|
|
- android:textColor="@color/p_normal_txt_color"
|
|
|
- android:textSize="12sp" />
|
|
|
+ </RelativeLayout>
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/mtp_two_hour_chart_b"
|
|
|
- android:layout_width="34dp"
|
|
|
- android:layout_height="3dip"
|
|
|
- android:layout_alignBottom="@+id/mtp_two_hour_chart"
|
|
|
- android:layout_centerHorizontal="true"
|
|
|
- android:background="@color/line_hint_color"
|
|
|
- android:visibility="gone" />
|
|
|
- </RelativeLayout>
|
|
|
|
|
|
- <RelativeLayout
|
|
|
+ <RelativeLayout
|
|
|
+ android:id="@+id/trade_rly"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:padding="5dp"
|
|
|
+ >
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/trade_img"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:visibility="gone"
|
|
|
- android:orientation="vertical">
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/mtp_four_hour_chart"
|
|
|
- android:layout_width="40dip"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_alignParentTop="true"
|
|
|
- android:background="@color/p_global_bg_color"
|
|
|
- android:gravity="center"
|
|
|
- android:paddingBottom="5dip"
|
|
|
- android:paddingTop="5dip"
|
|
|
- android:text="4时"
|
|
|
- android:textColor="@color/p_normal_txt_color"
|
|
|
- android:textSize="12sp" />
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/mtp_four_hour_chart_b"
|
|
|
- android:layout_width="34dp"
|
|
|
- android:layout_height="3dip"
|
|
|
- android:layout_alignBottom="@+id/mtp_four_hour_chart"
|
|
|
- android:layout_centerHorizontal="true"
|
|
|
- android:background="@color/line_hint_color"
|
|
|
- android:visibility="gone" />
|
|
|
- </RelativeLayout>
|
|
|
+ android:src="@mipmap/chart_buy_icon"
|
|
|
+ android:layout_centerHorizontal="true"
|
|
|
+ />
|
|
|
|
|
|
- <RelativeLayout
|
|
|
+ <TextView
|
|
|
+ android:layout_below="@+id/trade_img"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:orientation="vertical">
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/mtp_one_day_chart"
|
|
|
- android:layout_width="40dip"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:background="@color/p_global_bg_color"
|
|
|
- android:gravity="center"
|
|
|
- android:paddingBottom="5dip"
|
|
|
- android:paddingTop="5dip"
|
|
|
- android:text="日线"
|
|
|
- android:textColor="@color/p_normal_txt_color"
|
|
|
-
|
|
|
- android:textSize="12sp" />
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/mtp_one_day_chart_b"
|
|
|
- android:layout_width="34dp"
|
|
|
- android:layout_height="3dip"
|
|
|
- android:layout_alignBottom="@+id/mtp_one_day_chart"
|
|
|
- android:layout_centerHorizontal="true"
|
|
|
- android:background="@color/line_hint_color"
|
|
|
- android:visibility="gone" />
|
|
|
- </RelativeLayout>
|
|
|
- </LinearLayout>
|
|
|
- </HorizontalScrollView>
|
|
|
+ android:text="交易"
|
|
|
+ android:textSize="@dimen/textsize_18sp"
|
|
|
+ android:layout_centerHorizontal="true"
|
|
|
+ />
|
|
|
|
|
|
+ </RelativeLayout>
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/chart_title"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_gravity="center_vertical"
|
|
|
- android:paddingBottom="2dip"
|
|
|
- android:paddingLeft="10dip"
|
|
|
- android:paddingRight="15dip"
|
|
|
- android:paddingTop="2dip"
|
|
|
- android:layout_below="@+id/mtp_chart_head"/>
|
|
|
|
|
|
- <cn.muchinfo.rma.view.base.chart.old.timeCharts.TimeChartView
|
|
|
- android:id="@+id/time_chart_view"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:layout_below="@+id/chart_title"/>
|
|
|
+ </LinearLayout>
|
|
|
|
|
|
-</RelativeLayout>
|
|
|
+</androidx.constraintlayout.widget.ConstraintLayout>
|