2

Can someone please explain why my progressbar isnt a straight line (pic below)?

<?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="fill_parent"
android:orientation="vertical" >

<ProgressBar android:id="@+id/progressbar"
    style="?android:attr/progressBarStyleHorizontal"
    android:layout_width="fill_parent"
    android:layout_height="25px"
    android:progress="50"
/>

<ListView
    android:id="@+id/list"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:drawSelectorOnTop="false"
/>
</LinearLayout>

enter image description here

Johan
  • 35,120
  • 54
  • 178
  • 293

1 Answers1

0

You set:

android:layout_height="25px"

which means 25 pixels, which is usually less than 3 millimiters in most devices.

Ex:

Screen with 800 pixel and 8 cm -> 8 / 800 = 0.01 cm = 0.1 mm 25 pixel = 2.5 millimiters

Regards.

Luis
  • 11,978
  • 3
  • 27
  • 35
  • So what are you suggesting? Another unit? Would it mattter if its less than 3mm? – Johan Nov 30 '12 at 09:05
  • Johan, I'm sorry. I misundertood it. I read `is` instead of `isnt`. I can't really see any curve, with exception of a pixel that looks odd in the end. Is that? Are you using `rotation()` or `Matrix`? – Luis Nov 30 '12 at 09:59
  • Np. I dont think I'm using neither nor. How would I know that? – Johan Nov 30 '12 at 11:17