button

  1. P

    B4X Buttons grid example

    Check out the new version in message #3. Did you ever wanted to put a lot of buttons on a screen and have them fill the screen? No, not yet? Then here's how you can accomplish that. What does it look like on different devices? The 100 buttons are placed on a panel (or pane) and...
  2. walterf25

    B4J Question ABMButton Font Size

    Hi everyone, is there a way to change the font size on an ABMButton, maybe it's just me and i'm really tired but I don't see any method or property to change the font size, does anyone have any clue on how to do this? Regards, Walter
  3. fat32

    B4A Library [B4X] [XUI] XQ MiniListButton

    A small button, that changes/cycles values from a list. Very useful, to allow user to select specific values from a list. Features: Change background and text color Customizable text label width/size Customizable icon label width/size Can adjust icon spacing/padding Change Event Reversible...
  4. yo3ggx

    Android Question Capture buttons from a Bluetooth audio device

    Hello, I have a Bluetooth audio device (mic+speaker) with 3 more buttons. Tried to capture following intents using BroadcastReceiver: "android.intent.action.MEDIA_BUTTON" "android.bluetooth.headset.action.VENDOR_SPECIFIC_HEADSET_EVENT" Tried to request AudioFocus and start a mediaplayer ( as...
  5. Alexander Stolte

    Android Example [B4X] AS DraggableBottomCard - Drag Indicator - Confirm Button

    https://www.b4x.com/android/forum/threads/b4x-xui-as-draggable-bottom-card.121219/ 'DragIndicator Dim xpnl_DragIndicator As B4XView = xui.CreatePanel("") BottomCard.HeaderPanel.AddView(xpnl_DragIndicator,Root.Width/2 - 70dip/2,HeaderHeight/2 - 6dip/2,70dip,6dip)...
  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. carlos7000

    Android Question Opinions about the 'On' button in an app that controls GPS

    Hello, everyone! I am developing a mobile application that includes a Toggle button to activate and deactivate the GPS. The button is labeled as 'GPS'. I would like to hear your opinions and perceptions about the design of the 'GPS' button. The question is: What do you initially think when...
  8. Lucas Siqueira

    B4A Library [B4X] [XUI] BR_Button

    BR_Button you are free to modify as you wish. Was created with the intention of leaving the button working equally in the 3 ides (b4a, b4i and b4j). With the possibility to define a custom font directly in the designer (b4a already does this, but in b4i it is a little more complicated) You...
  9. H

    Android Question Button Change Color

    Hi, It's me again. Follow up question to my old thread about Quiz App. This is the scenario. At the end of the exam (Result Layout). The user have an option to Retry or Review the Exam. In the Review module, I have generated buttons depending on the Number of Questions. Now let's say the app...
  10. M

    Android Question EditText disable "Next" button in keyboard

    Hi everyone, I've an UI setup that can cause problem if an user tap on the "Next" button on the keyboard when writing in an EditText. I wish to know if its possibile to disable it, or intercept its press and cancel the standard behavior (like _KeyPress). At the moment I worked around the...
  11. tulerpeton

    Looking for a developer B4A

    Hi, I need to modify this attached project in B4A : It displays sliding panels with labels on each. The work I ask is for start : - I would like to add an image button on each panel instead of the label. - And if pressed I need each button to open a new panel. If you can do this, send me...
  12. M

    iOS Question Button with image/icon and text aligned correctly

    Hi everyone, I'm trying to achieve this result for a button I tried by using ButtonAttributeText and MaterialIcons but the result is this arrow and text should be horizontally aligned... (bigger is the MaterialIcon character, and more evident the offset became) So I tried using an...
  13. R

    Android Question Adding StatelistDrawable button in code

    I am using StatelistDrawable buttons, setup in the designer, but how would I add these buttons in code, not using the designer? StatelistDrawable ColorDrawable Color: #FFFFFFFF Corner radius: 6 Border color: #00FFFFFF BorderWidth: 0 Pressed Drawable: Color: Default Corner radius: 0 RBS
  14. stevel05

    B4J Code Snippet {DSE] Button Shapes

    These methods are now included in DSE_Shapes class which provides more functionality. Here are several Designer script extension methods that allow buttons to be shaped and rotated. It's a bit of a novelty, but may come in useful at some time. Each shape method also attempts to apply...
  15. 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...
  16. Alexander Stolte

    B4A Library [B4X] [XUI] AS TextFieldAdvanced - Title, Information, Counter, Password, Button, Prefix, Suffix, Icons, Multiline

    With this view you can quickly and easily add good looking text fields, with title and or bottom text. Additionally you can make the TextField a button, so that you can open menus, but still keep the design of the text fields. The view speeds up development because you don't have to worry about...
  17. R

    Android Question Difference DefaultDrawable and StateListDrawable buttons regarding button edge

    Trying to place button on a panel and set the gap between those buttons. Noticed there seems to be a difference between DefaultDrawable and StateListDrawable buttons as how the edge of the button shows on the panel. These 2 layout scripts show the difference: For StateListDrawable buttons this...
  18. mmrafiei

    Android Question Shape the Button

    hello guys, I have a question how can i shape the button in b4a. for example make a round button. may you help me.I am a novice in b4a, please guide me completely.
  19. I

    Android Question Add Image to button in code

    Hi There, I am trying to add an image to a button via code and achieve the look as in this post: https://www.b4x.com/android/forum/threads/how-to-add-image-to-button-with-text.117775/ 1. keep Round corners 2. Keep the elevation 3. Set background color (if Possible only) I have seen the replies...
  20. F

    Android Question auto_clicking a button

    auto_clicking a button to do something.not with finger exem: button.autoclick(x,y) how to code?
Top