0

my stopwatch app keeps overlapping within itself, I added a background on the XML in both the background for the linearLayout and the Chronomemeter but it keeps on persisting

    <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:padding="4dip"
android:gravity="center_horizontal"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#ff000000">

<Chronometer
    android:id="@+id/chronometer"
    android:layout_width="wrap_content"
    android:layout_height="0dip"
    android:layout_weight="0"
    android:background="#ff000000"
    android:format="@string/chronometer_initial_format"
    android:freezesText="false"
    android:paddingBottom="30dip"
    android:paddingTop="30dip" />

<Button android:id="@+id/start"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Start">
    <requestFocus />
</Button>

<Button android:id="@+id/stop"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Stop">
</Button>

<Button android:id="@+id/reset"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Reset">
</Button>

</LinearLayout>

any ideas?

user2809321
  • 196
  • 1
  • 3
  • 17

1 Answers1

0

turns out I have to put the <string name="chronometer_initial_format">Initial format:</string> to the styles xml and not the string xml

user2809321
  • 196
  • 1
  • 3
  • 17