123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356 |
- <?xml version="1.0" encoding="utf-8"?>
- <androidx.drawerlayout.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- android:id="@+id/content_view"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@color/bg_color">
- <FrameLayout
- android:id="@+id/home_layout"
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_margin="@dimen/convert_20px"
- android:orientation="horizontal">
- <androidx.constraintlayout.widget.ConstraintLayout
- android:id="@+id/mode_content_one"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_weight="1.8">
- <ImageView
- android:id="@+id/iv_one_bg"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@drawable/entrance_062_bg_1"
- />
- <androidx.appcompat.widget.AppCompatTextView
- android:id="@+id/tv_one_title"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginStart="@dimen/convert_52px"
- android:layout_marginEnd="@dimen/convert_52px"
- android:layout_marginBottom="@dimen/convert_75px"
- android:gravity="center"
- android:textColor="@color/white"
- android:textSize="@dimen/convert_46px"
- android:text="@string/automatic_programmes"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent" />
- </androidx.constraintlayout.widget.ConstraintLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginLeft="@dimen/convert_15px"
- android:layout_weight="1"
- android:orientation="vertical">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:layout_marginBottom="@dimen/convert_10px"
- android:orientation="horizontal">
- <androidx.constraintlayout.widget.ConstraintLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:layout_marginRight="@dimen/convert_7px"
- >
- <ImageView
- android:id="@+id/iv_two_bg"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@drawable/entrance_062_bg_2"
- />
- <androidx.appcompat.widget.AppCompatTextView
- android:id="@+id/tv_two_title"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginStart="@dimen/convert_80px"
- android:layout_marginEnd="@dimen/convert_80px"
- android:layout_marginBottom="@dimen/convert_75px"
- android:gravity="center"
- android:textColor="@color/white"
- android:textSize="@dimen/convert_46px"
- android:text="@string/automatic_recipes"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent" />
- </androidx.constraintlayout.widget.ConstraintLayout>
- <androidx.constraintlayout.widget.ConstraintLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:layout_marginLeft="@dimen/convert_7px"
- >
- <ImageView
- android:id="@+id/iv_three_bg"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@drawable/entrance_062_bg_3"
- />
- <androidx.appcompat.widget.AppCompatTextView
- android:id="@+id/tv_three_title"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginStart="@dimen/convert_80px"
- android:layout_marginEnd="@dimen/convert_80px"
- android:layout_marginBottom="@dimen/convert_75px"
- android:gravity="center"
- android:textColor="@color/white"
- android:textSize="@dimen/convert_46px"
- android:text="@string/manual_cooking"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent" />
- </androidx.constraintlayout.widget.ConstraintLayout>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_weight="2.3">
- <androidx.constraintlayout.widget.ConstraintLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_weight="1"
- >
- <ImageView
- android:id="@+id/iv_four_bg"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@drawable/entrance_062_bg_4"
- />
- <androidx.appcompat.widget.AppCompatTextView
- android:id="@+id/tv_four_title"
- android:layout_width="@dimen/convert_450px"
- android:layout_height="wrap_content"
- android:gravity="center"
- android:textColor="@color/white"
- android:textSize="@dimen/convert_46px"
- android:text="@string/download_new_recipes"
- app:layout_constraintTop_toTopOf="parent"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent" />
- </androidx.constraintlayout.widget.ConstraintLayout>
- </LinearLayout>
- </LinearLayout>
- </LinearLayout>
- <ImageView
- android:id="@+id/iv_tab"
- android:layout_width="@dimen/convert_80px"
- android:layout_height="@dimen/convert_80px"
- android:layout_marginStart="@dimen/convert_50px"
- android:layout_marginTop="@dimen/convert_50px"
- android:src="@drawable/iv_062_tab" />
- </FrameLayout>
- <RelativeLayout
- android:id="@+id/right_content_layout"
- android:layout_width="@dimen/convert_550px"
- android:layout_height="match_parent"
- android:layout_alignParentEnd="true"
- android:layout_gravity="end"
- android:background="@color/home_menu_bg">
- <ImageView
- android:id="@+id/iv_avatar"
- android:layout_width="@dimen/convert_140px"
- android:layout_height="@dimen/convert_140px"
- android:layout_centerHorizontal="true"
- android:layout_marginTop="@dimen/convert_80px"
- android:src="@drawable/ic_user" />
- <androidx.appcompat.widget.AppCompatTextView
- android:id="@+id/tv_user_name"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_below="@id/iv_avatar"
- android:layout_centerHorizontal="true"
- android:layout_marginTop="@dimen/convert_24px"
- android:includeFontPadding="false"
- android:text="@string/login"
- android:textColor="@color/home_user_name"
- android:textSize="@dimen/convert_30px" />
- <LinearLayout
- android:id="@+id/history_layout"
- android:layout_width="match_parent"
- android:layout_height="@dimen/convert_60px"
- android:layout_below="@id/tv_user_name"
- android:layout_marginStart="@dimen/convert_40px"
- android:layout_marginTop="@dimen/convert_40px"
- android:layout_marginEnd="@dimen/convert_40px"
- android:background="@drawable/home_menu_corners"
- android:gravity="center_vertical"
- android:orientation="horizontal">
- <ImageView
- android:layout_width="@dimen/convert_42px"
- android:layout_height="@dimen/convert_42px"
- android:layout_marginStart="@dimen/convert_60px"
- android:background="@drawable/ic_history" />
- <com.develop.common.widget.MarqueeTextView
- android:id="@+id/tv_history"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginStart="@dimen/convert_29px"
- android:ellipsize="marquee"
- android:focusable="true"
- android:focusableInTouchMode="true"
- android:marqueeRepeatLimit="marquee_forever"
- android:singleLine="true"
- android:text="@string/cook_history"
- android:textColor="@color/home_menu_title"
- android:textSize="@dimen/convert_30px" />
- </LinearLayout>
- <LinearLayout
- android:id="@+id/favourite_layout"
- android:layout_width="match_parent"
- android:layout_height="@dimen/convert_60px"
- android:layout_below="@id/history_layout"
- android:layout_marginStart="@dimen/convert_40px"
- android:layout_marginTop="@dimen/convert_24px"
- android:layout_marginEnd="@dimen/convert_40px"
- android:background="@drawable/home_menu_corners"
- android:gravity="center_vertical"
- android:orientation="horizontal">
- <ImageView
- android:layout_width="@dimen/convert_42px"
- android:layout_height="@dimen/convert_42px"
- android:layout_marginStart="@dimen/convert_60px"
- android:background="@drawable/ic_favourite" />
- <com.develop.common.widget.MarqueeTextView
- android:id="@+id/tv_favourite"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginStart="@dimen/convert_29px"
- android:ellipsize="marquee"
- android:focusable="true"
- android:focusableInTouchMode="true"
- android:marqueeRepeatLimit="marquee_forever"
- android:singleLine="true"
- android:text="@string/favourite_recipes"
- android:textColor="@color/home_menu_title"
- android:textSize="@dimen/convert_30px" />
- </LinearLayout>
- <LinearLayout
- android:id="@+id/setting_layout"
- android:layout_width="match_parent"
- android:layout_height="@dimen/convert_60px"
- android:layout_below="@id/favourite_layout"
- android:layout_marginStart="@dimen/convert_40px"
- android:layout_marginTop="@dimen/convert_24px"
- android:layout_marginEnd="@dimen/convert_40px"
- android:background="@drawable/home_menu_corners"
- android:gravity="center_vertical"
- android:orientation="horizontal">
- <ImageView
- android:layout_width="@dimen/convert_42px"
- android:layout_height="@dimen/convert_42px"
- android:layout_marginStart="@dimen/convert_60px"
- android:background="@drawable/ic_setting" />
- <com.develop.common.widget.MarqueeTextView
- android:id="@+id/tv_setting"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginStart="@dimen/convert_29px"
- android:ellipsize="marquee"
- android:focusable="true"
- android:focusableInTouchMode="true"
- android:marqueeRepeatLimit="marquee_forever"
- android:singleLine="true"
- android:text="@string/settings"
- android:textColor="@color/home_menu_title"
- android:textSize="@dimen/convert_30px" />
- </LinearLayout>
- <LinearLayout
- android:id="@+id/help_layout"
- android:layout_width="match_parent"
- android:layout_height="@dimen/convert_60px"
- android:layout_below="@id/setting_layout"
- android:layout_marginStart="@dimen/convert_40px"
- android:layout_marginTop="@dimen/convert_24px"
- android:layout_marginEnd="@dimen/convert_40px"
- android:background="@drawable/home_menu_corners"
- android:gravity="center_vertical"
- android:orientation="horizontal">
- <ImageView
- android:layout_width="@dimen/convert_42px"
- android:layout_height="@dimen/convert_42px"
- android:layout_marginStart="@dimen/convert_60px"
- android:background="@drawable/ic_help" />
- <com.develop.common.widget.MarqueeTextView
- android:id="@+id/tv_help"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginStart="@dimen/convert_29px"
- android:ellipsize="marquee"
- android:focusable="true"
- android:focusableInTouchMode="true"
- android:marqueeRepeatLimit="marquee_forever"
- android:singleLine="true"
- android:text="@string/help"
- android:textColor="@color/home_menu_title"
- android:textSize="@dimen/convert_30px" />
- </LinearLayout>
- <LinearLayout
- android:id="@+id/policy_layout"
- android:layout_width="match_parent"
- android:layout_height="@dimen/convert_60px"
- android:layout_below="@id/help_layout"
- android:layout_marginStart="@dimen/convert_40px"
- android:layout_marginTop="@dimen/convert_24px"
- android:layout_marginEnd="@dimen/convert_40px"
- android:background="@drawable/home_menu_corners"
- android:gravity="center_vertical"
- android:orientation="horizontal">
- <ImageView
- android:layout_width="@dimen/convert_42px"
- android:layout_height="@dimen/convert_42px"
- android:layout_marginStart="@dimen/convert_60px"
- android:background="@drawable/ic_policy" />
- <com.develop.common.widget.MarqueeTextView
- android:id="@+id/tv_policy"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginStart="@dimen/convert_29px"
- android:ellipsize="marquee"
- android:focusable="true"
- android:focusableInTouchMode="true"
- android:marqueeRepeatLimit="marquee_forever"
- android:singleLine="true"
- android:text="@string/privacy_policy"
- android:textColor="@color/home_menu_title"
- android:textSize="@dimen/convert_30px" />
- </LinearLayout>
- </RelativeLayout>
- </androidx.drawerlayout.widget.DrawerLayout>
|