fix: tune real weather particle rendering
Some checks failed
validate-scripts / validate-scripts (push) Has been cancelled
Some checks failed
validate-scripts / validate-scripts (push) Has been cancelled
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package org.maplibre.android.testapp.activity.particle
|
||||
|
||||
import android.os.Bundle
|
||||
import android.graphics.Color
|
||||
import android.util.Log
|
||||
import android.widget.Button
|
||||
import android.widget.PopupMenu
|
||||
@@ -37,6 +38,10 @@ class ParticleCoreLayerValidationActivity : AppCompatActivity() {
|
||||
private var productionFeedMode = false
|
||||
private var hostSubmissionMode = false
|
||||
private var realWeatherMode = false
|
||||
private var realWeatherTuningMenu: PopupMenu? = null
|
||||
private var realWeatherMenuAnchor: android.view.View? = null
|
||||
private var openRealWeatherTuningAfterStyle = false
|
||||
private var preRealWeatherVisuals: ParticleVisuals? = null
|
||||
private var styleLoadEpoch = 0L
|
||||
private var styleReady = false
|
||||
// Display mirror only; Core remains the playback state authority.
|
||||
@@ -69,6 +74,11 @@ class ParticleCoreLayerValidationActivity : AppCompatActivity() {
|
||||
|
||||
mapView = findViewById(R.id.mapView)
|
||||
status = findViewById(R.id.validationStatus)
|
||||
mapView.addOnDidFailLoadingMapListener { errorMessage ->
|
||||
if (realWeatherMode) {
|
||||
Log.w(TAG, "ParticleField: event=BASEMAP_TILE_ERROR provider=GSI reason=$errorMessage failSoft=true")
|
||||
}
|
||||
}
|
||||
mapView.onCreate(savedInstanceState)
|
||||
mapView.getMapAsync { map ->
|
||||
maplibreMap = map
|
||||
@@ -78,6 +88,7 @@ class ParticleCoreLayerValidationActivity : AppCompatActivity() {
|
||||
.zoom(2.0)
|
||||
.build()
|
||||
}
|
||||
updateRealWeatherButtonState()
|
||||
loadValidationStyle(active = active, enabled = enabled, reason = "INITIAL")
|
||||
}
|
||||
|
||||
@@ -103,6 +114,7 @@ class ParticleCoreLayerValidationActivity : AppCompatActivity() {
|
||||
if (this::maplibreMap.isInitialized) setValidationProperties(active = active, maskMode = MASK_OCEAN_B)
|
||||
}
|
||||
findViewById<Button>(R.id.validationUniformEast).setOnClickListener {
|
||||
leaveRealWeatherMode()
|
||||
timeWindowMode = false
|
||||
productionFeedMode = false
|
||||
hostSubmissionMode = false
|
||||
@@ -111,6 +123,7 @@ class ParticleCoreLayerValidationActivity : AppCompatActivity() {
|
||||
if (this::maplibreMap.isInitialized) loadValidationStyle(active, enabled, "UNIFORM_EAST")
|
||||
}
|
||||
findViewById<Button>(R.id.validationUniformNorth).setOnClickListener {
|
||||
leaveRealWeatherMode()
|
||||
timeWindowMode = false
|
||||
productionFeedMode = false
|
||||
hostSubmissionMode = false
|
||||
@@ -119,6 +132,7 @@ class ParticleCoreLayerValidationActivity : AppCompatActivity() {
|
||||
if (this::maplibreMap.isInitialized) loadValidationStyle(active, enabled, "UNIFORM_NORTH")
|
||||
}
|
||||
findViewById<Button>(R.id.validationVortex).setOnClickListener {
|
||||
leaveRealWeatherMode()
|
||||
timeWindowMode = false
|
||||
productionFeedMode = false
|
||||
hostSubmissionMode = false
|
||||
@@ -127,6 +141,7 @@ class ParticleCoreLayerValidationActivity : AppCompatActivity() {
|
||||
if (this::maplibreMap.isInitialized) loadValidationStyle(active, enabled, "VORTEX")
|
||||
}
|
||||
findViewById<Button>(R.id.validationTimeWindow).setOnClickListener {
|
||||
leaveRealWeatherMode()
|
||||
timeWindowMode = true
|
||||
productionFeedMode = true
|
||||
hostSubmissionMode = false
|
||||
@@ -153,6 +168,7 @@ class ParticleCoreLayerValidationActivity : AppCompatActivity() {
|
||||
if (this::maplibreMap.isInitialized) duplicateRuntimeFieldWindow()
|
||||
}
|
||||
findViewById<Button>(R.id.validationProductionInvalid).setOnClickListener {
|
||||
leaveRealWeatherMode()
|
||||
productionFeedMode = true
|
||||
hostSubmissionMode = false
|
||||
realWeatherMode = false
|
||||
@@ -161,6 +177,7 @@ class ParticleCoreLayerValidationActivity : AppCompatActivity() {
|
||||
if (this::maplibreMap.isInitialized) loadValidationStyle(active, enabled, "INVALID_PRODUCTION_METADATA")
|
||||
}
|
||||
findViewById<Button>(R.id.validationHostFieldSubmit).setOnClickListener {
|
||||
leaveRealWeatherMode()
|
||||
timeWindowMode = true
|
||||
productionFeedMode = false
|
||||
hostSubmissionMode = true
|
||||
@@ -174,14 +191,7 @@ class ParticleCoreLayerValidationActivity : AppCompatActivity() {
|
||||
if (this::maplibreMap.isInitialized) submitHostValidationField(3, duplicate = true)
|
||||
}
|
||||
findViewById<Button>(R.id.validationRealWeather).setOnClickListener {
|
||||
timeWindowMode = true
|
||||
productionFeedMode = false
|
||||
hostSubmissionMode = true
|
||||
realWeatherMode = true
|
||||
fixtureMode = FIXTURE_UNIFORM_EAST
|
||||
timeMix = 0.0f
|
||||
timelineState = "NOT READY"
|
||||
if (this::maplibreMap.isInitialized) loadValidationStyle(active, enabled, "REAL_WEATHER")
|
||||
activateRealWeather(realWeatherMenuAnchor)
|
||||
}
|
||||
findViewById<Button>(R.id.validationHostFieldInvalid).setOnClickListener {
|
||||
if (this::maplibreMap.isInitialized) submitInvalidHostValidationField()
|
||||
@@ -206,11 +216,107 @@ class ParticleCoreLayerValidationActivity : AppCompatActivity() {
|
||||
maplibreMap.cameraPosition = CameraPosition.Builder().target(LatLng(0.0, 0.0)).zoom(0.0).build()
|
||||
Log.i(TAG, "ParticleValidation30_03: WORLD_WRAP preset center=0,0 zoom=0")
|
||||
}
|
||||
findViewById<Button>(R.id.validationMenuTime).setOnClickListener { showTimeMenu(it) }
|
||||
findViewById<Button>(R.id.validationMenuVisual).setOnClickListener { showMenu(it, "VIS", intArrayOf(R.id.validationVisualDefault, R.id.validationVisualColor, R.id.validationVisualSizeDown, R.id.validationVisualSizeUp, R.id.validationVisualLengthDown, R.id.validationVisualLengthUp, R.id.validationVisualOpacityDown, R.id.validationVisualOpacityUp, R.id.validationVisualTrailDown, R.id.validationVisualTrailUp, R.id.validationVisualFadeDown, R.id.validationVisualFadeUp)) }
|
||||
findViewById<Button>(R.id.validationMenuCount).setOnClickListener { showMenu(it, "COUNT", intArrayOf(R.id.validationParticle256, R.id.validationParticle1024, R.id.validationParticle4096, R.id.validationParticle16384, R.id.validationParticle65536, R.id.validationParticle262144, R.id.validationParticle1048576)) }
|
||||
findViewById<Button>(R.id.validationMenuMap).setOnClickListener { showMenu(it, "MAP", intArrayOf(R.id.validationGlobal, R.id.validationOceanA, R.id.validationOceanB, R.id.validationDateline, R.id.validationWorldWrap)) }
|
||||
findViewById<Button>(R.id.validationMenuMore).setOnClickListener { showMenu(it, "MORE", intArrayOf(R.id.validationActive, R.id.validationStatic, R.id.validationDisable, R.id.validationEnable, R.id.validationUniformEast, R.id.validationUniformNorth, R.id.validationVortex, R.id.validationTimeWindow, R.id.validationHostFieldSubmit, R.id.validationRealWeather, R.id.validationProductionInvalid, R.id.validationHostFieldDuplicate, R.id.validationHostFieldInvalid, R.id.validationAdvanceWindow, R.id.validationDuplicateWindow)) }
|
||||
findViewById<Button>(R.id.validationMenuTime).setOnClickListener { dismissRealWeatherTuning(); showTimeMenu(it) }
|
||||
findViewById<Button>(R.id.validationMenuVisual).setOnClickListener { dismissRealWeatherTuning(); showMenu(it, "VIS", intArrayOf(R.id.validationVisualDefault, R.id.validationVisualColor, R.id.validationVisualSizeDown, R.id.validationVisualSizeUp, R.id.validationVisualLengthDown, R.id.validationVisualLengthUp, R.id.validationVisualOpacityDown, R.id.validationVisualOpacityUp, R.id.validationVisualTrailDown, R.id.validationVisualTrailUp, R.id.validationVisualFadeDown, R.id.validationVisualFadeUp)) }
|
||||
findViewById<Button>(R.id.validationMenuCount).setOnClickListener { dismissRealWeatherTuning(); showMenu(it, "COUNT", intArrayOf(R.id.validationParticle256, R.id.validationParticle1024, R.id.validationParticle4096, R.id.validationParticle16384, R.id.validationParticle65536, R.id.validationParticle262144, R.id.validationParticle1048576)) }
|
||||
findViewById<Button>(R.id.validationMenuMap).setOnClickListener { dismissRealWeatherTuning(); showMenu(it, "MAP", intArrayOf(R.id.validationGlobal, R.id.validationOceanA, R.id.validationOceanB, R.id.validationDateline, R.id.validationWorldWrap)) }
|
||||
findViewById<Button>(R.id.validationMenuRealWeather).setOnClickListener { activateRealWeather(it) }
|
||||
findViewById<Button>(R.id.validationMenuMore).setOnClickListener { dismissRealWeatherTuning(); showMenu(it, "MORE", intArrayOf(R.id.validationActive, R.id.validationStatic, R.id.validationDisable, R.id.validationEnable, R.id.validationUniformEast, R.id.validationUniformNorth, R.id.validationVortex, R.id.validationTimeWindow, R.id.validationHostFieldSubmit, R.id.validationProductionInvalid, R.id.validationHostFieldDuplicate, R.id.validationHostFieldInvalid, R.id.validationAdvanceWindow, R.id.validationDuplicateWindow)) }
|
||||
}
|
||||
|
||||
private data class ParticleVisuals(val count: Int, val width: Float, val length: Float, val opacity: Float, val trailOpacity: Float, val trailFade: Float)
|
||||
|
||||
private fun activateRealWeather(anchor: android.view.View?) {
|
||||
realWeatherMenuAnchor = anchor ?: findViewById(R.id.validationMenuRealWeather)
|
||||
if (realWeatherMode) {
|
||||
if (realWeatherTuningMenu == null) showRealWeatherTuning(realWeatherMenuAnchor!!) else dismissRealWeatherTuning()
|
||||
return
|
||||
}
|
||||
preRealWeatherVisuals = ParticleVisuals(particleCount, lineWidth, particleLength, particleOpacity, trailOpacity, trailFade)
|
||||
particleCount = REAL_WEATHER_PARTICLE_COUNT
|
||||
lineWidth = REAL_WEATHER_LINE_WIDTH
|
||||
particleLength = REAL_WEATHER_STREAK_LENGTH
|
||||
particleOpacity = REAL_WEATHER_PARTICLE_OPACITY
|
||||
trailOpacity = REAL_WEATHER_TRAIL_OPACITY
|
||||
trailFade = REAL_WEATHER_TRAIL_FADE
|
||||
timeWindowMode = true
|
||||
productionFeedMode = false
|
||||
hostSubmissionMode = true
|
||||
realWeatherMode = true
|
||||
fixtureMode = FIXTURE_UNIFORM_EAST
|
||||
timeMix = 0.0f
|
||||
timelineState = "NOT READY"
|
||||
openRealWeatherTuningAfterStyle = true
|
||||
updateRealWeatherButtonState()
|
||||
if (this::maplibreMap.isInitialized) loadValidationStyle(active, enabled, "REAL_WEATHER")
|
||||
}
|
||||
|
||||
private fun leaveRealWeatherMode() {
|
||||
dismissRealWeatherTuning()
|
||||
if (realWeatherMode) {
|
||||
preRealWeatherVisuals?.let { visuals ->
|
||||
particleCount = visuals.count; lineWidth = visuals.width; particleLength = visuals.length
|
||||
particleOpacity = visuals.opacity; trailOpacity = visuals.trailOpacity; trailFade = visuals.trailFade
|
||||
}
|
||||
}
|
||||
preRealWeatherVisuals = null
|
||||
realWeatherMode = false
|
||||
openRealWeatherTuningAfterStyle = false
|
||||
updateRealWeatherButtonState()
|
||||
}
|
||||
|
||||
private fun updateRealWeatherButtonState() {
|
||||
val button = findViewById<Button>(R.id.validationMenuRealWeather)
|
||||
button.isSelected = realWeatherMode
|
||||
button.isActivated = realWeatherMode
|
||||
button.setTextColor(if (realWeatherMode) Color.YELLOW else Color.WHITE)
|
||||
}
|
||||
|
||||
private fun dismissRealWeatherTuning() { realWeatherTuningMenu?.dismiss(); realWeatherTuningMenu = null }
|
||||
|
||||
private fun showRealWeatherTuning(anchor: android.view.View) {
|
||||
if (!realWeatherMode) return
|
||||
PopupMenu(this, anchor).also { popup ->
|
||||
realWeatherTuningMenu = popup
|
||||
popup.menu.add(0, 100, 0, "PARTICLE TUNING").isEnabled = false
|
||||
arrayOf("P -", "P +", "W -", "W +", "L -", "L +", "O -", "O +", "T -", "T +", "F -", "F +", "RESET DEFAULT")
|
||||
.forEachIndexed { index, label -> popup.menu.add(0, index, index, label) }
|
||||
popup.setOnMenuItemClickListener { item -> adjustRealWeatherTuning(item.itemId); true }
|
||||
popup.setOnDismissListener { if (realWeatherTuningMenu === popup) realWeatherTuningMenu = null }
|
||||
popup.show()
|
||||
}
|
||||
}
|
||||
|
||||
private fun adjustRealWeatherTuning(action: Int) {
|
||||
when (action) {
|
||||
0 -> setParticleCount(nextRealWeatherCount(-1)); 1 -> setParticleCount(nextRealWeatherCount(1))
|
||||
2 -> setVisualFloat("raster-particle-line-width", (lineWidth - 0.25f).coerceAtLeast(0.25f)) { lineWidth = it }
|
||||
3 -> setVisualFloat("raster-particle-line-width", (lineWidth + 0.25f).coerceAtMost(3.0f)) { lineWidth = it }
|
||||
4 -> setVisualFloat("raster-particle-particle-length", (particleLength - 0.001f).coerceAtLeast(0.0005f)) { particleLength = it }
|
||||
5 -> setVisualFloat("raster-particle-particle-length", (particleLength + 0.001f).coerceAtMost(0.020f)) { particleLength = it }
|
||||
6 -> setVisualFloat("raster-particle-particle-opacity", (particleOpacity - 0.05f).coerceAtLeast(0.10f)) { particleOpacity = it }
|
||||
7 -> setVisualFloat("raster-particle-particle-opacity", (particleOpacity + 0.05f).coerceAtMost(1.0f)) { particleOpacity = it }
|
||||
8 -> setVisualFloat("raster-particle-trail-opacity", (trailOpacity - 0.05f).coerceAtLeast(0.0f)) { trailOpacity = it }
|
||||
9 -> setVisualFloat("raster-particle-trail-opacity", (trailOpacity + 0.05f).coerceAtMost(1.0f)) { trailOpacity = it }
|
||||
10 -> setVisualFloat("raster-particle-trail-fade", (trailFade - 0.01f).coerceAtLeast(0.80f)) { trailFade = it }
|
||||
11 -> setVisualFloat("raster-particle-trail-fade", (trailFade + 0.01f).coerceAtMost(0.99f)) { trailFade = it }
|
||||
12 -> resetRealWeatherDefaults()
|
||||
}
|
||||
Log.i(TAG, "ParticleTuning: event=APPLY realWeather=true action=$action values=${realWeatherHudValues()}")
|
||||
}
|
||||
|
||||
private fun nextRealWeatherCount(direction: Int): Int {
|
||||
val index = REAL_WEATHER_PARTICLE_COUNTS.indexOf(particleCount).let { if (it < 0) 3 else it }
|
||||
return REAL_WEATHER_PARTICLE_COUNTS[(index + direction).coerceIn(0, REAL_WEATHER_PARTICLE_COUNTS.lastIndex)]
|
||||
}
|
||||
|
||||
private fun resetRealWeatherDefaults() {
|
||||
setParticleCount(REAL_WEATHER_PARTICLE_COUNT)
|
||||
setVisualFloat("raster-particle-line-width", REAL_WEATHER_LINE_WIDTH) { lineWidth = it }
|
||||
setVisualFloat("raster-particle-particle-length", REAL_WEATHER_STREAK_LENGTH) { particleLength = it }
|
||||
setVisualFloat("raster-particle-particle-opacity", REAL_WEATHER_PARTICLE_OPACITY) { particleOpacity = it }
|
||||
setVisualFloat("raster-particle-trail-opacity", REAL_WEATHER_TRAIL_OPACITY) { trailOpacity = it }
|
||||
setVisualFloat("raster-particle-trail-fade", REAL_WEATHER_TRAIL_FADE) { trailFade = it }
|
||||
}
|
||||
|
||||
private fun showMenu(anchor: android.view.View, title: String, actions: IntArray) {
|
||||
@@ -317,6 +423,11 @@ class ParticleCoreLayerValidationActivity : AppCompatActivity() {
|
||||
timelineState = "READY"
|
||||
}
|
||||
status.text = statusText()
|
||||
updateRealWeatherButtonState()
|
||||
if (openRealWeatherTuningAfterStyle && realWeatherMode) {
|
||||
openRealWeatherTuningAfterStyle = false
|
||||
realWeatherMenuAnchor?.let { showRealWeatherTuning(it) }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -489,7 +600,7 @@ class ParticleCoreLayerValidationActivity : AppCompatActivity() {
|
||||
status.text = statusText()
|
||||
Log.i(TAG, "ParticleField: event=REAL_WEATHER_INITIAL_WINDOW_READY results=${results.joinToString(",")} timeline=$timelineState")
|
||||
Log.i(TAG, "WeatherColorLayer: event=WEATHER_COLOR_FIELD_READY source=$PARTICLE_SOURCE_ID scale=0..30mps")
|
||||
Log.i(TAG, "ParticleField: event=REAL_WEATHER_COMPOSITE_READY source=$PARTICLE_SOURCE_ID basemap=OSM color=weather-color particle=raster-particle")
|
||||
Log.i(TAG, "ParticleField: event=REAL_WEATHER_COMPOSITE_READY source=$PARTICLE_SOURCE_ID basemap=GSI failSoft=true color=weather-color particle=raster-particle")
|
||||
}
|
||||
|
||||
private fun fitRealWeatherBounds() {
|
||||
@@ -560,9 +671,12 @@ class ParticleCoreLayerValidationActivity : AppCompatActivity() {
|
||||
"EAST"
|
||||
}
|
||||
val playback = if (timeWindowMode) " · ${if (realWeatherMode) "REAL WEATHER" else if (hostSubmissionMode) "HOST" else if (productionFeedMode) "PRODUCTION" else "FIXTURE"} · TL $timelineState · $timelineSpeed" else ""
|
||||
return "$mask · $runtime · $fields$playback · MIX ${(timeMix * 100).toInt()}% · $particleCount · W ${"%.1f".format(lineWidth)} L ${"%.3f".format(particleLength)} O ${(particleOpacity * 100).toInt()} T ${(trailOpacity * 100).toInt()} F ${(trailFade * 100).toInt()} C ${if (speedColorEnabled) "ON" else "OFF"}"
|
||||
val summary = "$mask · $runtime · $fields$playback · MIX ${(timeMix * 100).toInt()}%"
|
||||
return if (realWeatherMode) "$summary\n${realWeatherHudValues()}" else "$summary · $particleCount · W ${"%.1f".format(lineWidth)} L ${"%.3f".format(particleLength)} O ${(particleOpacity * 100).toInt()} T ${(trailOpacity * 100).toInt()} F ${(trailFade * 100).toInt()} C ${if (speedColorEnabled) "ON" else "OFF"}"
|
||||
}
|
||||
|
||||
private fun realWeatherHudValues(): String = "P $particleCount · W ${"%.2f".format(lineWidth)} · L ${"%.4f".format(particleLength)} · O ${"%.2f".format(particleOpacity)} · T ${"%.2f".format(trailOpacity)} · F ${"%.2f".format(trailFade)}"
|
||||
|
||||
private fun validationStyle(active: Boolean, enabled: Boolean, reason: String): String {
|
||||
val fixtureId = fixtureId()
|
||||
val nextFixtureId = if (timeWindowMode) {
|
||||
@@ -623,7 +737,7 @@ class ParticleCoreLayerValidationActivity : AppCompatActivity() {
|
||||
"name": "Particle Core Layer Validation",
|
||||
"sources": {
|
||||
"particle-fixture": $source,
|
||||
"osm-basemap": {"type":"raster","tiles":["https://tile.openstreetmap.org/{z}/{x}/{y}.png"],"tileSize":256,"maxzoom":19},
|
||||
"gsi-basemap": {"type":"raster","tiles":["https://cyberjapandata.gsi.go.jp/xyz/std/{z}/{x}/{y}.png"],"tileSize":256,"maxzoom":18},
|
||||
"validation-point": {
|
||||
"type": "geojson",
|
||||
"data": {"type":"Feature","geometry":{"type":"Point","coordinates":[0,0]}}
|
||||
@@ -631,7 +745,7 @@ class ParticleCoreLayerValidationActivity : AppCompatActivity() {
|
||||
},
|
||||
"layers": [
|
||||
{"id":"validation-background","type":"background","paint":{"background-color":"#102030"}},
|
||||
${if (realWeatherMode) "{\"id\":\"osm-basemap\",\"type\":\"raster\",\"source\":\"osm-basemap\",\"paint\":{\"raster-opacity\":1.0}}," else ""}
|
||||
${if (realWeatherMode) "{\"id\":\"gsi-basemap\",\"type\":\"raster\",\"source\":\"gsi-basemap\",\"paint\":{\"raster-opacity\":1.0}}," else ""}
|
||||
$validationDecorations
|
||||
$weatherColorLayer
|
||||
$particleLayer
|
||||
@@ -700,8 +814,11 @@ class ParticleCoreLayerValidationActivity : AppCompatActivity() {
|
||||
private const val FIXTURE_UNIFORM_NORTH = 1
|
||||
private const val FIXTURE_VORTEX = 2
|
||||
private const val PARTICLE_COUNT_256 = 256
|
||||
private const val PARTICLE_COUNT_512 = 512
|
||||
private const val PARTICLE_COUNT_1024 = 1024
|
||||
private const val PARTICLE_COUNT_2048 = 2048
|
||||
private const val PARTICLE_COUNT_4096 = 4096
|
||||
private const val PARTICLE_COUNT_8192 = 8192
|
||||
private const val PARTICLE_COUNT_16384 = 16384
|
||||
private const val PARTICLE_COUNT_65536 = 65536
|
||||
private const val PARTICLE_COUNT_262144 = 262144
|
||||
@@ -711,5 +828,12 @@ class ParticleCoreLayerValidationActivity : AppCompatActivity() {
|
||||
private const val DEFAULT_PARTICLE_OPACITY = 1.0f
|
||||
private const val DEFAULT_TRAIL_OPACITY = 1.0f
|
||||
private const val DEFAULT_TRAIL_FADE = 0.92f
|
||||
private const val REAL_WEATHER_PARTICLE_COUNT = PARTICLE_COUNT_2048
|
||||
private const val REAL_WEATHER_LINE_WIDTH = 0.75f
|
||||
private const val REAL_WEATHER_STREAK_LENGTH = 0.004f
|
||||
private const val REAL_WEATHER_PARTICLE_OPACITY = 0.75f
|
||||
private const val REAL_WEATHER_TRAIL_OPACITY = 0.55f
|
||||
private const val REAL_WEATHER_TRAIL_FADE = 0.88f
|
||||
private val REAL_WEATHER_PARTICLE_COUNTS = intArrayOf(PARTICLE_COUNT_256, PARTICLE_COUNT_512, PARTICLE_COUNT_1024, PARTICLE_COUNT_2048, PARTICLE_COUNT_4096, PARTICLE_COUNT_8192, PARTICLE_COUNT_16384)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
<Button android:id="@+id/validationMenuVisual" style="@style/ParticleValidationButton" android:layout_width="0dp" android:layout_weight="1" android:text="VIS" />
|
||||
<Button android:id="@+id/validationMenuCount" style="@style/ParticleValidationButton" android:layout_width="0dp" android:layout_weight="1" android:text="COUNT" />
|
||||
<Button android:id="@+id/validationMenuMap" style="@style/ParticleValidationButton" android:layout_width="0dp" android:layout_weight="1" android:text="MAP" />
|
||||
<Button android:id="@+id/validationMenuRealWeather" style="@style/ParticleValidationButton" android:layout_width="0dp" android:layout_weight="1" android:text="REAL WEATHER" android:textSize="10sp" />
|
||||
<Button android:id="@+id/validationMenuMore" style="@style/ParticleValidationButton" android:layout_width="0dp" android:layout_weight="1" android:text="MORE" />
|
||||
</LinearLayout>
|
||||
<!-- Existing action IDs are invisible menu targets; no permanent button grid. -->
|
||||
|
||||
Reference in New Issue
Block a user