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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:43:30+00:00 2026-05-24T02:43:30+00:00

I am working on a remote controlling app for a home automation system. The

  • 0

I am working on a remote controlling app for a home automation system. The mobile and the home automation device communicate via WebSockets.

To display the functions of the automation device, I am currently using ListViews and Adapters with a varying cell layout. One adapter is displaying all of the device’s functions.

The biggest problem I encountered: Adapters keep calling getView() very often, which triggers my functions to register themselves with my state handle and action dispatcher over and over again.

Please note:

  • There are about 20 different types of functions, all of them requiring a different cell layout. There are sliders, buttons, state text, …
  • The functions have asynchronously updating states.

I need to find a way to display those functions in a ListView or a ListView-like layout.

Can you please help me?

  • 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-24T02:43:30+00:00Added an answer on May 24, 2026 at 2:43 am

    Make sure to implement BaseAdapter.getViewTypeCount() which should return the count for the number of different view types your listView is expected to have for its enteries.

    And also implement ListAdapter.getItemViewType(int position) to return an int that identifies a specific view and which view type it will be.

    Following the above two recommendations will ensure that your ListView will be efficient and it will guarantee that your getView(…) method is called with the appropriate view type, if there is one already infalted.

    That said, if you have a few fixed number of view in your list and they are all different, then consider using LinearLayout in a ScrollView.

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

Sidebar

Related Questions

Has anybody any successful remarks about having a team working via Remote Desktop? In
Working on a prebuilt system that grabs remote images and saves them to a
I'm working on a system that mirrors remote datasets using initials and deltas. When
I'm working on a project where we're doing a lot of remote object transfer
The site that I am working on is at a remote server. I want
I'm working on a Java library and would like to remove some functions from
I am thinking about working with remote data and receive or send data actually
I am working on a remote automated test framework for Android based on JUnit
I am trying to get remote debugging working with Java on Solaris OS. Following
Our workflow currently has developers working on locally hosted copies of our web application

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.