[android] Added hide btn guides galery

This commit is contained in:
Dmitry Donskoy 2020-04-30 04:28:27 +03:00 committed by Aleksandr Zatsepin
parent 83c255676b
commit ecd1f9b743
8 changed files with 48 additions and 1 deletions

View file

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="@dimen/margin_eighth"/>
<stroke android:color="@color/base_accent" android:width="@dimen/divider_height"/>
</shape>

View file

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="@dimen/margin_eighth"/>
<stroke android:color="@color/base_accent_night" android:width="@dimen/divider_height" />
</shape>

View file

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:background="?bgBoughtContent"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="@dimen/margin_half_plus_eight"
android:orientation="horizontal">
<TextView
android:id="@+id/text"
android:background="?selectableItemBackground"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:fontFamily="@string/robotoRegular"
android:lines="1"
android:ellipsize="end"
android:textColor="?colorAccent"
android:textSize="@dimen/text_size_body_3"
android:text="@string/hide"
android:textAllCaps="true"
tools:text="HIDE" />
</RelativeLayout>

View file

@ -52,6 +52,7 @@
android:lines="1"
android:textColor="?android:textColorSecondary" />
<include
android:id="@+id/divider"
layout="@layout/divider_horizontal"
android:layout_width="match_parent"
android:layout_height="@dimen/divider_height"
@ -64,6 +65,10 @@
android:id="@+id/outdoor_content"
layout="@layout/outdoor_content"
android:visibility="gone" />
<include
android:id="@+id/bought_content"
layout="@layout/bought_content"
android:visibility="gone" />
</LinearLayout>
</RelativeLayout>
<RelativeLayout

View file

@ -17,5 +17,5 @@
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/guides_gallery"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
android:layout_height="@dimen/guides_gallery_height" />
</LinearLayout>

View file

@ -300,4 +300,5 @@
<dimen name="guide_gallery_item_width">328dp</dimen>
<dimen name="guide_gallery_title_width">176dp</dimen>
<dimen name="guide_gallery_title_height">40dp</dimen>
<dimen name="guides_gallery_height">120dp</dimen>
</resources>

View file

@ -97,6 +97,7 @@
<attr name="bgRoundedCard" format="reference" />
<attr name="guidesIcon" format="reference"></attr>
<attr name="guidesMenuDisabled" format="reference"></attr>
<attr name="bgBoughtContent" format="reference"></attr>
</declare-styleable>
<declare-styleable name="ThemeAttrs.NavButtons">
<attr name="nav_background" format="reference" />

View file

@ -184,6 +184,7 @@
<item name="guidesDistance">@drawable/dist</item>
<item name="bgRectangleView">@drawable/bg_grey</item>
<item name="bgRoundedCard">@drawable/bg_rounded_card</item>
<item name="bgBoughtContent">@drawable/bg_bought_content</item>
<item name="guidesMenuDisabled">@drawable/guides_layer_default_light</item>
<item name="guidesIcon">@drawable/bg_guides_light</item>
</style>
@ -371,5 +372,6 @@
<item name="bgRoundedCard">@drawable/bg_rounded_card_night</item>
<item name="guidesIcon">@drawable/bg_guides_night</item>
<item name="guidesMenuDisabled">@drawable/guides_layer_default_dark</item>
<item name="bgBoughtContent">@drawable/bg_bought_content_night</item>
</style>
</resources>