Page 1 of 1
slider.horiz on Android
Posted: Sat Feb 15, 2020 3:55 pm
by evil
Hello!
Slider.horiz seems to have a bug on Android!
Creating a simple vertical slider (" <slider horiz="0"/> ")
creates a slider, which takes the whole height of the group (what is correct). But you cannot slide it vertically. Instead it slides a very little bit horizontally (about 1 pixel...).
A bug??
Best regards!
George
Re: slider.horiz on Android
Posted: Sat Feb 15, 2020 11:58 pm
by airsoftsoftwair
Can you post some short example code?
Re: slider.horiz on Android
Posted: Sun Feb 16, 2020 2:51 am
by evil
Here it is:
Code: Select all
xml$=[[
<?xml version="1.0" encoding="iso-8859-1"?>
<application id="app">
<window id="main" title="slider-test">
<hgroup>
<slider horiz="0"/>
</hgroup>
</window>
</application>
]]
@REQUIRE "RapaGUI"
moai.CreateApp(xml$)
waitevent
Setting slider.horiz TRUE works fine... But but setting it to FALSE has some problems... seems, as if you still only move the slider horizontally instead of vertically. And as the gadget is quiet small in width then, you hardly can see it...
Re: slider.horiz on Android
Posted: Sun Feb 16, 2020 12:00 pm
by airsoftsoftwair
Ok, looks like Android's SeekBar class doesn't support vertical orientation and that's why RapaGUI can't support it either.
Re: slider.horiz on Android
Posted: Sun Feb 16, 2020 2:05 pm
by evil
Ok.
To describe my problem: I'm writing a small vocabel-trainer for my doughter.
It includs a list of all vocabels, which should be shown via a listview.
Listviews on Android don't have a silder themself, so its annoying to scroll about some thousand vocables....
I'll see, what I can do about...
Thanks and best regards!!
George