1/*
2 * Copyright (C) 2008 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package android.widget.focus;
18
19import com.android.frameworks.coretests.R;
20
21import android.app.Activity;
22import android.os.Bundle;
23import android.view.ViewGroup;
24import android.widget.Button;
25
26public class DescendantFocusability extends Activity {
27
28    public ViewGroup beforeDescendants;
29    public Button beforeDescendantsChild;
30
31    public ViewGroup afterDescendants;
32    public Button afterDescendantsChild;
33
34    public ViewGroup blocksDescendants;
35    public Button blocksDescendantsChild;
36
37    @Override
38    protected void onCreate(Bundle savedInstanceState) {
39        super.onCreate(savedInstanceState);
40
41        setContentView(R.layout.descendant_focusability);
42
43        beforeDescendants = (ViewGroup) findViewById(R.id.beforeDescendants);
44        beforeDescendantsChild = (Button) beforeDescendants.getChildAt(0);
45
46        afterDescendants = (ViewGroup) findViewById(R.id.afterDescendants);
47        afterDescendantsChild = (Button) afterDescendants.getChildAt(0);
48
49        blocksDescendants = (ViewGroup) findViewById(R.id.blocksDescendants);
50        blocksDescendantsChild = (Button) blocksDescendants.getChildAt(0);
51    }
52
53}
54