Add items to the layout
This commit is contained in:
parent
6657cf496c
commit
1227590650
2 changed files with 27 additions and 2 deletions
|
@ -64,7 +64,6 @@
|
|||
android:textColor="?android:textColorPrimary"
|
||||
android:textSize="@dimen/default_list_text_size"
|
||||
tools:text="Van Gogh Museum"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
|
@ -72,6 +71,18 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical">
|
||||
|
||||
<android.support.v7.widget.AppCompatTextView
|
||||
android:id="@+id/map_marker_first_descr"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:textColor="?android:textColorSecondary"
|
||||
android:textSize="@dimen/default_desc_text_size"
|
||||
android:visibility="gone"
|
||||
tools:text="Start • "
|
||||
tools:visibility="visible"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/map_marker_direction_icon"
|
||||
android:layout_width="wrap_content"
|
||||
|
@ -129,6 +140,16 @@
|
|||
tools:background="@drawable/marker_circle_background_dark_with_inset"
|
||||
tools:src="@drawable/ic_action_marker_passed"/>
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/map_marker_check_box"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible"/>
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
|
@ -138,7 +159,6 @@
|
|||
android:layout_marginLeft="56dp"
|
||||
android:layout_marginStart="56dp"
|
||||
tools:background="?attr/dashboard_divider"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<include
|
||||
|
|
|
@ -2,6 +2,7 @@ package net.osmand.plus.mapmarkers.adapters;
|
|||
|
||||
import android.support.v7.widget.RecyclerView;
|
||||
import android.view.View;
|
||||
import android.widget.CheckBox;
|
||||
import android.widget.ImageButton;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.TextView;
|
||||
|
@ -15,6 +16,7 @@ public class MapMarkerItemViewHolder extends RecyclerView.ViewHolder {
|
|||
final ImageView iconReorder;
|
||||
final ImageView icon;
|
||||
final TextView title;
|
||||
final TextView firstDescription;
|
||||
final TextView distance;
|
||||
final View flagIconLeftSpace;
|
||||
final View leftPointSpace;
|
||||
|
@ -22,6 +24,7 @@ public class MapMarkerItemViewHolder extends RecyclerView.ViewHolder {
|
|||
final View rightPointSpace;
|
||||
final TextView description;
|
||||
public final ImageButton optionsBtn;
|
||||
final CheckBox checkBox;
|
||||
final View divider;
|
||||
final View bottomShadow;
|
||||
|
||||
|
@ -32,6 +35,7 @@ public class MapMarkerItemViewHolder extends RecyclerView.ViewHolder {
|
|||
iconReorder = (ImageView) view.findViewById(R.id.map_marker_reorder_icon);
|
||||
icon = (ImageView) view.findViewById(R.id.map_marker_icon);
|
||||
title = (TextView) view.findViewById(R.id.map_marker_title);
|
||||
firstDescription = (TextView) view.findViewById(R.id.map_marker_first_descr);
|
||||
distance = (TextView) view.findViewById(R.id.map_marker_distance);
|
||||
flagIconLeftSpace = view.findViewById(R.id.flag_icon_left_space);
|
||||
leftPointSpace = view.findViewById(R.id.map_marker_left_point_space);
|
||||
|
@ -39,6 +43,7 @@ public class MapMarkerItemViewHolder extends RecyclerView.ViewHolder {
|
|||
rightPointSpace = view.findViewById(R.id.map_marker_right_point_space);
|
||||
description = (TextView) view.findViewById(R.id.map_marker_description);
|
||||
optionsBtn = (ImageButton) view.findViewById(R.id.map_marker_options_button);
|
||||
checkBox = (CheckBox) view.findViewById(R.id.map_marker_check_box);
|
||||
divider = view.findViewById(R.id.divider);
|
||||
bottomShadow = view.findViewById(R.id.bottom_shadow);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue