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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:11:13+00:00 2026-05-29T06:11:13+00:00

I am working on android applications. In my page I kept listheader,listview and listfooter.

  • 0

I am working on android applications. In my page I kept listheader,listview and listfooter. I had disabled the focus of listview but when i am trying to disable the header and footer it is not appying ?

MyCode:

For listview I had disabled the focus by giving

lvAdapter adapter = new lvAdapter(this,list){
public boolean areAllItemsEnabled() {
    return false; }

public boolean isEnabled(int position) {
return false;      }    };

listheader.xml
I have changed in my xml file by giving focusable=false in textview

 <TextView
            android:id="@+id/text1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerInParent="true"
            android:textColor="#000000"
            android:focusable="false"
            android:clickable="false"
            android:enabled="false"
            android:textSize="12dip" >
    </TextView>

listfooter.xml
I have changed in my xml file by giving focusable=false in textview

<TextView
        android:id="@+id/text2"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true"
        android:textColor="#000000"
        android:focusable="false"
        android:clickable="false"
        android:enabled="false"
        android:textSize="12dip" >
</TextView>

But even then the focus of header and footer had not disabled. Pleae help me regarding this
Thanks in advance…

  • 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-29T06:11:13+00:00Added an answer on May 29, 2026 at 6:11 am

    While adding Header you can use

    public void addHeaderView (View v, Object data, boolean isSelectable)

    as

    listview.addHeaderView(view, null, false);
    

    Same way for adding Footer also

    public void addFooterView (View v, Object data, boolean isSelectable)

    as

    listview.addFooterView(view, null, false);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a client-server Android application and trying to figure out how to
I'm trying to connecting SQL Azure from my android application. The code is working
I'm still working on a short Service example (page 304) of Pro Android 2
My team is working on an Android project which consists of several Android applications
I am working on an android application that will show an html page that
I'm working on building out a settings page for my Android app. For this
I had developed Android Application which has Login Authentication Page. When the user logs
I am working on android chat application. I am facing a problem in send
I am working in an android application and I want to implement a Gallery.
I am working on an android application which can be used to capture the

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.