Push scrollbars to screen edges.
Push scrollbar to screen edges on custom ListView and ScrollViews to match Preferences framework behavior. Bug: 7633165 Change-Id: Ideecd0e243c7de7bf977caef2b1585e707a00ca4
This commit is contained in:
@@ -424,9 +424,12 @@ public class InstalledAppDetails extends Fragment
|
||||
}
|
||||
|
||||
@Override
|
||||
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
|
||||
View view = mRootView = inflater.inflate(R.layout.installed_app_details, null);
|
||||
|
||||
public View onCreateView(
|
||||
LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
|
||||
final View view = inflater.inflate(R.layout.installed_app_details, container, false);
|
||||
Utils.prepareCustomPreferencesList(container, view, view, false);
|
||||
|
||||
mRootView = view;
|
||||
mComputingStr = getActivity().getText(R.string.computing_size);
|
||||
|
||||
// Set default values on sizes
|
||||
@@ -536,7 +539,9 @@ public class InstalledAppDetails extends Fragment
|
||||
|
||||
// Utility method to set applicaiton label and icon.
|
||||
private void setAppLabelAndIcon(PackageInfo pkgInfo) {
|
||||
View appSnippet = mRootView.findViewById(R.id.app_snippet);
|
||||
final View appSnippet = mRootView.findViewById(R.id.app_snippet);
|
||||
appSnippet.setPadding(0, appSnippet.getPaddingTop(), 0, appSnippet.getPaddingBottom());
|
||||
|
||||
ImageView icon = (ImageView) appSnippet.findViewById(R.id.app_icon);
|
||||
mState.ensureIcon(mAppEntry);
|
||||
icon.setImageDrawable(mAppEntry.icon);
|
||||
|
Reference in New Issue
Block a user