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 8035589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T02:21:16+00:00 2026-06-05T02:21:16+00:00

I display some items as a list and I was wondering whether there was

  • 0

I display some items as a list and I was wondering whether there was a way to add a little dropdown to the right of the screen for each item in the list giving the options of delete/edit.

Is that possible? Rigth now I list things like this:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:orientation="vertical"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        >


<include android:id="@+id/header"
         layout="@layout/header"
         android:layout_height="wrap_content"
         android:layout_width="fill_parent"/>    


<TextView
    android:id="@+id/no_problems"    
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="Enter the business(es) you want to plan or choose from your existing list."
    />          


    <ListView
    android:id="@android:id/list"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@+id/label"
        android:textSize="20px" >        
    </ListView>

        <Button
    android:id="@+id/add_problem_ok"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:textColor="@color/light_best_blue" 
    android:text="Plan a New Business"
    android:layout_marginTop ="15dp"    
    />  
</LinearLayout>

and in the listView I have this:

<?xml version="1.0" encoding="utf-8"?>

    <TextView xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:padding="10dp"
        android:textSize="16sp" >
    </TextView>       

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-06-05T02:21:18+00:00Added an answer on June 5, 2026 at 2:21 am

    Just add spinner in ur list item layout, then set adapter to tat spinner with in getView() method.

    for ex. ur list_item.xml

    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            >
     <TextView android:id="@+id/nameTV" android:layout_width="wrap_content"
            android:layout_height="fill_parent"
            android:padding="10dp"
            android:textSize="16sp" >
        </TextView>  
    
    <Spinner android:id="@+id/actionSP" android:layout_width="wrap_content"
            android:layout_height="fill_parent" />
    </LinearLayout>
    

    then UR getView()

        @Override
        public View getView(int position, View view, ViewGroup viewGroup) {
            final ViewHolder viewHolder;
    
            if (view == null) {
                viewHolder = new ViewHolder();
    
                view = mInflater.inflate(R.layout.list_item,
                        null);
                viewHolder.nameTV = (TextView) view
                        .findViewById(R.id.nameTV);
    
                viewHolder.actionSP = (Spinner) view
                        .findViewById(R.id.actionSP);
    
                ArrayAdapter<String> reasonAdapter = new ArrayAdapter<String>(
                        mApplication, android.R.layout.simple_spinner_item,
                        mYourActionsArray);
    
                reasonAdapter
                        .setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
                viewHolder.actionSP.setAdapter(reasonAdapter);
    
                viewHolder.actionSP
                        .setOnItemSelectedListener(new OnItemSelectedListener() {
    
                            @Override
                            public void onItemSelected(AdapterView<?> arg0,
                                    View arg1, int position, long arg3) {
                            }
                        });
                    view.setTag(viewHolder);
            } else {
                viewHolder = (ViewHolder) view.getTag();
            }
    
            viewHolder.nameTV.setText("Some Value");
    

    return view;
    }

    ViewHolder class

    class ViewHolder {
        TextView nameTV;
        Spinner actionSP;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a list of items A and each item A have some items
I am using a WebGrid to display a List of Items, some items in
I have some list items with anchor tags, that are set to display block
I want a list of items that can display either an item's 'greek' or
I'm using a QTreeWidget to display some simple items. I've set the list sortable
I am working on a small script where there are some list items. If
I am using a listview to display some items.But sometimes based on condition I
I want to display a list of items inside a UIScrollView , here for
I have some set of list items like- <div class=smenu> <ul> <li ><a href=index.html><img
After reading some items here I have decided to rewrite a little project using

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.