Android Question Edittext and Spinner with Image and Boarder

Nickle

Member
Licensed User
Longtime User
I am trying to replicate below Input screen and Spinner with colored boarders. Has anyone implemented similar solution that can be shared.

upload_2017-12-15_10-39-20.png
 

Peter Simpson

Expert
Licensed User
Longtime User
There might be a library that does exactly what you want.

You can just use the designer to do the following below, but you can also get the exact same result without the designer if you use ColorDrawable to create the rounded corners and borders.

I didn't even look at replicating yours, I just quickly put this together.
B4X:
Sub Globals
    Private Spinner1 As Spinner
End Sub

Sub Activity_Create(FirstTime As Boolean)
    'Do not forget to load the layout file created with the visual designer. For example:
    Activity.LoadLayout("Layout1")

    For i = 1 To 10
        Spinner1.AddAll(Array As String(1, 2, 3, 4, 5, 6, 7, 8, 9, 10))
    Next
End Sub

With 10 minutes of messing about, getting the result that you are looking for should not be too difficult to do what you want.
Untitled-3.png


Enjoy...
 
Last edited:
Upvote 0
Top