Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add illustration for British vibrating button by @Cj-Malone (#2127)
- Loading branch information
1 parent
406a820
commit 6d21dbe
Showing
7 changed files
with
16 additions
and
3 deletions.
There are no files selected for viewing
13 changes: 12 additions & 1 deletion
13
...stnordost/streetcomplete/quests/traffic_signals_vibrate/AddTrafficSignalsVibrationForm.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,23 @@ | ||
package de.westnordost.streetcomplete.quests.traffic_signals_vibrate | ||
|
||
import android.os.Bundle | ||
import android.view.View | ||
import de.westnordost.streetcomplete.R | ||
import de.westnordost.streetcomplete.quests.AYesNoQuestAnswerFragment | ||
import kotlinx.android.synthetic.main.quest_traffic_lights_vibration.* | ||
|
||
class AddTrafficSignalsVibrationForm : AYesNoQuestAnswerFragment<Boolean>() { | ||
|
||
override val contentLayoutResId = R.layout.quest_traffic_lights_vibration | ||
|
||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) { | ||
super.onViewCreated(view, savedInstanceState) | ||
|
||
// this is necessary because the inflated image view uses the activity context rather than | ||
// the fragment / layout inflater context' resources to access it's drawable | ||
buttonIllustrationImageView.setImageDrawable(resources.getDrawable(R.drawable.vibrating_button_illustration)) | ||
} | ||
|
||
override fun onClick(answer: Boolean) { applyAnswer(answer) } | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+15 KB
app/src/main/res/drawable-mcc234-hdpi/vibrating_button_illustration.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+10.8 KB
app/src/main/res/drawable-mcc234-mdpi/vibrating_button_illustration.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+20.1 KB
app/src/main/res/drawable-mcc234-xhdpi/vibrating_button_illustration.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+31.9 KB
app/src/main/res/drawable-mcc234-xxhdpi/vibrating_button_illustration.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters