Entered TextField values disappeared while rotating device in appcelerator - appcelerator

I have an issue with screen orientation. The scenario is that, Suppose if there is 5 Text fields, and we entering different values for each Text field. After that, while we rotating the device, The 5th value got placed in all the Text fields and vice versa. if we entered only 3 out of 5 text fields, the last value in the field(null value) got placed in all the text fields.
Any help will be deeply appreciated. Thank you.

I fixed this issue by adding 'orientation' in below line for all in the tiapp.xml file,
android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"
i think it works.

I have never seen that before in the 5 years working with Appcelerator. Do you have a test case/code that replicates what you are doing? Maybe someone else testing would help...
Ray

Related

How can I solve scratch2 textbox problem for rtl languages like farsi?

I'm using scratch 2.0 and for RTL languages such as farsi and arabic , I've got a problem with Textboxes . You can see the problem I face in picture below, starting the sentence from left to right.
It'd be helpful if you guys can help me out.
Is it related to Adobe Air version ?
I tried modifying locale/fa.po file but the problem in text box's still there !
Thank you in advance :)
SCRATCH2 TEXTBOX PROBLEM PICTURE
The text box will disappear once you enter something in the input field then press Enter.

Xcode Auto Layout, label next to Switch

Having struggles trying to get the following view to work across devices, this is just one of many of my auto-layout issues. I have some text next to a UISwitch, on devices that are large enough I am happy for the text to be on a single line but on smaller devices the text can be split across multiple lines, I just can't get it to work correctly, it either appears like the screenshot or somewhere else messed up no matter what constraints I try to apply.
The middle image is iPhone 7.
I know this question is old, but it is something I encountered myself recently.
In the storyboard, you should set the label's horizontal Content Compression Resistance Priority to 749.
Looks like the trailing side of the switch is not constrained to align with the trailing side of the text field and other UI elements. Also make sure there is no constraint for the width of the text, as this is what will stretch.

display rating stars xcode

In a new xCode project i'm parsing a rating for example 3,5. But i want to display this score in my App. Not as a text but as in images like 3 filled stars and 1 halve filled star. Is there a way to do it? Yes? How i can do this?
What elements i need to work to display the stars? Could somebody help me out?
Like in the App Store
There would be several different approaches for this, like creating a UIView subclass that would implement a method for filling itself with UIImageviews (that would represent full or half stars) depending on rating but if you want to avoid reinventing the wheel you can find several iOS components that will do the job. Some of them can be found here.

Smartform - Horizontal line trough barcode

I already have made a new font to create the barcode in my Smartform. But now the next step.
How can I create a barcode with a horizontal line trough it?
Example:
Hope anyone could help me. I'm pretty stuck here.
i don't think there is a strikethrough option for the fonts.
if the barcode is always present at the same place, and nearly occupy the same place, you could use one of the following method
simulate the line with an empty windows over the one containing the barcode, with a non null border
use an empty window with an image containing the line
regards

Crystal Reports changes text to lower case

I have text objects on a Crystal Report in Visual Studio with an initial capital. When I print the report, the text is all lower case.
And the reason is?
We have found a workaround for this problem. Not sure how this works :) - can any expert explain?
We found that this problem of case change was happening whenever the extent of text within any page / section of the report was going beyond the settings of the page size minus gutter, left/right margins, top/bottom margins set for the report.
As a workaround, we have asked all our reports developers to keep the text (for A4 size reports) to within 7.5 inches X 7.5 inches. The problem does not happen when this is adhered to.
Would definitely like to know exact reasons for the misbehavior though.
This might be affecting by some of the settings.
But if you go and edit the field , you can see it automatically change to lowercase.
If you agains change it back your case, then it will work fine.
It looks like it happend for one time. To be honest, I don't know why this happend

Resources