1ac9070f852759906e2ac4d505dcef201e9cc55d0shepshapard/*
2ac9070f852759906e2ac4d505dcef201e9cc55d0shepshapard * Copyright 2018 The Android Open Source Project
3ac9070f852759906e2ac4d505dcef201e9cc55d0shepshapard *
4ac9070f852759906e2ac4d505dcef201e9cc55d0shepshapard * Licensed under the Apache License, Version 2.0 (the "License");
5ac9070f852759906e2ac4d505dcef201e9cc55d0shepshapard * you may not use this file except in compliance with the License.
6ac9070f852759906e2ac4d505dcef201e9cc55d0shepshapard * You may obtain a copy of the License at
7ac9070f852759906e2ac4d505dcef201e9cc55d0shepshapard *
8ac9070f852759906e2ac4d505dcef201e9cc55d0shepshapard *      http://www.apache.org/licenses/LICENSE-2.0
9ac9070f852759906e2ac4d505dcef201e9cc55d0shepshapard *
10ac9070f852759906e2ac4d505dcef201e9cc55d0shepshapard * Unless required by applicable law or agreed to in writing, software
11ac9070f852759906e2ac4d505dcef201e9cc55d0shepshapard * distributed under the License is distributed on an "AS IS" BASIS,
12ac9070f852759906e2ac4d505dcef201e9cc55d0shepshapard * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13ac9070f852759906e2ac4d505dcef201e9cc55d0shepshapard * See the License for the specific language governing permissions and
14ac9070f852759906e2ac4d505dcef201e9cc55d0shepshapard * limitations under the License.
15ac9070f852759906e2ac4d505dcef201e9cc55d0shepshapard */
16ac9070f852759906e2ac4d505dcef201e9cc55d0shepshapard
17ac9070f852759906e2ac4d505dcef201e9cc55d0shepshapardpackage androidx.recyclerview.widget;
18ac9070f852759906e2ac4d505dcef201e9cc55d0shepshapard
19ac9070f852759906e2ac4d505dcef201e9cc55d0shepshapardimport android.app.Activity;
20ac9070f852759906e2ac4d505dcef201e9cc55d0shepshapardimport android.os.Bundle;
21ac9070f852759906e2ac4d505dcef201e9cc55d0shepshapardimport android.view.ViewGroup;
22ac9070f852759906e2ac4d505dcef201e9cc55d0shepshapard
23ac9070f852759906e2ac4d505dcef201e9cc55d0shepshapardpublic class TestContentViewActivity extends Activity {
24ac9070f852759906e2ac4d505dcef201e9cc55d0shepshapard
25ac9070f852759906e2ac4d505dcef201e9cc55d0shepshapard    private TestContentView mContentView;
26ac9070f852759906e2ac4d505dcef201e9cc55d0shepshapard
27ac9070f852759906e2ac4d505dcef201e9cc55d0shepshapard    @Override
28ac9070f852759906e2ac4d505dcef201e9cc55d0shepshapard    protected void onCreate(Bundle savedInstanceState) {
29ac9070f852759906e2ac4d505dcef201e9cc55d0shepshapard        super.onCreate(savedInstanceState);
30ac9070f852759906e2ac4d505dcef201e9cc55d0shepshapard        mContentView = new TestContentView(this);
31ac9070f852759906e2ac4d505dcef201e9cc55d0shepshapard        mContentView.setLayoutParams(new ViewGroup.LayoutParams(
32ac9070f852759906e2ac4d505dcef201e9cc55d0shepshapard                ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
33ac9070f852759906e2ac4d505dcef201e9cc55d0shepshapard        setContentView(mContentView);
34ac9070f852759906e2ac4d505dcef201e9cc55d0shepshapard    }
35ac9070f852759906e2ac4d505dcef201e9cc55d0shepshapard
36ac9070f852759906e2ac4d505dcef201e9cc55d0shepshapard    public TestContentView getContentView() {
37ac9070f852759906e2ac4d505dcef201e9cc55d0shepshapard        return mContentView;
38ac9070f852759906e2ac4d505dcef201e9cc55d0shepshapard    }
39ac9070f852759906e2ac4d505dcef201e9cc55d0shepshapard}
40