Loading src/com/android/documentsui/dirlist/DirectoryFragment.java +3 −6 Original line number Diff line number Diff line Loading @@ -316,12 +316,8 @@ public class DirectoryFragment extends Fragment { mAdapter = new DocumentsAdapter(context); mRecView.setAdapter(mAdapter); mDefaultItemColor = context.getResources().getColor(android.R.color.transparent); // Get the accent color. TypedValue selColor = new TypedValue(); context.getTheme().resolveAttribute(android.R.attr.colorAccent, selColor, true); // Set the opacity to 10%. mSelectedItemColor = (selColor.data & 0x00ffffff) | 0x16000000; mDefaultItemColor = context.getResources().getColor(R.color.item_doc_background); mSelectedItemColor = context.getResources().getColor(R.color.item_doc_background_selected); GestureDetector.SimpleOnGestureListener listener = new GestureDetector.SimpleOnGestureListener() { Loading Loading @@ -943,6 +939,7 @@ public class DirectoryFragment extends Fragment { public void setSelected(boolean selected) { itemView.setActivated(selected); itemView.setBackgroundColor(selected ? mSelectedItemColor : mDefaultItemColor); } @Override Loading Loading
src/com/android/documentsui/dirlist/DirectoryFragment.java +3 −6 Original line number Diff line number Diff line Loading @@ -316,12 +316,8 @@ public class DirectoryFragment extends Fragment { mAdapter = new DocumentsAdapter(context); mRecView.setAdapter(mAdapter); mDefaultItemColor = context.getResources().getColor(android.R.color.transparent); // Get the accent color. TypedValue selColor = new TypedValue(); context.getTheme().resolveAttribute(android.R.attr.colorAccent, selColor, true); // Set the opacity to 10%. mSelectedItemColor = (selColor.data & 0x00ffffff) | 0x16000000; mDefaultItemColor = context.getResources().getColor(R.color.item_doc_background); mSelectedItemColor = context.getResources().getColor(R.color.item_doc_background_selected); GestureDetector.SimpleOnGestureListener listener = new GestureDetector.SimpleOnGestureListener() { Loading Loading @@ -943,6 +939,7 @@ public class DirectoryFragment extends Fragment { public void setSelected(boolean selected) { itemView.setActivated(selected); itemView.setBackgroundColor(selected ? mSelectedItemColor : mDefaultItemColor); } @Override Loading