New folder look / assets
-> Restricting the number of items in folders to prevent scrolling (excess items deleted) Change-Id: I4af2590cd5ea7677c875c031f84d4d5bcca3e6e9
This commit is contained in:
@@ -143,7 +143,8 @@ public class Folder extends LinearLayout implements DragSource, View.OnClickList
|
||||
|
||||
Resources res = getResources();
|
||||
mMaxCountX = (int) grid.numColumns;
|
||||
mMaxCountY = mMaxNumItems = Integer.MAX_VALUE;
|
||||
mMaxCountY = (int) grid.numRows;
|
||||
mMaxNumItems = mMaxCountX * mMaxCountY;
|
||||
|
||||
mInputMethodManager = (InputMethodManager)
|
||||
getContext().getSystemService(Context.INPUT_METHOD_SERVICE);
|
||||
@@ -526,12 +527,14 @@ public class Folder extends LinearLayout implements DragSource, View.OnClickList
|
||||
}
|
||||
|
||||
protected boolean createAndAddShortcut(ShortcutInfo item) {
|
||||
final TextView textView =
|
||||
(TextView) mInflater.inflate(R.layout.application, this, false);
|
||||
final BubbleTextView textView =
|
||||
(BubbleTextView) mInflater.inflate(R.layout.application, this, false);
|
||||
textView.setCompoundDrawablesWithIntrinsicBounds(null,
|
||||
new FastBitmapDrawable(item.getIcon(mIconCache)), null, null);
|
||||
textView.setText(item.title);
|
||||
textView.setTag(item);
|
||||
textView.setTextColor(getResources().getColor(R.color.folder_items_text_color));
|
||||
textView.setShadowsEnabled(false);
|
||||
|
||||
textView.setOnClickListener(this);
|
||||
textView.setOnLongClickListener(this);
|
||||
|
||||
Reference in New Issue
Block a user