label

  1. J

    B4A Library MaxLabel

    I have modified a custom view AutoTextSizeLabel where the font size is maximized either in height or width. Now it takes into account both borders and padingns. It is packaged in the b4xlib library. MaxLabel Author: Jerryk Version: 1.30 Methods: Text As String Sets or gets text of Label...
  2. EstasPerplejo

    Android Question B4x - Loop through Labels in a List

    Hi guys. I encounterd a problem and I can't seem to figure it out. Using B4X 13 on Android 15 I created 3 labels in the designer, added the name of the label-views to a list. Now I want to change the text of each label within a small loop and get an error message... Could someone here give me...
  3. J

    Android Question Vertical Label?

    I need a Label that is displayed vertically (it is rotated 90 degrees). I can do this programmatically by putting a Label in the Panel and rotating SetRotationAnimated( 0, 90 ). But is there any component that would already be displayed vertically in the Designer?
  4. epiCode

    Android Code Snippet Scrollto specific position ( Multiline Label / TextView / Views )

    If you have a multiline label or view and wish to scroll to specific position programatically, ( provided native view has mScrollY property), you can use the following code to get or set scrollY position: ( It does not require ScrollView ) Public Sub setScrollY(v As View, pos As Int) Dim...
  5. epiCode

    Android Question Charsequence Click interception

    I have a lable which has clickable charsequence text in it. I also have an action associated with clicking on the label. Now when I click in some clickable part of charsequence the label click is triggered before CS click. Is it possible to somehow reverse the interception OR programatically...
  6. jkhazraji

    B4J Library Other Font icon ( than Fontawesome and Material)

    There are more than 30 icon fonts , I am familiar ( and possibly others) with Fontawesome and Material design only. I came a cross a project (IKONLI) that uses these fonts and it states that: "...(they) integrate so seamlessly with the existing 'controls'. An icon is simply an extension of the...
  7. M

    Wish [B4X] ScrollingLabel with different modes

    Hi everyone, how many of you would like to have the ScrollingLabel (in XUI Views) settable in multiple modes? For example i would like to have "Ping Pong" scrolling, instead of the "Loop" scrolling i think it could be an "easy" but cool upgrade for that view :)
  8. FernandoMassa

    Android Question The color of the Label not change. (link video showing.)

    Hello everyone, I have a problem and I don't know if it's because of some configuration on my phone or if I'm doing something wrong. Phone is: Xiaiomi Mi Note 10 with MIUI 13.0.12 Global ? The video showing my problem.
  9. Brian Michael

    Android Question Label Long Text - View More

    Hi, does any body knows how to create something like: View More And then the long text expand
  10. stevel05

    B4J Code Snippet [DSE] SetLabelTextOverrun behaviour.

    It seems more appropriate to post small Designer Script Extensions here so here another one. Set the TextOverrun behavior for a Label. Usage: {Class}.SetLabelTextOverrun("CENTER_WORD_ELLIPSIS",Label2,Label3) {Class} is whichever class you put the method in. You can set the same behaviour on...
  11. M

    iOS Question How to make label detect link

    How to make label detect links for website, mail and phone number in b4i? see this in stackoverflow
  12. P

    Spanish Reiniciar las variables como si se usara por primera vez la app.

    Hola Foro. Saludos. Tengo un proyecto de calculadora básica (suma,resta,multiplicación,división). De los ejemplos, la mayoría usan el edittext para ingresar los datos, yo quiero usar botones y etiquetas para ingresar los datos, hacer la app tipo calculadora.... Aclaro, mucho de lo que he...
  13. M

    iOS Question Padding label

    How to add padding to a label in b4i? In this link, many way to add padding to a label. adding space padding to a uilabel But how to use this ways? For example: let UIEI = UIEdgeInsets(top: 60, left: 20, bottom: 20, right: 24) // as desired override var intrinsicContentSize:CGSize {...
  14. J

    Android Question B4XView to contain text with scrolling

    I have a reasonably sizeable amount of text which I want to display. I want scrolling (ideally both vertical & horizontal, but at least vertical) so that if it's bigger than the space allocated in the Designer the user would be able to see all the text using scrolling. As I'm using B4XPages, I...
  15. epiCode

    B4A Library [B4X] LineUtils v1.2 - get required height for multiline TextView/label with variable line spacing

    LineUtils Version: 1.2 Based on code by Erel for StringUtils function MeasureMultilineTextHeight StringUtils function calculates the height for multiplier value 1 only. With this function you can calculate height with variable line spacing. LineUtils Methods: getMultilineHeight...
  16. epiCode

    Android Question label not receiving _click event

    I have a custom class which has one label and one panel, initialized like this // In DesignerCreateView sub //...... lbLabel.initialize("Lbl") Panel1.initialize("Pnl") //...... //also there are sub to handle _click event for both Private Sub Pnl_Click Log("This is working") End Sub...
  17. M

    iOS Question Text in the Label

    Hi there I'm facing problem i cant put text on top of the label. How to do it?
  18. epiCode

    B4A Library LEDLabel 1.01

    This is my first attempt to create a library Please be kind :) This allows you to make a label with tiny indicator on left which can be turned on or off (with any choice of color) Usage instructions: - Download the ledlabel.jar & xml and put it in the B4X additional library folder - Add...
  19. epiCode

    Android Question b4xview rounded corners

    I have changed my labels to b4xview for compatibility with b4j and b4i, some of the code used label.background = colordrawable. However b4xview has only color attribute (which only changes background color). I need colordrawable since it also makes the label have rounded corners. How can I...
  20. M

    iOS Question AttributedText and CSBuilder not working

    Hi guys.. i'm trying to write a text in a Label with an icon at the beginning.. i can't do it, csbuilder act weird, i think i'm doing the correct way.. This code Dim cs As CSBuilder cs.Initialize.Font(Font.CreateMaterialIcons(20)).Append(Chr(0xE855)).Pop...
Top