Is there any possibility to auto capitalize any word that begins after a space in the AutoTextEditField or in EditField?
Example:
Company Is Blackberry
Or I should customize the EditField?
Related
For a UILabel of certain width, with certain font and font size, i want to calculate amount of characters that would make 7 lines worth of text inside it + ... (three dots showing continuation). Is there a fancier way to achieve this? Currently what i'm trying is counting up to X amount of characters or 7 new line characters, which ever comes first and i cut on the text right there.
More Detail:
Trying to make an expandable row Cell which contains the UILabel, i'm achieving this with auto layout... So to control the cell expansion, i change the text to be full text or a substring of that, with a button below which toggles between the string vs substring. All of that is working. The problem i'm getting is my method of finding the substring isnt very neat. Its not consistent on how it handles text of different combination of characters or newlines. I get variations of how it looks and sometimes it just ends with three dots on a new line rather than finishing on the 7th line.
Even using auto layout you can still use the lines property of UILabel to limit the number of lines displayed by the label.
So set it 7 and you'll get 7 or less rows. Just assign the complete text.
I have an paragraph in InDesign CC 2015, in that paragraph there is a space in front of a sentence. The space depend on the size of the font but i want to align all the sentences exactly the same. Is that possible?
This is how it looks now:
The paragraph with sapcing
This is how i want it (without adjusting every sentence individually):
The paragraph how it should be
Best regards,
Robert
it depends on the font.
you can align each line manually (by writing each line in a different text-box of course) or you can edit the font and change the letter's spacing.
Important: a "$" before the first ENSH is optional.
New to GREP. I work on retail ads and trying to figure out how to accommodate client styling rules in my existing paragraph styles. Currently, we use multiple ENSH's to switch character styles in our listings.
So far, no matter what I do, I can only get the style to apply all "$." Below is what I am trying to create with my paragraph style.
Example:
2/$4.00 [ENSH] product name [ENSH] after xx/xx/xxxx 2/$5.00
(character style 1 [ENSH] character style 2 [ENSH] character style 3)
The "$" in the example above needs to end up superscripted via GREP (apply new character style). I can't just apply to all dollar signs in the string because subsequent "$" after the first ENSH need to remain the same character style as the the text in the respective portion of the string.
Thanks for your help!
Create the first character style
Create a superscript character style say "dollar" that will inherit from the first character style
Create second character style
Create last character style
Use screenshot settings to apply styles.
Then the idea is :
1. Create a "normal" character style
2. Create the first character style (green)
3. Create a superscript character style say "dollar" that will inherit from the first character style
4. Create second character style (red)
5. Create last character style (blue)
add Grep styles like \$ => dollar
That will apply to all $'s.
add Grep style so teh last segment with dollar will have a normal style
add other grep styles.
HTH
How to create a custom Label field that works similar to default LabelField
issues : it should be able to take large texts and should be able to display them in different lines if the length exceeds the screen width.
The existing LabelField class already displays text on a different line if the length exceeds the screen width. To increase the font size do something like this:
label.setFont(Font.getDefault().derive(Font.PLAIN, 18, Ui.UNITS_pt));
I have a label field and 3 edit fields. I want characters entered in the label field to be on one line. Can anybody tell me how to do this?
You can check the length of the string using Font.getDefaultFont and call the function stringWidth passing in your label string. If the text is wider then the screen (use Display.getWidth), either make the font smaller or trim it to the size.
Another option is to implement your own field but that seems far more work... :)