forked from organicmaps/organicmaps
[android] Redesigned ChooseBookmarkCategoryFragment
This commit is contained in:
parent
1c359165d1
commit
c81fcdc1f4
4 changed files with 66 additions and 23 deletions
32
android/res/layout/choose_bookmark_category_fragment.xml
Normal file
32
android/res/layout/choose_bookmark_category_fragment.xml
Normal file
|
@ -0,0 +1,32 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:orientation="vertical"
|
||||
android:background="?cardBackground"
|
||||
android:minWidth="@dimen/bookmark_purchase_img_width"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:textAppearanceLarge"
|
||||
android:layout_marginTop="@dimen/margin_base_plus_quarter"
|
||||
android:textSize="@dimen/text_size_toolbar"
|
||||
android:fontFamily="@string/robotoMedium"
|
||||
android:textStyle="normal"
|
||||
android:lineSpacingExtra="@dimen/text_size_banner"
|
||||
android:text="@string/select_list"
|
||||
tools:text="Select list"
|
||||
tools:targetApi="jelly_bean"
|
||||
android:layout_marginEnd="@dimen/margin_base_plus"
|
||||
android:layout_marginRight="@dimen/margin_base_plus"
|
||||
android:layout_marginLeft="@dimen/margin_base_plus"
|
||||
android:layout_marginStart="@dimen/margin_base_plus"/>
|
||||
<include
|
||||
android:layout_marginTop="@dimen/margin_base"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
layout="@layout/recycler_default"/>
|
||||
</LinearLayout>
|
|
@ -6,8 +6,16 @@
|
|||
android:background="?clickableBackground"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:paddingLeft="@dimen/margin_base"
|
||||
android:paddingRight="@dimen/margin_base">
|
||||
android:paddingLeft="@dimen/margin_half_plus"
|
||||
android:paddingRight="@dimen/margin_half_plus">
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/rb__selected"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@null"
|
||||
android:clickable="false"
|
||||
android:focusable="false"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv__set_name"
|
||||
|
@ -17,12 +25,4 @@
|
|||
android:singleLine="true"
|
||||
android:textAppearance="@style/MwmTextAppearance.Body1"/>
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/rb__selected"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@null"
|
||||
android:clickable="false"
|
||||
android:focusable="false"/>
|
||||
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
|
|
@ -1,14 +1,24 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TextView
|
||||
<FrameLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/height_block_base"
|
||||
android:background="?clickableBackground"
|
||||
android:fontFamily="@string/robotoMedium"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingLeft="@dimen/margin_base"
|
||||
android:paddingRight="@dimen/margin_base"
|
||||
android:text="@string/add_new_set"
|
||||
android:textAppearance="@style/MwmTextAppearance.Button"
|
||||
tools:targetApi="jelly_bean"/>
|
||||
android:paddingLeft="@dimen/margin_double"
|
||||
android:paddingRight="@dimen/margin_double"
|
||||
android:paddingStart="@dimen/margin_double"
|
||||
android:paddingEnd="@dimen/margin_double"
|
||||
android:layout_height="@dimen/height_block_base">
|
||||
<TextView
|
||||
android:id="@+id/text"
|
||||
android:layout_gravity="end|center_vertical"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="?clickableBackground"
|
||||
android:gravity="center_vertical|end"
|
||||
android:text="@string/add_new_set"
|
||||
android:fontFamily="@string/robotoMedium"
|
||||
android:textStyle="normal"
|
||||
android:letterSpacing="0.04"
|
||||
android:textAppearance="@style/MwmTextAppearance.Button"
|
||||
tools:targetApi="lollipop"/>
|
||||
</FrameLayout>
|
||||
|
|
|
@ -44,10 +44,11 @@ public class ChooseBookmarkCategoryFragment extends BaseMwmDialogFragment
|
|||
@Override
|
||||
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
|
||||
{
|
||||
mRecycler = (RecyclerView) inflater.inflate(R.layout.recycler_default, container, false);
|
||||
View root = inflater.inflate(R.layout.choose_bookmark_category_fragment, container, false);
|
||||
mRecycler = root.findViewById(R.id.recycler);
|
||||
mRecycler.setLayoutManager(new org.solovyev.android.views.llm.LinearLayoutManager(getActivity()));
|
||||
|
||||
return mRecycler;
|
||||
return root;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Reference in a new issue