Merge "Apps tabs align to title on 2-pane settings." into jb-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
48c72676b3
@@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!-- Copyright (C) 2011 The Android Open Source Project
|
<!-- Copyright (C) 2012 The Android Open Source Project
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
@@ -17,13 +17,16 @@
|
|||||||
<HorizontalScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
<HorizontalScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:scrollbars="none">
|
android:scrollbars="none"
|
||||||
|
android:fillViewport="true">
|
||||||
|
|
||||||
<TabWidget
|
<TabWidget
|
||||||
android:id="@android:id/tabs"
|
android:id="@android:id/tabs"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
|
android:paddingLeft="@*android:dimen/preference_fragment_padding_side"
|
||||||
|
android:paddingRight="@*android:dimen/preference_fragment_padding_side"
|
||||||
style="?android:attr/tabWidgetStyle" />
|
style="?android:attr/tabWidgetStyle" />
|
||||||
|
|
||||||
</HorizontalScrollView>
|
</HorizontalScrollView>
|
@@ -1,29 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!-- Copyright (C) 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.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<HorizontalScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:scrollbars="none">
|
|
||||||
|
|
||||||
<TabWidget
|
|
||||||
android:id="@android:id/tabs"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:orientation="horizontal"
|
|
||||||
style="?android:attr/tabWidgetStyle" />
|
|
||||||
|
|
||||||
</HorizontalScrollView>
|
|
@@ -49,7 +49,9 @@
|
|||||||
android:paddingTop="30dp"
|
android:paddingTop="30dp"
|
||||||
android:paddingLeft="4dp"
|
android:paddingLeft="4dp"
|
||||||
android:paddingRight="4dp"
|
android:paddingRight="4dp"
|
||||||
android:paddingBottom="1dp">
|
android:paddingBottom="1dp"
|
||||||
|
android:layout_marginLeft="@*android:dimen/preference_fragment_padding_side"
|
||||||
|
android:layout_marginRight="@*android:dimen/preference_fragment_padding_side">
|
||||||
<TextView android:id="@+id/usedStorageText"
|
<TextView android:id="@+id/usedStorageText"
|
||||||
android:layout_width="0px"
|
android:layout_width="0px"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
@@ -91,6 +93,8 @@
|
|||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
|
android:layout_marginLeft="@*android:dimen/preference_fragment_padding_side"
|
||||||
|
android:layout_marginRight="@*android:dimen/preference_fragment_padding_side"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
android:gravity="center">
|
android:gravity="center">
|
||||||
|
|
||||||
|
@@ -27,7 +27,8 @@
|
|||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent">
|
android:layout_height="match_parent"
|
||||||
|
>
|
||||||
|
|
||||||
<include layout="@layout/tab_widget"/>
|
<include layout="@layout/tab_widget"/>
|
||||||
|
|
||||||
|
@@ -26,7 +26,10 @@
|
|||||||
<ListView android:id="@android:id/list"
|
<ListView android:id="@android:id/list"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
|
android:paddingLeft="@*android:dimen/preference_fragment_padding_side"
|
||||||
|
android:paddingRight="@*android:dimen/preference_fragment_padding_side"
|
||||||
android:drawSelectorOnTop="false"
|
android:drawSelectorOnTop="false"
|
||||||
|
android:scrollbarStyle="outsideOverlay"
|
||||||
android:fastScrollEnabled="true" />
|
android:fastScrollEnabled="true" />
|
||||||
<TextView android:id="@android:id/empty"
|
<TextView android:id="@android:id/empty"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
@@ -46,7 +49,9 @@
|
|||||||
android:paddingTop="30dp"
|
android:paddingTop="30dp"
|
||||||
android:paddingLeft="4dp"
|
android:paddingLeft="4dp"
|
||||||
android:paddingRight="4dp"
|
android:paddingRight="4dp"
|
||||||
android:paddingBottom="1dp">
|
android:paddingBottom="1dp"
|
||||||
|
android:layout_marginLeft="@*android:dimen/preference_fragment_padding_side"
|
||||||
|
android:layout_marginRight="@*android:dimen/preference_fragment_padding_side">
|
||||||
<TextView android:id="@+id/foregroundText"
|
<TextView android:id="@+id/foregroundText"
|
||||||
android:layout_width="0px"
|
android:layout_width="0px"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
@@ -407,7 +407,7 @@ public class Utils {
|
|||||||
final int paddingBottom = res.getDimensionPixelSize(
|
final int paddingBottom = res.getDimensionPixelSize(
|
||||||
com.android.internal.R.dimen.preference_fragment_padding_bottom);
|
com.android.internal.R.dimen.preference_fragment_padding_bottom);
|
||||||
|
|
||||||
final int effectivePaddingSide = ignoreSidePadding ? 0 : paddingBottom;
|
final int effectivePaddingSide = ignoreSidePadding ? 0 : paddingSide;
|
||||||
list.setPadding(effectivePaddingSide, 0, effectivePaddingSide, paddingBottom);
|
list.setPadding(effectivePaddingSide, 0, effectivePaddingSide, paddingBottom);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -737,6 +737,9 @@ public class ManageApplications extends Fragment implements
|
|||||||
} else if (menuId == SHOW_BACKGROUND_PROCESSES) {
|
} else if (menuId == SHOW_BACKGROUND_PROCESSES) {
|
||||||
mShowBackground = true;
|
mShowBackground = true;
|
||||||
mRunningProcessesView.mAdapter.setShowBackground(true);
|
mRunningProcessesView.mAdapter.setShowBackground(true);
|
||||||
|
} else {
|
||||||
|
// Handle the home button
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
updateOptionsMenu();
|
updateOptionsMenu();
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user