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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T21:40:00+00:00 2026-06-16T21:40:00+00:00

I am using a sliding menu in my app.In this menu there is a

  • 0

I am using a sliding menu in my app.In this menu there is a listview.I am using a row layout for the row items in my listview.

My row layout is like:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/color_back_frag"
android:layout_width="match_parent"
android:layout_height="50dp"
android:background="@drawable/list_item_selector"
android:orientation="horizontal" >

<ImageView
    android:id="@+id/row_icon"
    android:layout_width="wrap_content"
    android:layout_height="fill_parent"
    android:padding="10dp"
    android:src="@drawable/ic_launcher" />

<TextView
    android:id="@+id/row_title"
    android:layout_width="0dp"
    android:layout_height="match_parent"
    android:layout_weight="1"
    android:gravity="center_vertical"
    android:padding="10dp"
    android:text="Medium Text"
    android:textAppearance="@android:style/TextAppearance.Medium"
    android:textColor="@color/white" />

</LinearLayout>

and my list_item_selector is like:

<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">

<item android:drawable="@drawable/and_satir_01" android:state_pressed="true"/>
<item android:drawable="@drawable/and_satir_01" android:state_selected="true"/>
<item android:drawable="@drawable/and_satir_02"/>

</selector>

When I click on a list item the background changes for a moment like a flash.But I want it to be like in facebook app.In facebook app when you click on a sliding menu list item the background stays with the changed bacground image during the “slide-in” process.
I am not sure if I had told this clearly.

What I want is, after the list item click, the list item background should stay with the “state_pressed” background until the slide-in process finished.
Is there any way to do it?

  • 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-16T21:40:01+00:00Added an answer on June 16, 2026 at 9:40 pm

    From ListView docs:

    By default, lists do not have any choice behavior. By setting the choiceMode to singleChoice, the list allows up to one item to be in a chosen state.

    So you could try to set android:choiceMode="singleChoice" param for your ListView first of all.

    Hope it help you!

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

Sidebar

Related Questions

There are many implementations of facebook app-like sliding menu, which are mentioned in that
How can i implement facebook like sliding menu without using fragments ? I referred
I am using this tutorial http://www.1stwebdesigner.com/css/create-sliding-navigation-menu-jquery/ this is the index.html file: !DOCTYPE html> Jquery
I have implemented Sliding Drawer in my application using the below XML layout: (I
I am using : https://github.com/iPaulPro/SlidingMenu library to implement Facebook like sliding menu, along with
I am using this sliding top panel using mootools (for orientation, the code is
I'm making a jQuery slider using sliced images to look like one looong sliding
Hy guys! I have to make a sliding div (left-right) using jquery. This is
It seems 50% of all iPhone apps are using Facebook-like sliding menus these days.
I'm trying to implement a sliding menu just like the one found in Google's

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.