Hi,
I have rather interesting problem I have never seen (even think) it
could be possible.
Layout is consisted of three elements, two buttons and 1 textview.
If it's like this:
[b1]
[b2]
[t]
it works, and if it's like this:
[t]
[b1]
[b2]
it makes app crash.
How could this be possible that position of elements could crash app?
Here is the working layout file:
-----------------8<-----------------8<-----------------
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
>
<Button
android:id="@+id/bStart"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="START"
/>
<Button
android:id="@+id/bStop"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="STOP"
/>
<TextView
android:id="@+id/tvTime"
android:layout_width="fill_parent"
android:layout_height="100dp"
android:text="0:00"
android:textSize="100dp"
/>
</LinearLayout>
-----------------8<-----------------8<-----------------
and here is the one that is not working:
-----------------8<-----------------8<-----------------
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
>
<TextView
android:id="@+id/tvTime"
android:layout_width="fill_parent"
android:layout_height="100dp"
android:text="0:00"
android:textSize="100dp"
/>
<Button
android:id="@+id/bStart"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="START"
/>
<Button
android:id="@+id/bStop"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="STOP"
/>
</LinearLayout>
-----------------8<-----------------8<-----------------
Tnx for help in advance.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en