Syntax for changing text properties in a ListView - basic4android

I have about 25 entries in a ListView by using:
ListView1.AddTwoLinesAndBitmap2("Entry Title","Entry Description",Bitmap1,1)
I'm looking to change the text size and color of the Entry Title and Entry Description. I tried setting properties as if it were a single line but had no luck. I'm not sure how to reference the first line and second individually.

To modify the title appearance you should change:
Dim lv As ListView
lv.TwoLinesAndBitmap.Label.TextSize = 15
It doesn't matter if you use AddTwoLinesAndBitmap or AddTwoLinesAndBitmap2.

Solved this by using TwoLinesAndBitmap instead of TwoLinesAndBitmap2... does TwoLinesAndBitmap2

Related

Do I have to append textarea to the document to get its height?

Following code:
let textArea = document.createElement('textarea');
textArea.value = responseTextFromXMLHttpRequest;
$('body').append(textArea);
console.log(textArea.scrollHeight);
Gives me this result in the CONSOLE: 34
But if I don't append the textarea to the body then I get in CONSOLE: 0
Can I make the textarea to update the height without appending it first to the document? Somehow force it?
I am asking because I create 300 textareas which I fill with text and need to know their height to style them. And I am not sure if appending them to the document just to get their height is the best way I can do it. I am afraid that appending them and afterwards removing just to get the height would take up more resources than some other method if it exist.

JasperReports long field's border

I've got a long text field which wraps to another page, the problem is that the border on first page does not matches end of page...
I guess I coul've fixed it by adding some Frame element, but I couldn't achive it by now.
thanks!
I guess the cause of this problem was "Strech type: relative to tallest object"
my solution was to put all the fields in an outlined frame
and disable fields bottom border

Adding fielddata to fixed text in report designer

Using the report-designer of Reportbuilder i want to add a long fixed text to my report with one or more included fields inside the text. Of course these fields should be filled with actual data, adjusting the text.
I remember I have done such a thing in the past, but cannot remember how. I thought you could accomplish this with a Text-field and something like 'This is the text and here {fieldname} fielddata is inserted', but that doesnt seem to work
Can anybody help?
Using reportbuilder 15.04
Response from Digital Metaphores:
Use the RichtText component! By setting MailMerge to true, you can add
datafields to text in the richtext editor
This adds the reference to the fielddata as a xml tag. Adding the fields Name from pipeline plData can be done like this:
<dbtext datapipeline='plData'>Name</dbtext>
Fill in the fixed text, then (making sure the focus is set to the text box, I.E. you have the flashing pipe cursor) right click in the place you want the data field to go, and click Create Placeholder.
In the Placeholder properties window give it a Label so you know what it is, then use the "Value" field to define what data from your datasets you want to be brought through.
You should end up with the Label you set in square brackets, like [Example] within the set text.

UILabel Fit Text Perfectly

I have a UILabel that needs to be set to multiple lines of text. I have set the noOfLines property to 0 and I have the following code:
self.aboutLabel.lineBreakMode = UILineBreakModeWordWrap;
self.aboutLabel.text = self.selectedVegetableCategory.about;
[self.aboutLabel sizeToFit];
The above code does make the text span multiple lines but still some of the text is missing. I am using CoreData to retrieve the text from db and the fields are varchar but they do not have any limit on it (I have not placed any limit on the number of characters). Does, varchar by default has a limit of number of characters?
UPDATE 1: I just checked again and this is definitely the UILabel issue since CoreData returns the complete text without truncation.
UPDATE 2: The original problem still exists and now there is a new problem. I put a new label just below the original label and now the new label does not move down when the original label expands.
What is the frame of the label before & after the call to sizeToFit?
I think that you'll have to provide it a specific frame if you want it to word wrap properly.

spark form item gap in Flex

Is there a way to change the space between a spark form item and its content(textinput, conbobox)? I already set to 0 the "gap" property of the form, but still there is a lot of vertical space left between the form inputs.
Set the gap to -14 to get no gap between the items
<s:Form>
<s:layout>
<s:FormLayout gap="-14"/>
</s:layout>
<s:FormItem .....>
</s:Form>
The spark skin for formItem has left/right variables set based on "columns." I.e. left="column1:10" means the element is 10 pixels to the right of column 1.
So, create the skin, reduce those numbers in the "content" column area and check it.
Reducing all those numbers and the gap should tighten, along with setting the gap in form layout.
If you want to change the vertical gap between each Spark Form Item, create a custom skin based on FormSkin and change the gap property FormLayout.
If you want to change the horizontal gap between skin parts (labelDisplay, indicatorDisplay, helpContentGroup, ...), you need to create a custom skin based on FormItemSkin and change the ConstraintColumn values
I changed in my custom FormItem skin as followed, and it worked for me:
before:
<s:ConstraintRow id="row1" baseline="maxAscent:10" height="100%"/>
after:
<s:ConstraintRow id="row1" baseline="maxAscent:0" height="100%"/>
There are no paddingLeft, paddingRight etc. properties in FormItemLayout yet.