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

  • Home
  • SEARCH
  • 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 1090963
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T23:27:03+00:00 2026-05-16T23:27:03+00:00

I am writing my first simple Android App: It loads temperature samples from a

  • 0

I am writing my first simple Android App: It loads temperature samples from a Java based measurement system (CSV via HTTP), shows the available channels in a Spinner and when a channel is selected, it shows the corresponding value and a timestamp in two TextViews. The App works fine, except a little cosmetic problem: The items in the drop-down list are separated by a horizontal line (divider) and depending on the scroll position, some lines disappear and appear again, when I scroll some more pixels up or down. The phenomenon happens on the emulator screen as well as on the handheld display (HTC Wildfire). Seems to be a screen resultion problem. Does anyone have a hint how to avoid this? Please see my code below…

Thanks,
gemue

public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    loadData();
    setContentView(R.layout.main);
    Spinner spinner = (Spinner) findViewById(R.id.Spinner01);
    ArrayAdapter adapter = new ArrayAdapter(this,
            android.R.layout.simple_spinner_dropdown_item, channels);
    spinner.setAdapter(adapter);
    spinner.setOnItemSelectedListener(new SelectListener());
}

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
          android:orientation="vertical"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent">
    <Spinner android:id="@+id/Spinner01"
          android:layout_height="wrap_content"
          android:layout_width="fill_parent"
          android:layout_margin="15px"/>
    <TextView android:text="@+id/TextView01" android:id="@+id/TextView01"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_centerHorizontal="true"
          android:layout_below="@+id/Spinner01"
          android:textSize="40sp" android:textStyle="bold"
          android:layout_margin="15sp"/>
    <TextView android:text="@+id/TextView02" android:id="@+id/TextView02"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_centerHorizontal="true"
          android:layout_below="@+id/TextView01"/>
</RelativeLayout>
  • 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-16T23:27:04+00:00Added an answer on May 16, 2026 at 11:27 pm

    Just check whether this will solve the issue.

    <manifest xmlns:android="http://schemas.android.com/apk/res/android">
        <supports-screens
        android:largeScreens="false"
        android:normalScreens="true"
        android:smallScreens="true"
        android:anyDensity="true" />
    </manifest>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm in the process of writing my first android app, a simple media player
To begin with, this is the first Android app I'm writing, and I have
I'm writing simple APN toggle app. I wanted to ask how to force android
I am writing a simple android app which have a edittext and a button.
I'm writing my first client/server android app, and need an advice regarding server architecture.
I've come from iPhone background and am writing an android app. I've got a
I'm writing my first 2D app for Android using OpenGL. I'm writing it on
I am writing my first android app. So am still in the learning phase.
I was writing a simple AIDL based android remote service & a client to
I'm writing app for android device, which is simple download manager. I want to

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.