Use a resizable dialog for wifi configuration.

Bug: 3175152

Use a custom theme that allows the dialog to resize.

Change-Id: I004b91c58d0d1810df50f9bdee9430698f51f8ab
This commit is contained in:
Amith Yamasani
2011-01-07 15:31:35 -08:00
parent 586fa0264c
commit 25b69ebccc
2 changed files with 23 additions and 1 deletions

22
res/values/themes.xml Normal file
View File

@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2010 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.
-->
<resources>
<style name="Theme.WifiDialog" parent="@android:style/Theme.Holo.Dialog.Alert">
<item name="android:windowSoftInputMode">adjustResize</item>
</style>
</resources>

View File

@@ -38,7 +38,7 @@ class WifiDialog extends AlertDialog implements WifiConfigUiBase {
public WifiDialog(Context context, DialogInterface.OnClickListener listener,
AccessPoint accessPoint, boolean edit) {
super(context);
super(context, R.style.Theme_WifiDialog);
mEdit = edit;
mListener = listener;
mAccessPoint = accessPoint;