|
|
@@ -9,87 +9,99 @@
|
|
|
tools:context=".view.activity.HomeActivity">
|
|
|
|
|
|
<RelativeLayout
|
|
|
- android:id="@+id/rl_menu"
|
|
|
- android:layout_width="0dp"
|
|
|
+ android:id="@+id/top_view"
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="0dp"
|
|
|
- android:padding="@dimen/menu_padding"
|
|
|
- android:background="@color/home_menu_bg"
|
|
|
- app:layout_constraintBottom_toBottomOf="parent"
|
|
|
- app:layout_constraintHorizontal_weight="267"
|
|
|
- app:layout_constraintLeft_toLeftOf="parent"
|
|
|
- app:layout_constraintRight_toLeftOf="@id/rl_page"
|
|
|
- app:layout_constraintTop_toTopOf="parent">
|
|
|
+ app:layout_constraintBottom_toTopOf="@+id/rl_page"
|
|
|
+ android:paddingLeft="10dp"
|
|
|
+ android:paddingRight="10dp"
|
|
|
+ app:layout_constraintHeight_percent="0.05">
|
|
|
|
|
|
<ImageView
|
|
|
android:id="@+id/iv_logo"
|
|
|
+ android:layout_width="150dp"
|
|
|
+ android:layout_height="20dp"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:background="@mipmap/logo_inside" />
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:id="@+id/v_divider_time"
|
|
|
+ android:visibility="gone"
|
|
|
+ android:layout_width="1dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_above="@id/tc_time"
|
|
|
+ android:layout_marginVertical="@dimen/divider_line_margin"
|
|
|
+ android:background="@color/white" />
|
|
|
+
|
|
|
+ <TextClock
|
|
|
+ android:id="@+id/tc_time"
|
|
|
+ style="@style/CommonTextView"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:textSize="20sp"
|
|
|
+ android:layout_alignParentEnd="true"
|
|
|
+ android:format12Hour="yyyy-MM-dd hh:mm:ss"
|
|
|
+ android:format24Hour="yyyy-MM-dd hh:mm:ss" />
|
|
|
+
|
|
|
+ </RelativeLayout>
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:id="@+id/rl_page"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:padding="@dimen/page_padding"
|
|
|
+ app:layout_constraintBottom_toTopOf="@+id/rl_menu"
|
|
|
+ app:layout_constraintHeight_percent="0.85"
|
|
|
+ app:layout_constraintLeft_toRightOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent">
|
|
|
+
|
|
|
+ <androidx.viewpager2.widget.ViewPager2
|
|
|
+ android:id="@+id/vp"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="12dp"
|
|
|
- android:layout_centerHorizontal="true"
|
|
|
- android:background="@mipmap/logo_inside"/>
|
|
|
+ android:layout_height="match_parent" />
|
|
|
+
|
|
|
+ </RelativeLayout>
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:id="@+id/rl_menu"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:background="@color/home_menu_bg"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintHeight_percent="0.1">
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/tv_app_title"
|
|
|
style="@style/CommonTextView"
|
|
|
+ android:layout_below="@id/iv_logo"
|
|
|
android:layout_centerHorizontal="true"
|
|
|
+ android:visibility="gone"
|
|
|
android:text="@string/app_title"
|
|
|
android:textSize="@dimen/common_text_size_big"
|
|
|
- android:textStyle="bold"
|
|
|
- android:layout_below="@id/iv_logo"/>
|
|
|
+ android:textStyle="bold" />
|
|
|
|
|
|
<View
|
|
|
android:id="@+id/v_divider_title"
|
|
|
android:layout_width="match_parent"
|
|
|
+ android:visibility="gone"
|
|
|
android:layout_height="@dimen/divider_line_width"
|
|
|
android:layout_below="@id/tv_app_title"
|
|
|
android:layout_marginVertical="@dimen/divider_line_margin"
|
|
|
android:background="@color/white" />
|
|
|
|
|
|
- <TextClock
|
|
|
- android:id="@+id/tc_time"
|
|
|
- style="@style/CommonTextView"
|
|
|
- android:layout_alignParentBottom="true"
|
|
|
- android:layout_centerHorizontal="true"
|
|
|
- android:format12Hour="yyyy-MM-dd\nhh:mm"
|
|
|
- android:format24Hour="yyyy-MM-dd\nhh:mm" />
|
|
|
-
|
|
|
- <View
|
|
|
- android:id="@+id/v_divider_time"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="@dimen/divider_line_width"
|
|
|
- android:layout_above="@id/tc_time"
|
|
|
- android:layout_marginVertical="@dimen/divider_line_margin"
|
|
|
- android:background="@color/white" />
|
|
|
-
|
|
|
<include
|
|
|
android:id="@+id/item_setting"
|
|
|
layout="@layout/item_rv_menu"
|
|
|
- android:layout_width="@dimen/item_rv_menu_size"
|
|
|
- android:layout_height="@dimen/item_rv_menu_height"
|
|
|
- android:layout_above="@id/v_divider_time" />
|
|
|
+ android:layout_width="110dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_alignParentEnd="true" />
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
android:id="@+id/rv_menu"
|
|
|
style="@style/CommonRecyclerView"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_above="@id/item_setting"
|
|
|
- android:layout_below="@id/v_divider_title"
|
|
|
+ android:layout_toLeftOf="@id/item_setting"
|
|
|
+ android:layout_height="match_parent"
|
|
|
tools:listitem="@layout/item_rv_menu" />
|
|
|
- </RelativeLayout>
|
|
|
-
|
|
|
- <RelativeLayout
|
|
|
- android:id="@+id/rl_page"
|
|
|
- android:layout_width="0dp"
|
|
|
- android:layout_height="0dp"
|
|
|
- app:layout_constraintBottom_toBottomOf="parent"
|
|
|
- app:layout_constraintHorizontal_weight="1653"
|
|
|
- app:layout_constraintLeft_toRightOf="@id/rl_menu"
|
|
|
- app:layout_constraintRight_toRightOf="parent"
|
|
|
- app:layout_constraintTop_toTopOf="parent"
|
|
|
- android:padding="@dimen/page_padding">
|
|
|
|
|
|
- <androidx.viewpager2.widget.ViewPager2
|
|
|
- android:id="@+id/vp"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent" />
|
|
|
</RelativeLayout>
|
|
|
+
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|