slider.horiz on Android

Discuss GUI programming with the RapaGUI plugin here
Post Reply
evil
Posts: 138
Joined: Mon Jun 14, 2010 1:38 pm

slider.horiz on Android

Post by evil » Sat Feb 15, 2020 3:55 pm

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

User avatar
airsoftsoftwair
Posts: 3359
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: slider.horiz on Android

Post by airsoftsoftwair » Sat Feb 15, 2020 11:58 pm

Can you post some short example code?

evil
Posts: 138
Joined: Mon Jun 14, 2010 1:38 pm

Re: slider.horiz on Android

Post by evil » Sun Feb 16, 2020 2:51 am

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...

User avatar
airsoftsoftwair
Posts: 3359
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: slider.horiz on Android

Post by airsoftsoftwair » Sun Feb 16, 2020 12:00 pm

Ok, looks like Android's SeekBar class doesn't support vertical orientation and that's why RapaGUI can't support it either.

evil
Posts: 138
Joined: Mon Jun 14, 2010 1:38 pm

Re: slider.horiz on Android

Post by evil » Sun Feb 16, 2020 2:05 pm

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

Post Reply