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

  • SEARCH
  • Home
  • 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 6059767
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:44:56+00:00 2026-05-23T08:44:56+00:00

I am making an Android app and am nearly finished. When I started the

  • 0

I am making an Android app and am nearly finished.

When I started the app, I made my main pages as Activity type using buttons for the user to perform actions.

Now that I’m nearly done, I thought it’d be much nicer to change the buttons to an image and text, something like:
enter image description here

Is there a way to put a listview in an Activity or do I need to redo all of those pages and recreate them extended from Listview instead of Activity?

  • 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-23T08:44:57+00:00Added an answer on May 23, 2026 at 8:44 am

    You certainly can. This works for me.

    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android_orientation="horizontal" android:layout_width="fill_parent"
    android:layout_height="fill_parent" android:paddingLeft="4dip"
    android:paddingRight="5dp">
    <ListView android:id="@+id/your_list" 
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"/>
    </LinearLayout >
    

    In your Java code, put in something like this:

    ListView listView = (ListView) findViewById(R.id.your_list);//listView should be global
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have started making graphics for my Android app using Adobe Photoshop. But I
I am making an Android app, whose main.xml file is like this: <?xml version=1.0
I'm making an Android app that tracks a user and displays their location in
Alright I am making an Android app, and using the CAPTURE_PIC_REQUEST to take a
I'm making an Android app where the user can download files from a FTP-server.
I'm making an android app and since I've just started I want to try
I'm making an Android app using Processing, and have decided to port my code
In an Android app I'm making, I would like to detect when a user
I am making an android app in which the user needs to add information.
So I'm making an android app. I am using Eclipse. When I click on

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.