Page 1 of 1

Listview.Columns on Android

Posted: Wed Aug 18, 2021 4:38 pm
by jPV
I compiled my RapaGUI program for Android, but it seems to fail at moai.Get("lv", "columns") line. This works fine on other platforms, but not on Android...

Hollywood exits with the error:
Attribute "columns" not recognized for this class!

A bug?

Re: Listview.Columns on Android

Posted: Wed Aug 18, 2021 5:33 pm
by jPV
And other columns related stuff doesn't work either. For example, "Method "removecolumn" not recognized for this class!".

Re: Listview.Columns on Android

Posted: Wed Aug 18, 2021 10:05 pm
by airsoftsoftwair
This is a known issue because the Hollywood APK Compiler hasn't been updated for the final version of RapaGUI 2.0 yet. It should work when running the applet with the Hollywood Player, though...

Re: Listview.Columns on Android

Posted: Thu Aug 19, 2021 4:00 pm
by jPV
Ah thanks, works that way.

But one another that I think doesn't work even with Player.. moai.Get("my_textview", "text") didn't seem to return anything (sorry a bit hurry and no time to test better or make new thread now), is that known?

Re: Listview.Columns on Android

Posted: Fri Aug 20, 2021 3:24 pm
by airsoftsoftwair
Judging from the source code this should be working on Android. MCVE please.

Re: Listview.Columns on Android

Posted: Mon Aug 23, 2021 4:13 pm
by jPV
Here you are. Getting textview contents does work on MorphOS and Windows, but not on my Android phone when running applet with the player.

Code: Select all

@REQUIRE "RapaGUI"
@APPTITLE "Test"

gui$ = [[<?xml version="1.0" encoding="iso-8859-1"?>
<application id="app">
    <window title="Example GUI">
        <vgroup>
            <textview id="tview">Hello World</textview>
            <text id="txt">None</text>
        </vgroup>
    </window>
</application>]]

moai.CreateApp(gui$)
text$ = moai.Get("tview", "text")

; This should print len: 11, but prints len: 0 on my Android phone
moai.Set("txt", "text", "len: " .. StrLen(text$))

Repeat
   WaitEvent
Forever

Re: Listview.Columns on Android

Posted: Thu Aug 26, 2021 9:07 pm
by airsoftsoftwair
Fixed now. Workaround: Just set Textview.Styled to TRUE and it should work.

Code: Select all

- Fix [Android]: Textview.Text returned an empty string on Android if Textview.Styled was set to FALSE

Re: Listview.Columns on Android

Posted: Sun Sep 19, 2021 11:53 am
by airsoftsoftwair
jPV wrote: Wed Aug 18, 2021 5:33 pm And other columns related stuff doesn't work either. For example, "Method "removecolumn" not recognized for this class!".
With the newly released APK Compiler 4.0, this should be working now.