1/*
2 * Copyright (C) 2012 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 com.android.systemui.statusbar.phone;
18
19import android.content.Context;
20import android.util.AttributeSet;
21import android.view.LayoutInflater;
22import android.widget.FrameLayout;
23
24/**
25 *
26 */
27class QuickSettingsTileView extends FrameLayout {
28
29    private int mColSpan;
30    private int mRowSpan;
31    private int mCellWidth;
32
33    public QuickSettingsTileView(Context context, AttributeSet attrs) {
34        super(context, attrs);
35
36        mColSpan = 1;
37        mRowSpan = 1;
38    }
39
40    void setColumnSpan(int span) {
41        mColSpan = span;
42    }
43
44    int getColumnSpan() {
45        return mColSpan;
46    }
47
48    void setContent(int layoutId, LayoutInflater inflater) {
49        inflater.inflate(layoutId, this);
50    }
51}