1. Download our Official Android App: Forums for Android!

Apps Android application problem

Discussion in 'Android Development' started by Ben Richard, Mar 22, 2016.

  1. Ben Richard

    Ben Richard Lurker
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    7
    Joined:
    Mar 22, 2016

    Mar 22, 2016
    7
    0
    15
    Male
    Hey,

    How do I create a editTextView, which allows the user to enter a number, which outputs listview so for example:

    1).editTextView: please enter how many answers you are looking for, i.e lets say he is looking for 20

    2).User enters the number of answers he is looking for[20]

    3). Output: shows 20 user inputs as editText

     

    Advertisement

  2. Unforgiven

    Unforgiven ...eschew obfuscation...
    Moderator
    Rank:
     #1
    Points:
    4,488
    Posts:
    38,256
    Joined:
    Jun 23, 2010

    Jun 23, 2010
    38,256
    47,448
    4,488
    Male
    Douglas, MA
    Application Development thread moved to the Development forum for better exposure.:)
     
  3. LV426

    LV426 I say we take off and nuke this place from orbit
    Recognized Developer
    Rank:
     #12
    Points:
    1,988
    Posts:
    9,176
    Joined:
    Oct 16, 2015

    Oct 16, 2015
    9,176
    13,681
    1,988
    Male
    Software developer
    South West of England
    Your question is not clear. Do you want to display a Listview containing 20 items?
     
    Ben Richard likes this.
  4. Ben Richard

    Ben Richard Lurker
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    7
    Joined:
    Mar 22, 2016

    Mar 22, 2016
    7
    0
    15
    Male
    No I need a user to enter how much he wants so it could be any
     
  5. LV426

    LV426 I say we take off and nuke this place from orbit
    Recognized Developer
    Rank:
     #12
    Points:
    1,988
    Posts:
    9,176
    Joined:
    Oct 16, 2015

    Oct 16, 2015
    9,176
    13,681
    1,988
    Male
    Software developer
    South West of England
    Have you read a Listview tutorial?
     
  6. Ben Richard

    Ben Richard Lurker
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    7
    Joined:
    Mar 22, 2016

    Mar 22, 2016
    7
    0
    15
    Male
    Could I use listview for user input?
     
  7. LV426

    LV426 I say we take off and nuke this place from orbit
    Recognized Developer
    Rank:
     #12
    Points:
    1,988
    Posts:
    9,176
    Joined:
    Oct 16, 2015

    Oct 16, 2015
    9,176
    13,681
    1,988
    Male
    Software developer
    South West of England
    Yes you can specify a custom layout for the rows, this may include an EditText box for example.
     
  8. milvus

    milvus Lurker
    Rank:
    None
    Points:
    25
    Posts:
    6
    Joined:
    Mar 23, 2016

    Mar 23, 2016
    6
    0
    25
    You can create array of buttons, create it dynamically and programmatically add to layout (view.addView(button)), or create it dynamically, add to arraylist and write own ArrayAdapter for listview.
     

Share This Page

Loading...