摘要:
//adapter内部类 private class SearchAdapter extends CursorAdapter { @Override public View newView(Context context, Cursor cursor, ViewGroup parent) { return newAdapterItemView(context, cursor, parent); } @Override public void bindView(View view, Context con... 阅读全文
摘要:
public class VerticalSearchGridView extends LinearLayout implements View.OnClickListener { private int mItemWidth; private int mItemHeight; public int mColumes; public int mRows; private final static int ITEM_MIN_HEIGH = DisplayManager.dipToPixel(75); private final static int ITEM_... 阅读全文
摘要:
1.设置dialog弹出anthor public static SearchDialog getSearchDialog(Context context,OnDismissListener listener, View anchor){ SearchDialog dialog = new SearchDialog(context, R.style.popdialog); // 创建Dialog并设置样式主题 Window win = dialog.getWindow(); WindowManager.LayoutParams params = ne... 阅读全文