I am working on a Library to make multi-language preference menus.
In my Library, is a class for picking a color choice.
I would like to have the same functionality as the Dialogs' Library ColorDialog, but usable on phones in landscape mode.
When I use the ColorDialog.Show in Portrait Mode, it works exactly like I would expect.
I then make a panel with three SeekBars in landscape mode similiar to the Dialogs ColorDialog. But I cannot get the ValueChanged events to process.
If I add the Panel straight to the activity, the events process as expected.
I CAN add the Panel and get the functionality I expect, but then it is non-modal... and it would not match what I think the user (nor myself) expect, which is that timers stop, the background dims.. etc, etc.
I have looked at this thread http://www.b4x.com/forum/basic4android-updates-questions/18839-customdialog-events-2.html and my code is not being called in Activity Create.
When I check the unfiltered logs, I see for CustomDialog:
Touch event's action is 0x0 (deviceType=0) [pCnt=1, s=0.1223 ]
Delivering touch to current input target: action: 0x0
Delivering touch to current input target: action: 0x0
Delivering touch to current input target: action: 0x0
mIsLockZone = true mTiltAngle : 54.18245 value : 20
Touch event's action is 0x1 (deviceType=0) [pCnt=1, s=]
Delivering touch to current input target: action: 0x1
Delivering touch to current input target: action: 0x1
Delivering touch to current input target: action: 0x1
When I put the panel in non-modal I get:
Touch event's action is 0x0 (deviceType=0) [pCnt=1, s=0.1231 ]
Delivering touch to current input target: action: 0x0
Delivering touch to current input target: action: 0x0
Delivering touch to current input target: action: 0x0
Touch event's action is 0x1 (deviceType=0) [pCnt=1, s=]
Delivering touch to current input target: action: 0x1
Delivering touch to current input target: action: 0x1
Delivering touch to current input target: action: 0x1
So it appears that the events should be firing, but are not.
Yet the ColorDialog works great... so somehow it continues to fire events, but I can't grab those events in my Class Code.
????
In my Library, is a class for picking a color choice.
I would like to have the same functionality as the Dialogs' Library ColorDialog, but usable on phones in landscape mode.
When I use the ColorDialog.Show in Portrait Mode, it works exactly like I would expect.
I then make a panel with three SeekBars in landscape mode similiar to the Dialogs ColorDialog. But I cannot get the ValueChanged events to process.
If I add the Panel straight to the activity, the events process as expected.
I CAN add the Panel and get the functionality I expect, but then it is non-modal... and it would not match what I think the user (nor myself) expect, which is that timers stop, the background dims.. etc, etc.
I have looked at this thread http://www.b4x.com/forum/basic4android-updates-questions/18839-customdialog-events-2.html and my code is not being called in Activity Create.
When I check the unfiltered logs, I see for CustomDialog:
Touch event's action is 0x0 (deviceType=0) [pCnt=1, s=0.1223 ]
Delivering touch to current input target: action: 0x0
Delivering touch to current input target: action: 0x0
Delivering touch to current input target: action: 0x0
mIsLockZone = true mTiltAngle : 54.18245 value : 20
Touch event's action is 0x1 (deviceType=0) [pCnt=1, s=]
Delivering touch to current input target: action: 0x1
Delivering touch to current input target: action: 0x1
Delivering touch to current input target: action: 0x1
When I put the panel in non-modal I get:
Touch event's action is 0x0 (deviceType=0) [pCnt=1, s=0.1231 ]
Delivering touch to current input target: action: 0x0
Delivering touch to current input target: action: 0x0
Delivering touch to current input target: action: 0x0
Touch event's action is 0x1 (deviceType=0) [pCnt=1, s=]
Delivering touch to current input target: action: 0x1
Delivering touch to current input target: action: 0x1
Delivering touch to current input target: action: 0x1
So it appears that the events should be firing, but are not.
Yet the ColorDialog works great... so somehow it continues to fire events, but I can't grab those events in my Class Code.
????