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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T22:06:15+00:00 2026-06-03T22:06:15+00:00

I have a tabhost with 4 tabs. Each tab has several editboxes. On real

  • 0

I have a tabhost with 4 tabs. Each tab has several editboxes.
On real 2.1 device and in emulator I can select any editbox and insert values into them.
But in 2.3 emulator and real device – only editboxes on 4th tab are selectable…
tab 1 – relative layout
tab 2-4 – table layouts. Editboxes have similar properties… I can’t see difference between editbox on tab 3 and 4, but behaviour is different.

Notes:
2.1 is 800×480 device (landscape)
2.3 is 1024×768 device (landscape)
I have styles for the editboxes – same for both cases…

Does anybody know what can cause this situation?..

Additionally:
Just noticed that in 2.1 emulator – if i click on controls within tabs 1-3 everything is ok. But if I g to tab4 and then back to any tab – the editboxes become not selectable on any of tab 1-3 (first one is “selected” but without any responce) – same as in 2.3 (but there those fields are not editable from the start…). And also tab 4 is working, but not the rest… totally as in 2.3

Update:
I have a separate layout file for each tab, those are included in the main layout via “include layout” ({include layout=”@layout/tab_1_main” /}, {include layout=”@layout/tab_2_main” }, etc). Only in the last “included” layout the controls are editable in 2.3 – in others not. If the “include” lines are shuffled (i.e. {include layout=”@layout/tab_2_main” /} becomes the last line) then tab 2 is the only tab where controls are editable…

  • 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-03T22:06:16+00:00Added an answer on June 3, 2026 at 10:06 pm

    Looks like it’s solved.

    The “included” layouts had the id (marked as bold) set on the “tablelayout” level

    <merge xmlns:android="http://schemas.android.com/apk/res/android">
        <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
                **android:id="@+id/layoutTab2"**
                    android:scrollbars="none">
            <TableLayout 
                android:layout_width="fill_parent"
    

    it appears that Android 2.3 couldn’t “activate” such layouts when they were shown to the user. When I moved the ID to the top level (scrollview) in each my layout for tab – the problem was solved.

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

Sidebar

Related Questions

I have a tabhost with two tabs. Each tab has his own activity. My
I have a TabActivity that has a TabHost with two tabs. Each tab has
I have a TabActivity with several tabs. Each tab corresponds to a specific view,
I have an application with various tabs (on a tabhost), each tab is an
I have an application with various tabs (on a tabhost). Each tab is an
I have a tabhost with some tabs, and each tab have implemented the method
I need to have a TabHost consisting of two tabs where each tab represented
I have an app that has 2 tabs. Each tab loads an xml file
I have an application with TabHost with few tabs and in each tab I
Currently I have a TabHost implemented with 3 tabs each containing a separate activity.

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.