Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Quest: mtb:scale #559

Draft
wants to merge 6 commits into
base: modified
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ import de.westnordost.streetcomplete.quests.memorial_type.AddMemorialType
import de.westnordost.streetcomplete.quests.moped.AddMopedAccess
import de.westnordost.streetcomplete.quests.motorcycle_parking_capacity.AddMotorcycleParkingCapacity
import de.westnordost.streetcomplete.quests.motorcycle_parking_cover.AddMotorcycleParkingCover
import de.westnordost.streetcomplete.quests.mtb_scale.AddMtbScale
import de.westnordost.streetcomplete.quests.oneway.AddOneway
import de.westnordost.streetcomplete.quests.oneway_suspects.AddSuspectedOneway
import de.westnordost.streetcomplete.quests.oneway_suspects.data.TrafficFlowSegmentsApi
Expand Down Expand Up @@ -635,6 +636,7 @@ fun getQuestTypeList(
EE_QUEST_OFFSET + 28 to AddFootwayWidth(arSupportChecker),
EE_QUEST_OFFSET + 41 to AddGuidepostSports(),
EE_QUEST_OFFSET + 31 to AddViaFerrataScale(),
EE_QUEST_OFFSET + 48 to AddMtbScale(),
EE_QUEST_OFFSET + 37 to AddMapType(),
EE_QUEST_OFFSET + 38 to AddMapSize(),
EE_QUEST_OFFSET + 34 to AddBarrierHeight(arSupportChecker),
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
package de.westnordost.streetcomplete.quests.mtb_scale

import de.westnordost.streetcomplete.R
import de.westnordost.streetcomplete.data.osm.geometry.ElementGeometry
import de.westnordost.streetcomplete.data.osm.mapdata.Element
import de.westnordost.streetcomplete.data.osm.mapdata.MapDataWithGeometry
import de.westnordost.streetcomplete.data.osm.mapdata.filter
import de.westnordost.streetcomplete.data.osm.osmquests.OsmFilterQuestType
import de.westnordost.streetcomplete.osm.Tags

class AddMtbScale : OsmFilterQuestType<MtbScale>() {

override val elementFilter = """
ways with
highway ~ path|track
and !mtb:scale
and access !~ no|private
and bicycle !~ no|private
and (!lit or lit = no)
and surface ~ "grass|sand|dirt|soil|fine_gravel|compacted|wood|gravel|pebblestone|rock|ground|earth|mud|woodchips|snow|ice|salt|stone"
"""
override val changesetComment = "Specify MTB Scale"
override val wikiLink = "Key:mtb:scale"
override val icon = R.drawable.ic_quest_mtb_scale
override val defaultDisabledMessage = R.string.default_disabled_msg_mtbScale

override fun getTitle(tags: Map<String, String>) = R.string.quest_mtbScale_title

override fun getHighlightedElements(element: Element, getMapData: () -> MapDataWithGeometry) =
getMapData().filter("ways with highway and mtb:scale")

override fun createForm() = AddMtbScaleForm()

override fun applyAnswerTo(answer: MtbScale, tags: Tags, geometry: ElementGeometry, timestampEdited: Long) {
tags["mtb:scale"] = answer.osmValue
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package de.westnordost.streetcomplete.quests.mtb_scale

import android.os.Bundle
import de.westnordost.streetcomplete.R
import de.westnordost.streetcomplete.quests.AImageListQuestForm
import de.westnordost.streetcomplete.view.image_select.DisplayItem

class AddMtbScaleForm : AImageListQuestForm<MtbScale, MtbScale>() {

override val items: List<DisplayItem<MtbScale>> get() = MtbScale.entries.toItems()

override val itemsPerRow = 1
override val moveFavoritesToFront = false

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
imageSelector.cellLayoutId = R.layout.cell_labeled_icon_select_via_mtb_scale
}

override fun onClickOk(selectedItems: List<MtbScale>) {
applyAnswer(selectedItems.first())
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
package de.westnordost.streetcomplete.quests.mtb_scale

import androidx.annotation.DrawableRes
import androidx.annotation.StringRes
import de.westnordost.streetcomplete.R

import de.westnordost.streetcomplete.view.image_select.GroupableDisplayItem
import de.westnordost.streetcomplete.view.image_select.Item
import de.westnordost.streetcomplete.quests.mtb_scale.MtbScale.*

enum class MtbScale(
val osmValue: String,
@DrawableRes val imageResId: Int?,
@StringRes val titleResId: Int,
@StringRes val descriptionResId: Int,
) {
ZERO(
osmValue = "0",
imageResId = R.drawable.mtb_scale_0,
titleResId = R.string.quest_mtbScale_zero,
descriptionResId = R.string.quest_mtbScale_zero_description
),
ONE(
osmValue = "1",
imageResId = R.drawable.mtb_scale_1,
titleResId = R.string.quest_mtbScale_one,
descriptionResId = R.string.quest_mtbScale_one_description
),
TWO(
osmValue = "2",
imageResId = R.drawable.mtb_scale_2,
titleResId = R.string.quest_mtbScale_two,
descriptionResId = R.string.quest_mtbScale_two_description
),
THREE(
osmValue = "3",
imageResId = R.drawable.mtb_scale_3,
titleResId = R.string.quest_mtbScale_three,
descriptionResId = R.string.quest_mtbScale_three_description
),
FOUR(
osmValue = "4",
imageResId = R.drawable.mtb_scale_4,
titleResId = R.string.quest_mtbScale_four,
descriptionResId = R.string.quest_mtbScale_four_description
),
FIVE(
osmValue = "5",
imageResId = R.drawable.mtb_scale_5,
titleResId = R.string.quest_mtbScale_five,
descriptionResId = R.string.quest_mtbScale_five_description
),
SIX(
osmValue = "6",
imageResId = R.drawable.mtb_scale_6,
titleResId = R.string.quest_mtbScale_six,
descriptionResId = R.string.quest_mtbScale_six_description
)
}

fun Collection<MtbScale>.toItems() = map { it.asItem() }

fun MtbScale.asItem(): GroupableDisplayItem<MtbScale> {
return Item(
this,
drawableId = imageResId,
titleId = titleResId,
descriptionId = descriptionResId
)
}
Binary file added app/src/main/res/drawable-hdpi/mtb_scale_0.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-hdpi/mtb_scale_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-hdpi/mtb_scale_2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-hdpi/mtb_scale_3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-hdpi/mtb_scale_4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-hdpi/mtb_scale_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-hdpi/mtb_scale_5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-hdpi/mtb_scale_6.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-mdpi/mtb_scale_0.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-mdpi/mtb_scale_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-mdpi/mtb_scale_2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-mdpi/mtb_scale_3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-mdpi/mtb_scale_4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-mdpi/mtb_scale_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-mdpi/mtb_scale_5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-mdpi/mtb_scale_6.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xhdpi/mtb_scale_0.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xhdpi/mtb_scale_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xhdpi/mtb_scale_2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xhdpi/mtb_scale_3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xhdpi/mtb_scale_4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xhdpi/mtb_scale_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xhdpi/mtb_scale_5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xhdpi/mtb_scale_6.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xxhdpi/mtb_scale_0.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xxhdpi/mtb_scale_1.jpg
Binary file added app/src/main/res/drawable-xxhdpi/mtb_scale_2.jpg
Binary file added app/src/main/res/drawable-xxhdpi/mtb_scale_3.jpg
Binary file added app/src/main/res/drawable-xxhdpi/mtb_scale_4.png
Binary file added app/src/main/res/drawable-xxhdpi/mtb_scale_5.jpg
Binary file added app/src/main/res/drawable-xxhdpi/mtb_scale_6.jpg
131 changes: 131 additions & 0 deletions app/src/main/res/drawable/ic_quest_mtb_scale.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="128dp"
android:height="128dp"
android:viewportWidth="128"
android:viewportHeight="128">
<group>
<path
android:pathData="M0.01,64.04C0.01,81.01 6.75,97.29 18.76,109.29C30.76,121.29 47.04,128.04 64.01,128.04C80.98,128.04 97.26,121.29 109.26,109.29C121.27,97.29 128.01,81.01 128.01,64.04C128.01,47.06 121.27,30.78 109.26,18.78C97.26,6.78 80.98,0.04 64.01,0.04C47.04,0.04 30.76,6.78 18.76,18.78C6.75,30.78 0.01,47.06 0.01,64.04Z"
android:fillColor="#95C4F8"/>
<path
android:pathData="M5.39,38.41C3.45,42.83 2.01,47.47 1.12,52.28C0.7,54.7 0.69,54.74 0.35,57.46C0.35,63.31 1.87,70.21 3.43,75.58C15.08,76.18 33.56,76.18 33.56,76.18L43.69,60.67L37.03,60.51C24.53,60.51 16.03,43.01 5.41,38.51L5.39,38.41ZM109.89,51.41C103.02,51.41 100.18,60.47 91.01,60.47L94.01,81.6C94.01,81.6 117.51,83.57 119.51,84.08C120.64,84.38 123.22,83.54 125.24,82.76C127.04,76.86 128.01,70.58 128.01,64.14C128.01,63.68 127.99,63.23 127.97,62.77C127.6,62.48 113.85,51.47 109.85,51.47L109.89,51.41Z"
android:fillColor="#7E7E92"/>
<path
android:pathData="M84.64,115.04L118.64,97.29C122.55,90.86 125.36,83.66 126.81,76.04C126.81,76.04 113.31,76.41 107.93,74.04C101.32,71.11 86.31,50.41 76.93,38.03C75.2,35.85 73.5,33.81 71.9,32.02C69.12,28.95 61.01,28.02 59.9,28.02C58.94,28.02 51.16,37.17 45.52,44.02C36.97,54.47 26.9,67.02 21.9,72.02L13.57,89.02L84.64,115.04Z"
android:fillColor="#6E6E84"/>
<path
android:pathData="M57.63,89.91C56.7,89.44 54.53,88.27 52.63,85.76C50.74,83.25 50.72,81.6 48.47,80.47C45.95,79.21 45.97,79.1 42.97,77.6C39.97,76.1 39.97,75.1 38.16,72.97C36.17,70.65 33.08,70.77 30.08,69.43C27.08,68.1 25.81,65.74 23.97,64.85C22.14,63.96 20.97,64.93 19.31,64.08C17.05,62.93 16.92,59.66 14.1,59.99C11.27,60.33 10.57,61.32 8.64,59.6C5.41,56.72 3.91,58.54 0.31,57.44C0.08,59.65 -0.04,61.87 -0.04,64.1C-0.04,69.5 0.64,74.75 1.9,79.72C4.75,80.28 7.88,80.87 10.98,81.56C20.65,83.72 46.1,91.72 55.1,93.22C64.1,94.72 58.54,90.35 57.6,89.87L57.63,89.91Z"
android:fillColor="#00A07D"/>
<path
android:pathData="M0.25,69.41C1.79,88.04 11.29,104.41 25.37,115.04H48.5L80,96.04C53.75,96.04 39.12,69.54 0.25,69.41Z"
android:fillColor="#52C883"/>
<path
android:pathData="M64.01,128.04C95.26,128.04 121.26,105.66 126.89,76.04C103.26,76.04 74.26,105.66 48.01,102.04C33.51,100.04 29.76,96.02 11.01,99.93C22.52,116.93 42.01,128.06 64.01,128.06V128.04Z"
android:fillColor="#34BE71"/>
<path
android:pathData="M104.39,93.54C104.16,93.54 103.95,93.45 103.79,93.29C103.64,93.13 103.55,92.92 103.55,92.7V83.71C103.55,83.49 103.64,83.28 103.79,83.12C103.95,82.97 104.16,82.88 104.39,82.88C104.61,82.88 104.82,82.97 104.97,83.12C105.13,83.28 105.22,83.49 105.22,83.71V92.7C105.22,92.92 105.13,93.13 104.97,93.29C104.82,93.45 104.61,93.54 104.39,93.54Z"
android:fillColor="#674447"/>
<path
android:pathData="M109.64,82.91C109.64,85.81 107.29,88.17 104.37,88.17C101.46,88.17 99.11,85.82 99.11,82.91C99.11,80 101.46,71.07 104.37,71.07C107.29,71.07 109.64,80 109.64,82.91Z"
android:fillColor="#00A07D"/>
<path
android:pathData="M104.39,71.04C103.66,71.04 102.96,71.6 102.33,72.49H102.33C105,72.49 107.15,80.66 107.15,83.31C107.15,85.62 105.51,87.55 103.35,88.01C103.69,88.08 104.04,88.12 104.39,88.12C107.29,88.12 109.66,85.77 109.66,82.85C109.66,79.94 107.31,71.02 104.39,71.02L104.39,71.04Z"
android:fillColor="#36B294"/>
<path
android:pathData="M118.01,94.66C117.79,94.66 117.58,94.57 117.42,94.42C117.26,94.26 117.18,94.05 117.18,93.83V84.84C117.18,84.38 117.55,84 118.01,84C118.47,84 118.85,84.38 118.85,84.84V93.83C118.85,94.05 118.76,94.26 118.6,94.42C118.44,94.57 118.23,94.66 118.01,94.66Z"
android:fillColor="#674447"/>
<path
android:pathData="M123.26,84.04C123.26,86.93 120.91,89.3 118,89.3C115.08,89.3 112.74,86.95 112.74,84.04C112.74,81.12 115.08,72.2 118,72.2C120.91,72.2 123.26,81.12 123.26,84.04Z"
android:fillColor="#00A07D"/>
<path
android:pathData="M118.01,72.29C117.28,72.29 116.58,72.85 115.96,73.74H115.96C118.62,73.74 120.77,81.91 120.77,84.56C120.77,86.87 119.14,88.8 116.97,89.26C117.31,89.33 117.66,89.37 118.02,89.37C120.92,89.37 123.28,87.02 123.28,84.1C123.28,81.2 120.93,72.27 118.02,72.27L118.01,72.29Z"
android:fillColor="#36B294"/>
<path
android:pathData="M121.39,92.29C86.01,85.56 78.51,113.16 22.89,113.16C34,122.47 48.26,128.04 63.88,128.04C89.14,128.04 110.89,113.41 121.26,92.29H121.39Z"
android:fillColor="#44A67D"/>
<path
android:pathData="M77.01,38.03C75.27,35.85 73.57,33.81 71.97,32.02C69.2,28.95 61.08,28.02 59.97,28.02C59.01,28.02 51.24,37.17 45.6,44.02C43.42,46.67 41.15,49.47 38.88,52.25C39.86,53.61 41.76,55.53 44.56,55.26C50.07,54.72 51.15,48.26 55.32,48.8C61,49.53 60.13,66.05 66.08,66.05C71.87,66.05 67.86,53.55 74.7,50.92C79.74,49.03 81.58,54.45 90.07,55.15C85.43,49.21 80.8,42.95 77.07,38.02L77.01,38.03Z"
android:fillColor="#C3E1F5"/>
<path
android:pathData="M79.51,41.28C78.68,40.18 77.87,39.11 77.11,38.1C75.37,35.91 73.67,33.87 72.07,32.08C69.3,29.01 61.19,28.08 60.07,28.08C59.4,28.08 55.42,32.53 51.15,37.55C55.82,33.83 58.36,35.36 59.24,39.7C61.24,49.71 63.4,57.7 65.9,51.42C68.4,45.15 67.3,41.46 74.64,42.21C77.54,42.51 78.12,41.66 79.51,41.28V41.28Z"
android:fillColor="#EDF5FB"/>
<path
android:pathData="M120.14,56.91C116.16,54.13 111.79,51.42 109.83,51.42C105.49,51.42 102.75,55.05 99.01,57.72L99.01,57.72C105.22,56.68 105.68,64.67 108.55,64.67C111.91,64.67 112,60.39 115.3,61.84C121.71,64.67 116.89,58.05 120.14,56.91L120.14,56.91Z"
android:fillColor="#C3E1F5"/>
<path
android:pathData="M116.26,54.28C113.6,52.63 111.17,51.38 109.86,51.38C106.89,51.38 104.67,53.08 102.36,55.01C105.64,56.44 108.24,60.6 112.26,57.92C114.92,56.15 115.41,55.07 116.26,54.28Z"
android:fillColor="#EDF5FB"/>
<path
android:pathData="M97.26,97.29C96.98,97.29 96.72,97.18 96.53,96.98C96.33,96.79 96.22,96.52 96.22,96.25V85.07C96.22,84.5 96.69,84.04 97.26,84.04C97.83,84.04 98.3,84.5 98.3,85.07V96.25C98.3,96.52 98.19,96.79 97.99,96.98C97.8,97.18 97.54,97.29 97.26,97.29Z"
android:fillColor="#674447"/>
<path
android:pathData="M103.89,84.04C103.89,87.65 100.96,90.57 97.35,90.57C93.74,90.57 90.81,87.65 90.81,84.04C90.81,80.42 93.74,69.29 97.35,69.29C100.96,69.29 103.89,80.4 103.89,84.04Z"
android:fillColor="#00A07D"/>
<path
android:pathData="M97.26,69.41C96.35,69.41 95.49,70.11 94.71,71.22H94.71C98.02,71.22 100.7,81.39 100.7,84.72C100.7,87.6 98.67,90 95.96,90.57C96.38,90.66 96.82,90.7 97.26,90.7C100.87,90.7 103.8,87.78 103.8,84.17C103.8,80.55 100.87,69.42 97.26,69.42L97.26,69.41Z"
android:fillColor="#36B294"/>
<path
android:pathData="M111.64,95.66C111.38,95.66 111.13,95.56 110.94,95.37C110.76,95.19 110.65,94.94 110.65,94.68V84.12C110.65,83.57 111.09,83.14 111.64,83.14C112.18,83.14 112.62,83.57 112.62,84.12V94.68C112.62,94.81 112.59,94.94 112.54,95.05C112.49,95.17 112.42,95.28 112.33,95.37C112.24,95.46 112.13,95.54 112.01,95.59C111.89,95.63 111.76,95.66 111.64,95.66Z"
android:fillColor="#674447"/>
<path
android:pathData="M117.76,83.16C117.76,86.57 115,89.35 111.57,89.35C108.15,89.35 105.39,86.58 105.39,83.16C105.39,79.74 108.15,69.29 111.57,69.29C114.99,69.29 117.76,79.79 117.76,83.16Z"
android:fillColor="#00A07D"/>
<path
android:pathData="M111.64,69.29C110.78,69.29 109.96,69.95 109.22,71H109.22C112.35,71 114.89,80.6 114.89,83.75C114.89,86.46 112.97,88.74 110.41,89.27C110.81,89.35 111.22,89.4 111.64,89.4C115.05,89.4 117.83,86.63 117.83,83.21C117.83,79.8 115.07,69.33 111.64,69.33L111.64,69.29Z"
android:fillColor="#36B294"/>
<path
android:pathData="M89.26,98.41C89.15,98.41 89.04,98.39 88.93,98.35C88.83,98.3 88.73,98.24 88.65,98.16C88.57,98.08 88.51,97.99 88.47,97.88C88.42,97.78 88.4,97.67 88.4,97.55V88.33C88.4,87.86 88.79,87.47 89.26,87.47C89.73,87.47 90.12,87.86 90.12,88.33V97.55C90.12,97.67 90.1,97.78 90.05,97.88C90.01,97.99 89.95,98.08 89.87,98.16C89.79,98.24 89.69,98.3 89.59,98.35C89.48,98.39 89.37,98.41 89.26,98.41Z"
android:fillColor="#674447"/>
<path
android:pathData="M94.64,87.54C94.64,90.51 92.22,92.93 89.24,92.93C86.26,92.93 83.83,90.52 83.83,87.54C83.83,84.55 86.25,75.39 89.24,75.39C92.21,75.39 94.64,84.55 94.64,87.54Z"
android:fillColor="#00A07D"/>
<path
android:pathData="M89.26,75.41C88.51,75.41 87.8,75.99 87.15,76.9H87.15C89.87,76.9 92.09,85.29 92.09,88.01C92.09,90.39 90.41,92.36 88.17,92.83C88.52,92.91 88.88,92.94 89.25,92.94C92.22,92.94 94.65,90.53 94.65,87.54C94.65,84.57 92.24,75.39 89.25,75.39L89.26,75.41Z"
android:fillColor="#36B294"/>
<path
android:pathData="M64.01,128.04C80.89,128.04 96.14,121.52 107.64,110.91C100.68,112.06 90.14,100.31 79.14,104.6C74.24,106.51 58.63,119.72 45.13,125.22C51.13,127.08 57.5,128.1 64.14,128.1L64.01,128.04Z"
android:fillColor="#5F5F74"/>
<path
android:pathData="M56.27,88.16C56.27,92.43 54.57,96.51 51.56,99.53C48.55,102.54 44.46,104.23 40.2,104.23C35.94,104.23 31.85,102.54 28.84,99.53C25.82,96.51 24.13,92.43 24.13,88.16C24.13,83.9 25.82,79.81 28.84,76.8C31.85,73.79 35.94,72.09 40.2,72.09C44.46,72.09 48.55,73.79 51.56,76.8C54.57,79.81 56.27,83.9 56.27,88.16Z"
android:strokeLineJoin="round"
android:strokeWidth="7.99991"
android:fillColor="#00000000"
android:strokeColor="#555555"
android:strokeLineCap="round"/>
<path
android:pathData="M69.44,88.08L76.69,57.61"
android:strokeLineJoin="round"
android:strokeWidth="5.99989"
android:fillColor="#00000000"
android:strokeColor="#FFE420"
android:strokeLineCap="round"/>
<path
android:pathData="M72.67,57.4L83.76,57.6"
android:strokeLineJoin="round"
android:strokeWidth="5.99989"
android:fillColor="#00000000"
android:strokeColor="#555555"
android:strokeLineCap="round"/>
<path
android:pathData="M108.64,88.16C108.64,92.43 106.94,96.51 103.93,99.53C100.92,102.54 96.83,104.23 92.57,104.23C88.3,104.23 84.22,102.54 81.2,99.53C78.19,96.51 76.5,92.43 76.5,88.16C76.5,83.9 78.19,79.81 81.2,76.8C84.22,73.79 88.3,72.09 92.57,72.09C96.83,72.09 100.92,73.79 103.93,76.8C106.94,79.81 108.64,83.9 108.64,88.16Z"
android:strokeLineJoin="round"
android:strokeWidth="7.99991"
android:fillColor="#00000000"
android:strokeColor="#555555"
android:strokeLineCap="round"/>
<path
android:pathData="M49.13,63.42L69.44,88.08H92.65L76.69,63.42H49.13Z"
android:strokeLineJoin="round"
android:strokeWidth="5.99989"
android:fillColor="#00000000"
android:strokeColor="#FFE420"
android:strokeLineCap="round"/>
<path
android:pathData="M40.43,88.08L52.52,52.08L63.43,52"
android:strokeLineJoin="round"
android:strokeWidth="5.99989"
android:fillColor="#00000000"
android:strokeColor="#FFE420"
android:strokeLineCap="round"/>
</group>
</vector>
50 changes: 50 additions & 0 deletions app/src/main/res/layout/cell_labeled_icon_select_via_mtb_scale.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="0dp"
android:padding="4dp"
android:background="@drawable/image_select_cell">

<ImageView
android:id="@+id/imageView"
android:layout_width="0dp"
android:layout_height="0dp"
android:scaleType="centerCrop"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintWidth_percent="0.40"
app:layout_constraintDimensionRatio="2:3"
android:adjustViewBounds="true"
tools:src="@drawable/mtb_scale_5"
/>

<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toEndOf="@id/imageView"
app:layout_constraintEnd_toEndOf="parent"
android:orientation="vertical">

<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/TitleNextToImage"
tools:text="@string/quest_mtbScale_one" />

<TextView
android:id="@+id/descriptionView"
style="@style/DescriptionNextToImage"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:text="@string/quest_mtbScale_one_description" />

</LinearLayout>

</androidx.constraintlayout.widget.ConstraintLayout>
Loading