diff options
Diffstat (limited to 'android/testData/dom')
5 files changed, 57 insertions, 0 deletions
diff --git a/android/testData/dom/layout/OnClickActivity7.java b/android/testData/dom/layout/OnClickActivity7.java new file mode 100644 index 00000000000..ba411a7c49c --- /dev/null +++ b/android/testData/dom/layout/OnClickActivity7.java @@ -0,0 +1,12 @@ +package p1.p2; + +import android.view.View; + +public abstract class Activity1 extends android.app.Activity { + + public void clickHandler1(View view) { + } + + public void clickHandler2() { + } +} diff --git a/android/testData/dom/layout/OnClickActivity8.java b/android/testData/dom/layout/OnClickActivity8.java new file mode 100644 index 00000000000..8171693512a --- /dev/null +++ b/android/testData/dom/layout/OnClickActivity8.java @@ -0,0 +1,8 @@ +package p1.p2; + +public class Activity2 extends Activity1 { + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.onClickHighlighting5); + } +} diff --git a/android/testData/dom/layout/OnClickActivity9.java b/android/testData/dom/layout/OnClickActivity9.java new file mode 100644 index 00000000000..29c01a3d41a --- /dev/null +++ b/android/testData/dom/layout/OnClickActivity9.java @@ -0,0 +1,7 @@ +package p1.p2; + +public class Activity2 extends Activity1 { + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + } +} diff --git a/android/testData/dom/layout/onClickHighlighting5.xml b/android/testData/dom/layout/onClickHighlighting5.xml new file mode 100644 index 00000000000..dafa52589fd --- /dev/null +++ b/android/testData/dom/layout/onClickHighlighting5.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + tools:context=".Activity2"> +<TextView + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:onClick="clickHandler1"/> + <TextView + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:onClick="<warning descr="Method 'clickHandler2' is missing in 'Activity2' or has incorrect signature">clickHandler2</warning>"/> +</LinearLayout>
\ No newline at end of file diff --git a/android/testData/dom/layout/onClickHighlighting6.xml b/android/testData/dom/layout/onClickHighlighting6.xml new file mode 100644 index 00000000000..dafa52589fd --- /dev/null +++ b/android/testData/dom/layout/onClickHighlighting6.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + tools:context=".Activity2"> +<TextView + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:onClick="clickHandler1"/> + <TextView + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:onClick="<warning descr="Method 'clickHandler2' is missing in 'Activity2' or has incorrect signature">clickHandler2</warning>"/> +</LinearLayout>
\ No newline at end of file |