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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T18:59:27+00:00 2026-05-28T18:59:27+00:00

I am porting my settings screen to Honeycomb, but since it should still be

  • 0

I am porting my settings screen to Honeycomb, but since it should still be available on Gingerbread I am using the fragment support library. Phone testing on a Nexus One.

When running this on a Gingerbread tablet everything looks just fine. When running it on the phone the top of the pixels are missing, and the text is gone. If I try to scroll the list (it contains four elements, so it doesn’t move at all) the text appears. However, the moment I click on an item the text disappears again.

My fragment looks like this:

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent" android:layout_height="match_parent">
    <fragment class="dk.nindroid.rss.settings.SourceSelector"
            android:id="@+id/sources"
            android:layout_width="match_parent" android:layout_height="match_parent" />
</FrameLayout>

And the list like this:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content"
    android:orientation="horizontal">
    <ImageView android:id="@+id/icon" 
        android:layout_width="48dip"
        android:layout_height="48dip"
        android:layout_alignParentLeft="true" />
    <TextView android:id="@id/android:title" 
        xmlns:android="http://schemas.android.com/apk/res/android" 
        android:layout_width="wrap_content" 
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:gravity="center_vertical"
        android:textSize="24sp"
        android:textColor="#FFFFFF"
        android:paddingLeft="10sp"
        android:singleLine="true" />
</LinearLayout>

Without, the screen looks like this. With text, the top of the text is also cut off.
error

Edit: I should probably add a question: Am I doing something wrong, or is this an error in the fragments support library?

  • 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-28T18:59:28+00:00Added an answer on May 28, 2026 at 6:59 pm

    The problem was the line in the FragmentActivity (that I did not post):

    getWindow().requestFeature(Window.FEATURE_ACTION_BAR);
    

    Removing this (or rather only showing it on Honeycomb+ devices fixed the problem:

    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
        getWindow().requestFeature(Window.FEATURE_ACTION_BAR);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on porting a Windows Phone application to Windows 8 Metro, using
I'm porting my Windows Phone App to Windows 8 and localizing to support several
I actually can't believe I'm saying this but since porting my programs to OSX
I'm porting a small Qt application to the Android . I am using Qt
I'm porting a C# Library to Java (for nonlinear regression, original code here ).
Situation: I'm porting over, or should I say attempting to port Lakshan Perera's Simple
originally i was using a .net sdk for facebook found here: http://facebooktoolkit.codeplex.com/ but now,
I'm porting an msvc project, which has several libraries and each library has specific
I'm currently porting one of my projects to GCC, and I'm using the MinGW-w64
i have a library developed in C . I am porting it ,for Windows

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.