Files
android_development/samples/ApiDemos/res/layout/accessibility_node_provider.xml
Svetoslav Ganov 7d9558522d Adding a code sample for using AccessibilityNodeProvider to report virtual Views.
Note: This is a sample and does *not* affect the system image, rather only the SDK.

bug:5508317

Change-Id: I62bbef4b2a4c2789ddfa128e94ae37246d244ac0
2011-10-24 17:14:54 -07:00

35 lines
1.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2011 The Android Open Source 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:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="50dip"
android:text="@string/accessibility_node_provider_instructions">
</TextView>
<view
class="com.example.android.apis.accessibility.AccessibilityNodeProviderActivity$VirtualSubtreeRootView"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
</view>
</LinearLayout>