I am creating a RCP appliaction Toolbar with Action, I want to set Image as well as MULTI-LINE Text below the image , how can this be done ?
Example -
IMAGE
Search
Result
In the above example, IMAGE is the Icon Image and "Search Result" is the text in multi-line format..
Related
there is no image and button color showing in both design and when I run it on my device.
There are no problems with my other images which was in .jpg and .png format. Those images that aren't showing are the background for my button and is also in .png. The same problem with the color of my button, it isn't showing also.
I tried transferring those background images for my button images to 'mipmap-xxxhdpi' but still no changes.
can you explain in more details what are you trying to do,
If that helps try add the image to the drawable folder
and add this line to your button in the XML file
android:background="#drawable/image_name_here"
also the name has to be all in lowercase and with not " _ " characters
I am currently using TextMesh Pro. While Input other languages in input field, its shows white boxes. Its work fine while typing English alphabet and use other languages font in input field.
Here's the screen shot of the following error..enter image description here
Here typing "hello" in English working fine in "Chinese" but if a input Chinese alphabet, it shows white boxes.
I also tries to make font asset as unicode, but its still not working. I am currently using unity 5.6.2
I faced the same problem, this is the process I went by, to solve it for me:
1. I found this very helpful,
2. Digital Native Studios Font Asset Creator was where I made my mind how to do it
3. head to Google Fonts, I chose Cyrillic in language selection section and downloaded the zip file, and extracted all in this folder: "\Assets\TextMesh Pro\Fonts"
4. I got to Window menu from menu bar of unity, then to TextMeshPro there, and from the next cascading menu I clicked "Font Asset Creator"
5. There it was straightforward thanks to its Author, I simply chose my font, then from "Character set" I chose "Unicode Range (Hex)", also, before that I googled "unicode hex range Cyrillic", and I knew that it's "0400-04FF" range and finally clicked "Generate Font Atlas" there
6. After saving I got back to unity, in Canvas I selected my TextMeshPro Text component, from Font Asset I found and selected the SDF file that was generated (easy to find by name), and also from "Material Preset" bellow that I selected the related (same name) material. I typed text in Cyrillic and magically everything worked!
I hope this helps and will be happy to help further in what I can.
Edit
This youtube clip maybe helpful too
Step 01: Download Font
open the link https://fonts.google.com/ . Click right on corner Browse fonts click. and type the font in search box.
Font List
Noto Sans [find On Google fonts]
Roboto [find On Google fonts] 3)
Code2000 [But it's not open source.]
Futura
Arial
Download Family for your favorite font.
Step 02: Install TextMeshPro plugin
from Package manager. After copy the font file NotoSans-Regular.ttf and paste to this directory. [Ex. Asset > TextMesh Pro > Resources > Fonts & Materials > paste NotoSans-Regular.ttf file]
Step 03: Create SDF for font. if any one
Select NotoSans-Regular.ttf file and create font asset SDF from menu bar Assets > Create > TextMeshPro > Font Asset OR
Short Cut-> Shift + Ctrl + F12 OR
Select NotoSans-Regular.ttf file and click mouse right button and create SDF from Create > TextMeshPro > Font Asset
Step 04: Add Other font SDF in to your primary or existing font SDF.
Select primary font SDF and show the inspector go to Fallback Font Assets. Added the NotoSans-Regular SDF in to Fallback list. [Multiple fonts added in to primary font SDF]
I am implementing RCP Project with Toolbar as extension point.
I want both Image and text in Toolbar with text below the image
How can I do this through Toolbar Extension point ?
I want to select the text in webview while i am selecting text content using mouse in webview, the selected text word is split or the mouse selecting first word alignment overlap. how to solve this issue.
Just i have load a simple html file in javafx weview component. while select the text in webview the word is split or overlapping. i am not use any JavaScript.
You can find the doubt in the following link:
enter link description here
WebView not correctly rendering selection areas is a known issue in JavaFX 2.2:
RT-18883 Google docs editing issues
RT-11239 Add draw glyph type support to Prism graphics
I am trying to add both image and string in Tabs in LWUIT-1.5. Anyway both are comes in UI but the text is coming at bottom of the image. So, I need to add both in same place like overlapping the image.
Tabs tabs = new Tabs();
tabs.addTab("Text", Image, Component);
can any one help us ?
You seem to want a background image for the tabs not an icon (which is what that API is for), you should modify the style's for the Tab UIID in the resource editor and set the image background you want.
That is not possible without using resource editor. You set either image or text. If you set both, it takes image as icon and text as title automatically.
Create theme in resource editor by setting the background image for Tabs and apply the theme in your app.