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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T14:56:31+00:00 2026-05-17T14:56:31+00:00

I have a problem with designing an UI Android activity. There are two blocks

  • 0

I have a problem with designing an UI Android activity. There are two blocks of misplaced graphics on the left and right of the activity – they are two lines just bellow the titlebar with 1px height and about 5-10px width. They cause buttons to break at their left and right parts. I cannot figure out what the problem is. I am using Eclipse with Android SDK 0.9.9. The lines appear not only with the emulator but in a HTC Wildfire (Android 2.1). These lines are also visible in a newly created Android project (HelloWorld).

Sorry, but I was not allowed to post images, being too new here 🙂

Link to the Broken widgets – note the button’s left and right sides

XML layout:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_height="fill_parent" android:layout_width="fill_parent" android:fitsSystemWindows="true">
<TextView android:layout_height="wrap_content" android:text="This text view should act as header  " android:id="@+id/expenseHeaderTxt" android:layout_width="fill_parent" android:paddingLeft="5px" android:paddingRight="5px"/>
<ScrollView android:layout_height="wrap_content" android:layout_width="fill_parent" android:layout_marginBottom="50dip" android:id="@+id/expenseScrollView">
  <RelativeLayout android:id="@+id/RelativeLayout01" android:layout_width="wrap_content" android:layout_height="wrap_content" android:scrollbars="none" android:paddingLeft="5px" android:paddingRight="5px">
    <EditText android:layout_height="wrap_content" android:id="@+id/expenseAmountEdit" android:hint="@string/ExpenseAmountHint" android:layout_width="wrap_content" android:layout_alignParentTop="true" android:layout_alignParentRight="true" android:selectAllOnFocus="true" android:digits="0123456789" android:inputType="number|numberDecimal" android:maxLines="1"></EditText>
    <EditText android:layout_height="wrap_content" android:id="@+id/expenseTypeEdit" android:layout_width="fill_parent" android:layout_toLeftOf="@+id/expenseAmountEdit" android:hint="@string/ExpenseSpendTypeHint" android:inputType="text|textCapSentences" android:maxLines="1"></EditText>
    <ToggleButton android:layout_below="@id/expenseTypeEdit" android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/expenseTypeSignToggle" android:textOn="@string/ExpenseTypeSignPlusToggle" android:textOff="@string/ExpenseTypeSignMinusToggle"></ToggleButton>
<EditText android:layout_below="@id/expenseTypeSignToggle" android:layout_height="wrap_content" android:id="@+id/expenseNoteEdit" android:layout_width="fill_parent" android:hint="@string/ExpenseNoteHint"></EditText>
</RelativeLayout>
</ScrollView>
<RelativeLayout android:layout_marginTop="-50dip" android:gravity="bottom" android:layout_height="wrap_content" android:layout_width="fill_parent" android:paddingLeft="5px" android:paddingRight="5px">
  <Button android:id="@+id/expenseAddBtn" android:layout_width="fill_parent" android:text="A button that should always be at the bottom" android:layout_height="wrap_content"/>
</RelativeLayout>
</LinearLayout>
  • 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-17T14:56:31+00:00Added an answer on May 17, 2026 at 2:56 pm

    Funny, I also had the ListView dividers disappearing when scrolling and during the hunt I found the code here:

    Disappearing dividers in Spinner drop-down list

    It not only fixed the issue with the disappearing separators but also fixed the broken layout.

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

Sidebar

Related Questions

I have faced a problem while designing chess game. There are 2 Player: p1,
I've just finished designing a small android app and have now come to a
I've recently encountered a problem designing a web page. I needed to have rounded
I'm re-designing a Web site and I have a problem with the existing data
I have problem with http://abfoodpolicy.com/ . In IE 8 and 9 the right sidebar
I have problem designing pseudo-code for these problems. It is not an assignment problem.
I have a problem about designing my application. I have a webservice with methods.
I'm in the process of developing an android game. I have an activity that
I'm having a problem designing some code to handle dynamic, two-dimensional data in my
I have a problem designing my database. I have to make a table witch

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.