[android] Redesigned item_bookmark_group_list_header.xml

Renamed header for guides list.
This commit is contained in:
velichkomarija 2020-09-17 18:04:56 +03:00 committed by Aleksandr Zatsepin
parent 967c44eadd
commit bb35d71eff
5 changed files with 23 additions and 69 deletions

View file

@ -30,7 +30,6 @@
android:layout_alignWithParentIfMissing="true"
android:layout_above="@id/container"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_marginEnd="@dimen/margin_base"
android:layout_marginBottom="@dimen/margin_base"
android:src="?fabViewOnMap"

View file

@ -6,7 +6,7 @@
layout="@layout/item_guide_info">
</include>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/_collections_recycler"
android:id="@+id/collections_recycler"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</LinearLayout>

View file

@ -1,37 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_height="@dimen/height_block_base"
android:layout_width="wrap_content"
android:background="?windowBackgroundForced"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?windowBackgroundForced">
android:paddingStart="@dimen/margin_base"
android:paddingEnd="@dimen/margin_base">
<TextView
android:id="@+id/text_message"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/margin_base"
android:layout_marginStart="@dimen/margin_base"
android:textAppearance="@style/MwmTextAppearance.Body3"
android:text="@string/bookmarks_groups"
android:fontFamily="@string/robotoMedium"
tools:targetApi="jelly_bean"/>
android:layout_width="wrap_content"
android:layout_height="match_parent"
tools:text="@string/categories"
android:gravity="center_vertical"
android:layout_alignParentStart="true"
android:textAppearance="@style/TextAppearance.MdcTypographyStyles.Headline6"/>
<TextView
android:id="@+id/button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="@style/MwmTextAppearance.Body3"
android:paddingLeft="@dimen/margin_base"
android:paddingStart="@dimen/margin_base"
android:paddingEnd="@dimen/margin_base"
android:paddingRight="@dimen/margin_base"
android:paddingTop="@dimen/bookmark_hide_btn_padding_top"
android:paddingBottom="@dimen/margin_half_double_plus"
android:textColor="?colorAccent"
android:textAllCaps="true"
android:background="?selectableItemBackground"
android:text="@string/bookmarks_groups_hide_all"
android:layout_height="match_parent"
android:fontFamily="@string/robotoMedium"
tools:targetApi="jelly_bean"/>
</LinearLayout>
android:text="@string/bookmarks_groups_hide_all"
android:textAllCaps="true"
android:gravity="center_vertical"
android:layout_alignParentEnd="true"
android:textAppearance="@style/MwmTextAppearance.Body3"
android:textColor="?colorAccent"
android:background="?selectableItemBackground" />
</RelativeLayout>

View file

@ -1,39 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="@dimen/height_block_base"
android:orientation="horizontal"
android:paddingStart="@dimen/margin_base"
android:paddingEnd="@dimen/margin_base">
<TextView
android:id="@+id/tv__collection_title"
android:layout_width="wrap_content"
android:layout_height="match_parent"
tools:text="@string/categories"
android:gravity="center_vertical"
android:layout_alignParentStart="true"
android:textAppearance="@style/TextAppearance.MdcTypographyStyles.Headline6"/>
<TextView
android:id="@+id/btn__hide_all"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:fontFamily="@string/robotoMedium"
android:text="@string/bookmarks_groups_hide_all"
android:textAllCaps="true"
android:gravity="center_vertical"
android:layout_alignParentEnd="true"
android:textAppearance="@style/MwmTextAppearance.Body3"
android:textColor="?colorAccent" />
</RelativeLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/collection_recycler"
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:listitem="@layout/item_bookmark_category"/>
</LinearLayout>

View file

@ -66,7 +66,7 @@ public interface BookmarkCategoriesPageResProvider
@Override
public int getHeaderText()
{
return R.string.guides_groups_cached;
return R.string.guides;
}
@Override