Fix plan a road UI
This commit is contained in:
parent
2d37a05c7a
commit
1155144b1a
4 changed files with 4 additions and 15 deletions
|
@ -20,7 +20,6 @@
|
||||||
android:ellipsize="end"
|
android:ellipsize="end"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:maxLines="1"
|
android:maxLines="1"
|
||||||
android:letterSpacing="@dimen/text_button_letter_spacing"
|
|
||||||
android:paddingBottom="@dimen/measurement_tool_menu_title_padding_bottom"
|
android:paddingBottom="@dimen/measurement_tool_menu_title_padding_bottom"
|
||||||
android:textColor="?android:textColorPrimary"
|
android:textColor="?android:textColorPrimary"
|
||||||
android:textSize="@dimen/default_list_text_size"
|
android:textSize="@dimen/default_list_text_size"
|
||||||
|
@ -31,9 +30,6 @@
|
||||||
android:id="@+id/description"
|
android:id="@+id/description"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:ellipsize="end"
|
|
||||||
android:maxLines="2"
|
|
||||||
android:letterSpacing="@dimen/description_letter_spacing"
|
|
||||||
android:lineSpacingMultiplier="@dimen/bottom_sheet_text_spacing_multiplier"
|
android:lineSpacingMultiplier="@dimen/bottom_sheet_text_spacing_multiplier"
|
||||||
android:textColor="?android:textColorPrimary"
|
android:textColor="?android:textColorPrimary"
|
||||||
android:textSize="@dimen/default_desc_text_size"
|
android:textSize="@dimen/default_desc_text_size"
|
||||||
|
|
|
@ -44,7 +44,6 @@
|
||||||
android:textColor="?android:textColorPrimary"
|
android:textColor="?android:textColorPrimary"
|
||||||
android:lineSpacingMultiplier="@dimen/bottom_sheet_text_spacing_multiplier"
|
android:lineSpacingMultiplier="@dimen/bottom_sheet_text_spacing_multiplier"
|
||||||
osmand:typeface="@string/font_roboto_regular"
|
osmand:typeface="@string/font_roboto_regular"
|
||||||
android:letterSpacing="@dimen/description_letter_spacing"
|
|
||||||
android:textSize="@dimen/default_desc_text_size" />
|
android:textSize="@dimen/default_desc_text_size" />
|
||||||
|
|
||||||
<include layout="@layout/custom_radio_buttons" />
|
<include layout="@layout/custom_radio_buttons" />
|
||||||
|
@ -63,7 +62,6 @@
|
||||||
android:textColor="?android:textColorPrimary"
|
android:textColor="?android:textColorPrimary"
|
||||||
android:lineSpacingMultiplier="@dimen/bottom_sheet_text_spacing_multiplier"
|
android:lineSpacingMultiplier="@dimen/bottom_sheet_text_spacing_multiplier"
|
||||||
osmand:typeface="@string/font_roboto_regular"
|
osmand:typeface="@string/font_roboto_regular"
|
||||||
android:letterSpacing="@dimen/description_letter_spacing"
|
|
||||||
android:textSize="@dimen/default_desc_text_size" />
|
android:textSize="@dimen/default_desc_text_size" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,6 @@ public class ExitBottomSheetDialogFragment extends MenuBottomSheetDialogFragment
|
||||||
|
|
||||||
items.add(new ShortDescriptionItem.Builder()
|
items.add(new ShortDescriptionItem.Builder()
|
||||||
.setDescription(getString(R.string.plan_route_exit_dialog_descr))
|
.setDescription(getString(R.string.plan_route_exit_dialog_descr))
|
||||||
.setDescriptionColorId(nightMode ? R.color.text_color_primary_dark : R.color.text_color_primary_light)
|
|
||||||
.setTitle(getString(R.string.exit_without_saving))
|
.setTitle(getString(R.string.exit_without_saving))
|
||||||
.setLayoutId(R.layout.bottom_sheet_item_list_title_with_descr)
|
.setLayoutId(R.layout.bottom_sheet_item_list_title_with_descr)
|
||||||
.create());
|
.create());
|
||||||
|
|
|
@ -8,14 +8,12 @@ import androidx.fragment.app.Fragment;
|
||||||
import androidx.fragment.app.FragmentManager;
|
import androidx.fragment.app.FragmentManager;
|
||||||
|
|
||||||
import net.osmand.PlatformUtil;
|
import net.osmand.PlatformUtil;
|
||||||
import net.osmand.plus.OsmandApplication;
|
|
||||||
import net.osmand.plus.R;
|
import net.osmand.plus.R;
|
||||||
import net.osmand.plus.activities.MapActivity;
|
import net.osmand.plus.activities.MapActivity;
|
||||||
import net.osmand.plus.base.MenuBottomSheetDialogFragment;
|
import net.osmand.plus.base.MenuBottomSheetDialogFragment;
|
||||||
import net.osmand.plus.base.bottomsheetmenu.BaseBottomSheetItem;
|
import net.osmand.plus.base.bottomsheetmenu.BaseBottomSheetItem;
|
||||||
import net.osmand.plus.base.bottomsheetmenu.BottomSheetItemWithDescription;
|
import net.osmand.plus.base.bottomsheetmenu.BottomSheetItemWithDescription;
|
||||||
import net.osmand.plus.base.bottomsheetmenu.simpleitems.DividerSpaceItem;
|
import net.osmand.plus.base.bottomsheetmenu.simpleitems.DividerSpaceItem;
|
||||||
import net.osmand.plus.base.bottomsheetmenu.simpleitems.TitleItem;
|
|
||||||
import net.osmand.plus.helpers.GpxTrackAdapter;
|
import net.osmand.plus.helpers.GpxTrackAdapter;
|
||||||
|
|
||||||
import org.apache.commons.logging.Log;
|
import org.apache.commons.logging.Log;
|
||||||
|
@ -38,15 +36,13 @@ public class SnapTrackWarningBottomSheet extends MenuBottomSheetDialogFragment {
|
||||||
if (activity instanceof MapActivity) {
|
if (activity instanceof MapActivity) {
|
||||||
activity.findViewById(R.id.snap_to_road_image_button).setVisibility(View.GONE);
|
activity.findViewById(R.id.snap_to_road_image_button).setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
OsmandApplication app = requiredMyApplication();
|
|
||||||
items.add(new TitleItem(getString(R.string.route_between_points)));
|
|
||||||
BaseBottomSheetItem description = new BottomSheetItemWithDescription.Builder()
|
BaseBottomSheetItem description = new BottomSheetItemWithDescription.Builder()
|
||||||
.setDescription(app.getString(R.string.rourte_between_points_warning_desc))
|
.setDescription(getString(R.string.rourte_between_points_warning_desc))
|
||||||
.setDescriptionColorId(R.color.text_color_primary_light)
|
.setTitle(getString(R.string.route_between_points))
|
||||||
.setLayoutId(R.layout.bottom_sheet_item_description_long)
|
.setLayoutId(R.layout.bottom_sheet_item_list_title_with_descr)
|
||||||
.create();
|
.create();
|
||||||
items.add(description);
|
items.add(description);
|
||||||
items.add(new DividerSpaceItem(app, app.getResources().getDimensionPixelSize(R.dimen.content_padding_half)));
|
items.add(new DividerSpaceItem(getContext(), getResources().getDimensionPixelSize(R.dimen.content_padding_half)));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue