corona sdk drawbacks :(

Hi all,

I am developing personal app which targets on Android, but there are some sdk drawbacks that i cnt fix it,plase help and guide me to fix these bugs.

  1. Native web Popup disappear when press back button,but the page doesnt change

  2. How to disable back button?

  3. Textfield hidden behind keyboard when focused on the keyboard, since the textfield is at bottom of the page.

  4. There is no dropdown list menu?

  5. i used wheel picker, but i cant customize the size of the wheel picker.

  6. Wheel picker hidden behind native.webpopup

  7. I have page (UI like form page), with rows of textfield for user to input information to post to database,when i implement scrollview, the textfield is floating above title bar and bottom tab bar

  8. Is there any other options other than native.textfield

THanks :slight_smile:

I can’t answer your questions about Text fields and Pickers as I hardly use them myself. Others may be able to offer help there.

Not sure what you mean by “Native web Popup disappear when press back button,but the page doesnt change”.

To handle the back key you can register to listen for key events:

http://docs.coronalabs.com/api/event/key/index.html

There’s also a third party widget library for Corona called Widget Candy that includes a bunch of widgets.

http://docs.coronalabs.com/api/event/key/index.html

Thanks @ingemar,i will try and get back to you soon :slight_smile:

My app contains four tab bar at the bottom, and i mean i add native webpopup on a page that display google search engine, when i navigate to different scene by press back button in the device, the web pop up disappear.

If you don’t want the webPopup to disappear when you press the back button you can set autoCancel=false in the options.

http://docs.coronalabs.com/api/library/native/showWebPopup.html

Thanks alots again @ingemar :slight_smile:

I fixed one of the big bug today, feel relieved :D  

1) Native web Popup disappear when press back button,but the page doesnt change

I’m pretty sure this by design.  The back button should dismiss any popups.  You should press it again to change scenes or affect the current scene some how.

2) How to disable back button?

I doubt you can disable it for native popups.  The OS is handling it at that point.  But for your Corona activity portion, you actually have to enable it.  Ingemar pointed you to the key handling code above.

3) Textfield hidden behind keyboard when focused on the keyboard, since the textfield is at bottom of the page.

You have to see the start edit event on the field in question and if it’s below say half the screen, put in code to move it to the top half of the screen.

4) There is no dropdown list menu?

No, but it’s something you can build on your own.  We’ve recently done a couple of tutorials that can get you started.  Make sure to read them in order as the 2nd one depends on the first one:

http://coronalabs.com/blog/2014/04/08/widgets-creating-a-sliding-panel/

http://coronalabs.com/blog/2014/04/15/tutorial-creating-a-sharing-panel/

5) i used wheel picker, but i cant customize the size of the wheel picker.

You cannot customize the size of the pickerWheel.  This is a frequently requested feature but with our current implementation it’s not possible.

6) Wheel picker hidden behind native.webpopup

This is how Corona works.  All of Corona’s display objects and widgets are done in OpenGL.  OpenGL sits behind anything native.*.  This is how the OS implements Native vs. OpenGL.

7) I have page (UI like form page), with rows of textfield for user to input information to post to database,when i implement scrollview, the textfield is floating above title bar and bottom tab bar

See above.  Textfields are native and can’t be inserted into scrollViews or any other Corona grouping feature (groups, containers, etc.).  You have to detect when your scrollView is moving and then move the textFields with it using a Runtime “enterFame” listener.  We did a tutorial that shows how to sync fields with groups. 

http://coronalabs.com/blog/2013/12/03/tutorial-customizing-text-input/

That tutorial is a starting point.  You likely will have to modify it for your needs.

8) Is there any other options other than native.textfield

Yes and No.  The other options, like the tutorial above still uses native.newTextField, however it tries to make it work better.  A community effort to take that concept at flush it out into a more complete widget can be found here:

http://widgetstown.com/

They have put a lot of effort into this.  I’ve not tried it, but it might be worth a look.

Rob

Hi rob

>>You cannot customize the size of the pickerWheel.  This is a frequently requested feature but with our current implementation it’s not possible.

I think its time to go for the ‘frequently requested’ features. 

Its a shame that it does need so long to do a simple pickerWheel working bugfree, one release it says fixed, and at the same time another bug come into just into the same pickerwheel that wasnt there before. sorry to ask, but do u have a quality managment.

someone who TEST the things before releasing them?

Also to resize pickerWheel is really important !!

chris

Of all the widgets, the pickerWheel is the most complex to implement.  We do QA the widgets before they go out in fact the next batch of widget fixes are in QA now.

