annotate Android/examples/testpath/res/layout/main.xml @ 511:caa087976b17 Android_Skia

Fix the issue of segmentation fault when the pattern of a mbe is not setted. For Skia graphic engine, a mbe does not always have a pattern. For example, a color paint does not set a pattern on a mbe for a shape. So, we check if pattern is setted before accessing it.
author Thinker K.F. Li <thinker@branda.to>
date Tue, 01 Dec 2009 22:55:27 +0800
parents e505597c17fb
children
rev   line source
501
e505597c17fb testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
1 <?xml version="1.0" encoding="utf-8"?>
e505597c17fb testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
e505597c17fb testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
3 android:orientation="vertical"
e505597c17fb testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
4 android:layout_width="fill_parent"
e505597c17fb testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
5 android:layout_height="fill_parent"
e505597c17fb testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
6 >
e505597c17fb testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
7 <TextView
e505597c17fb testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
8 android:layout_width="fill_parent"
e505597c17fb testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
9 android:layout_height="wrap_content"
e505597c17fb testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
10 android:text="Hello World, testpath"
e505597c17fb testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
11 />
e505597c17fb testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
12 </LinearLayout>
e505597c17fb testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
13