summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2011-05-24 14:29:47 -0700
committerAmith Yamasani <yamasani@google.com>2011-05-24 15:49:34 -0700
commitcfd524f07af0820e2e41fd74e7e3c5b7433854f8 (patch)
tree0f171e0081d3698ae81da8cb3b8aa3fcaee2150e
parentd12b95093770f1a71f60f67be9a5e28277b634a1 (diff)
downloadpackages_apps_Settings-cfd524f07af0820e2e41fd74e7e3c5b7433854f8.tar.gz
packages_apps_Settings-cfd524f07af0820e2e41fd74e7e3c5b7433854f8.tar.bz2
packages_apps_Settings-cfd524f07af0820e2e41fd74e7e3c5b7433854f8.zip
Visual adjustments for smaller tablets.
Make the Manage Apps tab indicators horizontally scrollable. Use medium font size for user dictionary. Bug: 4462313 Change-Id: Iba44e758715c0187ea17ed072794b8596dee0e54
-rw-r--r--res/layout/manage_apps_tab_content.xml55
-rw-r--r--res/layout/user_dictionary_item.xml4
-rw-r--r--src/com/android/settings/AccountPreference.java3
-rw-r--r--src/com/android/settings/applications/ManageApplications.java2
4 files changed, 59 insertions, 5 deletions
diff --git a/res/layout/manage_apps_tab_content.xml b/res/layout/manage_apps_tab_content.xml
new file mode 100644
index 000000000..0391a9dfc
--- /dev/null
+++ b/res/layout/manage_apps_tab_content.xml
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+**
+** Copyright 2011, 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.
+*/
+-->
+
+<TabHost
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@android:id/tabhost"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <LinearLayout
+ android:orientation="vertical"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <HorizontalScrollView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_weight="0"
+ android:scrollbars="none">
+
+ <TabWidget
+ android:id="@android:id/tabs"
+ android:orientation="horizontal"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ />
+
+ </HorizontalScrollView>
+
+ <FrameLayout
+ android:id="@android:id/tabcontent"
+ android:layout_width="match_parent"
+ android:layout_height="0dip"
+ android:layout_weight="1"/>
+
+ </LinearLayout>
+</TabHost>
+
diff --git a/res/layout/user_dictionary_item.xml b/res/layout/user_dictionary_item.xml
index 3cdeb08f8..aaf3cbdae 100644
--- a/res/layout/user_dictionary_item.xml
+++ b/res/layout/user_dictionary_item.xml
@@ -24,9 +24,9 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
- android:textAppearance="?android:attr/textAppearanceLarge"
+ android:textAppearance="?android:attr/textAppearanceMedium"
android:gravity="center_vertical"
- android:paddingLeft="6dip"
+ android:paddingLeft="16dip"
android:minHeight="?android:attr/listPreferredItemHeight"/>
<ImageView
diff --git a/src/com/android/settings/AccountPreference.java b/src/com/android/settings/AccountPreference.java
index 437839996..f3d7d5128 100644
--- a/src/com/android/settings/AccountPreference.java
+++ b/src/com/android/settings/AccountPreference.java
@@ -54,6 +54,7 @@ public class AccountPreference extends Preference {
setSummary("");
setPersistent(false);
setSyncStatus(SYNC_DISABLED);
+ setIcon(mProviderIcon);
}
public Account getAccount() {
@@ -68,8 +69,6 @@ public class AccountPreference extends Preference {
protected void onBindView(View view) {
super.onBindView(view);
setSummary(getSyncStatusMessage(mStatus));
- mProviderIconView = (ImageView) view.findViewById(android.R.id.icon);
- mProviderIconView.setImageDrawable(mProviderIcon);
mSyncStatusIcon = (ImageView) view.findViewById(R.id.syncStatusIcon);
mSyncStatusIcon.setImageResource(getSyncStatusIcon(mStatus));
}
diff --git a/src/com/android/settings/applications/ManageApplications.java b/src/com/android/settings/applications/ManageApplications.java
index e0233becc..85db45e64 100644
--- a/src/com/android/settings/applications/ManageApplications.java
+++ b/src/com/android/settings/applications/ManageApplications.java
@@ -585,7 +585,7 @@ public class ManageApplications extends Fragment implements
mCreatedRunning = mResumedRunning = false;
mCurView = VIEW_NOTHING;
- View tabRoot = mInflater.inflate(com.android.internal.R.layout.tab_content, null);
+ View tabRoot = mInflater.inflate(R.layout.manage_apps_tab_content, null);
mTabHost = (TabHost)tabRoot.findViewById(com.android.internal.R.id.tabhost);
mTabHost.setup();
final TabHost tabHost = mTabHost;