Aa for the resize, on iOS native apps, you can resize the width, not the height.  I"m pretty sure the resizing of the height is limited to keep the wheel’s a certain size to meet the Human Interface Guidelines.   Though I suspect that most people want to resize to fit different content area sizes.  I’ll check and see what, if anything could be done with providing a resizable entry, but I can’t make any promises.

Rob

I can’t answer your questions about Text fields and Pickers as I hardly use them myself. Others may be able to offer help there.

Not sure what you mean by “Native web Popup disappear when press back button,but the page doesnt change”.

To handle the back key you can register to listen for key events:

http://docs.coronalabs.com/api/event/key/index.html

There’s also a third party widget library for Corona called Widget Candy that includes a bunch of widgets.

http://docs.coronalabs.com/api/event/key/index.html

Thanks @ingemar,i will try and get back to you soon :slight_smile:

My app contains four tab bar at the bottom, and i mean i add native webpopup on a page that display google search engine, when i navigate to different scene by press back button in the device, the web pop up disappear.

If you don’t want the webPopup to disappear when you press the back button you can set autoCancel=false in the options.

http://docs.coronalabs.com/api/library/native/showWebPopup.html

Thanks alots again @ingemar :slight_smile:

I fixed one of the big bug today, feel relieved :D  

1) Native web Popup disappear when press back button,but the page doesnt change

I’m pretty sure this by design.  The back button should dismiss any popups.  You should press it again to change scenes or affect the current scene some how.

2) How to disable back button?

I doubt you can disable it for native popups.  The OS is handling it at that point.  But for your Corona activity portion, you actually have to enable it.  Ingemar pointed you to the key handling code above.

3) Textfield hidden behind keyboard when focused on the keyboard, since the textfield is at bottom of the page.

You have to see the start edit event on the field in question and if it’s below say half the screen, put in code to move it to the top half of the screen.

4) There is no dropdown list menu?

No, but it’s something you can build on your own.  We’ve recently done a couple of tutorials that can get you started.  Make sure to read them in order as the 2nd one depends on the first one:

http://coronalabs.com/blog/2014/04/08/widgets-creating-a-sliding-panel/

http://coronalabs.com/blog/2014/04/15/tutorial-creating-a-sharing-panel/

5) i used wheel picker, but i cant customize the size of the wheel picker.

You cannot customize the size of the pickerWheel.  This is a frequently requested feature but with our current implementation it’s not possible.

6) Wheel picker hidden behind native.webpopup

This is how Corona works.  All of Corona’s display objects and widgets are done in OpenGL.  OpenGL sits behind anything native.*.  This is how the OS implements Native vs. OpenGL.

7) I have page (UI like form page), with rows of textfield for user to input information to post to database,when i implement scrollview, the textfield is floating above title bar and bottom tab bar

See above.  Textfields are native and can’t be inserted into scrollViews or any other Corona grouping feature (groups, containers, etc.).  You have to detect when your scrollView is moving and then move the textFields with it using a Runtime “enterFame” listener.  We did a tutorial that shows how to sync fields with groups. 

http://coronalabs.com/blog/2013/12/03/tutorial-customizing-text-input/

That tutorial is a starting point.  You likely will have to modify it for your needs.

8) Is there any other options other than native.textfield

Yes and No.  The other options, like the tutorial above still uses native.newTextField, however it tries to make it work better.  A community effort to take that concept at flush it out into a more complete widget can be found here:

http://widgetstown.com/

They have put a lot of effort into this.  I’ve not tried it, but it might be worth a look.

Rob

Hi rob

>>You cannot customize the size of the pickerWheel.  This is a frequently requested feature but with our current implementation it’s not possible.

I think its time to go for the ‘frequently requested’ features. 

Its a shame that it does need so long to do a simple pickerWheel working bugfree, one release it says fixed, and at the same time another bug come into just into the same pickerwheel that wasnt there before. sorry to ask, but do u have a quality managment.

someone who TEST the things before releasing them?

Also to resize pickerWheel is really important !!

chris

Of all the widgets, the pickerWheel is the most complex to implement.  We do QA the widgets before they go out in fact the next batch of widget fixes are in QA now.

Aa for the resize, on iOS native apps, you can resize the width, not the height.  I"m pretty sure the resizing of the height is limited to keep the wheel’s a certain size to meet the Human Interface Guidelines.   Though I suspect that most people want to resize to fit different content area sizes.  I’ll check and see what, if anything could be done with providing a resizable entry, but I can’t make any promises.

Rob