Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6253763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T14:03:44+00:00 2026-05-24T14:03:44+00:00

I am working on my first Android application, and I have run into a

  • 0

I am working on my first Android application, and I have run into a brick wall. It would be easier to explain if you saw this picture of the main screen first: http://patmahoneyjr.com/wp-content/uploads/2011/08/App-main-screen.png

When a user clicks the new category button, a dialog box comes up and they have to enter a name and select a percent via a SeekBar. After that, they click enter. I used Intents to get the data from one place to another.

Now, I don’t know how to correctly handle it. What I would like to do is create a table of some kind beneath the buttons and for each time that they click the enter button in the new category dialog, create a new row on the table consisting of the name of the category, the percent chosen, and then the amount of the paycheck that is equal to that percent. I have a crude drawing of how that would sort of look here (WARNING: I USED MICROSOFT PAINT 😉 http://patmahoneyjr.com/wp-content/uploads/2011/08/App-main-screen1.png

After that, a user enters the amount of their paycheck using the new paycheck button, and that number is divided amongst the categories, and displayed.

Now, this being my first app, of course I ran into trouble here. I have absolutely no idea how to do this. Any bits of advice or code is of course greatly appreciated!

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T14:03:44+00:00Added an answer on May 24, 2026 at 2:03 pm

    What I would do in this situation is add a ListView to your main layout xml under the two buttons. Then create another layout xml file with a RelativeLayout containing two TextViews. Make sure the RelativeLayout has layout_width=”fill_parent” and layout_height=”wrap_content”. You can align the two TextViews like in your picture. Use this layout file for the items in your ListView.

    Next you probably want to store your data somewhere, an SQLite database would be best. Use a CursorAdapter to get the data from the database to the list, and use the following CursorAdapter methods when data is added to the database:

    • swapCursor(newCursor) – gives the Adapter the new Cursor you get when you requery the database after adding an item
    • notifyDataSetChanged() – refreshes the ListView.

    Alternativley, you could use a custom Loader, which makes handling Cursors and dynamic data a little easier.

    I recommend you start by looking at these tutorials and articles:

    http://developer.android.com/resources/tutorials/views/hello-listview.html

    http://developer.android.com/guide/topics/data/data-storage.html

    http://developer.android.com/resources/tutorials/notepad/index.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just started working on my first Android application and am going ok.
I am pretty far into my first Android application, and I have the sneaking
I have pretty much finished my first working Symbian application, but in my hastened
i have completed my First android application and i have deployed that application to
I am working on a fairly basic screen layout for my first Android application
I have an Android application (java) that was working fine when compiled with the
I'm working on my first Django application. In short, what it needs to do
I am currently working on my first website. I have no idea where to
I am currently working on my first asp.net mvc application. I am trying to
I'm new to iPhone and Apple development and working on my first application. It

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.