125668cd6ed661c59295cb65348a126fb245757d4Michael Kolb/* 225668cd6ed661c59295cb65348a126fb245757d4Michael Kolb * Copyright (C) 2010 The Android Open Source Project 325668cd6ed661c59295cb65348a126fb245757d4Michael Kolb * 425668cd6ed661c59295cb65348a126fb245757d4Michael Kolb * Licensed under the Apache License, Version 2.0 (the "License"); 525668cd6ed661c59295cb65348a126fb245757d4Michael Kolb * you may not use this file except in compliance with the License. 625668cd6ed661c59295cb65348a126fb245757d4Michael Kolb * You may obtain a copy of the License at 725668cd6ed661c59295cb65348a126fb245757d4Michael Kolb * 825668cd6ed661c59295cb65348a126fb245757d4Michael Kolb * http://www.apache.org/licenses/LICENSE-2.0 925668cd6ed661c59295cb65348a126fb245757d4Michael Kolb * 1025668cd6ed661c59295cb65348a126fb245757d4Michael Kolb * Unless required by applicable law or agreed to in writing, software 1125668cd6ed661c59295cb65348a126fb245757d4Michael Kolb * distributed under the License is distributed on an "AS IS" BASIS, 1225668cd6ed661c59295cb65348a126fb245757d4Michael Kolb * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1325668cd6ed661c59295cb65348a126fb245757d4Michael Kolb * See the License for the specific language governing permissions and 1425668cd6ed661c59295cb65348a126fb245757d4Michael Kolb * limitations under the License. 1525668cd6ed661c59295cb65348a126fb245757d4Michael Kolb */ 1625668cd6ed661c59295cb65348a126fb245757d4Michael Kolb 1725668cd6ed661c59295cb65348a126fb245757d4Michael Kolbpackage com.android.camera.ui; 1825668cd6ed661c59295cb65348a126fb245757d4Michael Kolb 1925668cd6ed661c59295cb65348a126fb245757d4Michael Kolbimport android.content.Context; 2025668cd6ed661c59295cb65348a126fb245757d4Michael Kolbimport android.util.AttributeSet; 2125668cd6ed661c59295cb65348a126fb245757d4Michael Kolbimport android.view.ViewGroup; 2225668cd6ed661c59295cb65348a126fb245757d4Michael Kolbimport android.widget.TextView; 2325668cd6ed661c59295cb65348a126fb245757d4Michael Kolb 24a3dc2c0dd75f4659146fcd257ce32acc3800ae5fJohn Reckimport com.android.gallery3d.R; 2525668cd6ed661c59295cb65348a126fb245757d4Michael Kolb 2625668cd6ed661c59295cb65348a126fb245757d4Michael Kolb// A popup window that shows one or more camera settings. 2725668cd6ed661c59295cb65348a126fb245757d4Michael Kolbabstract public class AbstractSettingPopup extends RotateLayout { 2825668cd6ed661c59295cb65348a126fb245757d4Michael Kolb protected ViewGroup mSettingList; 2925668cd6ed661c59295cb65348a126fb245757d4Michael Kolb protected TextView mTitle; 3025668cd6ed661c59295cb65348a126fb245757d4Michael Kolb 3125668cd6ed661c59295cb65348a126fb245757d4Michael Kolb public AbstractSettingPopup(Context context, AttributeSet attrs) { 3225668cd6ed661c59295cb65348a126fb245757d4Michael Kolb super(context, attrs); 3325668cd6ed661c59295cb65348a126fb245757d4Michael Kolb } 3425668cd6ed661c59295cb65348a126fb245757d4Michael Kolb 3525668cd6ed661c59295cb65348a126fb245757d4Michael Kolb @Override 3625668cd6ed661c59295cb65348a126fb245757d4Michael Kolb protected void onFinishInflate() { 3725668cd6ed661c59295cb65348a126fb245757d4Michael Kolb super.onFinishInflate(); 3825668cd6ed661c59295cb65348a126fb245757d4Michael Kolb 3925668cd6ed661c59295cb65348a126fb245757d4Michael Kolb mTitle = (TextView) findViewById(R.id.title); 4025668cd6ed661c59295cb65348a126fb245757d4Michael Kolb mSettingList = (ViewGroup) findViewById(R.id.settingList); 4125668cd6ed661c59295cb65348a126fb245757d4Michael Kolb } 4225668cd6ed661c59295cb65348a126fb245757d4Michael Kolb 4325668cd6ed661c59295cb65348a126fb245757d4Michael Kolb abstract public void reloadPreference(); 4425668cd6ed661c59295cb65348a126fb245757d4Michael Kolb} 45