diff options
Diffstat (limited to 'tests/res/layout')
-rw-r--r-- | tests/res/layout/main.xml | 49 | ||||
-rw-r--r-- | tests/res/layout/remote_view.xml | 45 |
2 files changed, 94 insertions, 0 deletions
diff --git a/tests/res/layout/main.xml b/tests/res/layout/main.xml new file mode 100644 index 00000000..15b422cd --- /dev/null +++ b/tests/res/layout/main.xml @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2015 The CyanogenMod Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:gravity="center_horizontal" + > + <Button android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="TEST PUBLISH TILE" + android:onClick="testPublishTile"/> + <Button android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="TEST PUBLISH SETTINGS TILE" + android:onClick="testPublishTileWithSettings"/> + <Button android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="TEST UPDATE TILE" + android:onClick="testUpdateTile"/> + <Button android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="TEST REMOVE TILE" + android:onClick="testRemoveTile"/> + + <Button android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="TEST PUBLISH MULTIPLE" + android:onClick="testMultipleTilePublish"/> + <Button android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="TEST REMOVE MULTIPLE" + android:onClick="testMultipleTileRemove"/> +</LinearLayout> + diff --git a/tests/res/layout/remote_view.xml b/tests/res/layout/remote_view.xml new file mode 100644 index 00000000..6988cf95 --- /dev/null +++ b/tests/res/layout/remote_view.xml @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2015 The CyanogenMod Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_gravity="center_horizontal"> + + <ImageView + android:src="@drawable/ic_whatshot_white_24dp" + android:layout_width="48dp" + android:layout_height="48dp" /> + + <LinearLayout + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + + <TextView + android:text="THIS IS A REMOTEVIEW" + android:layout_width="wrap_content" + android:layout_height="wrap_content" /> + + <Button + android:id="@+id/whats_hot_click" + android:text="CLICK ME" + android:layout_width="wrap_content" + android:layout_height="wrap_content" /> + + </LinearLayout> +</LinearLayout>
\ No newline at end of file |