QDa

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2014年2月10日

摘要: //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... 阅读全文
posted @ 2014-02-10 18:55 QDa 阅读(969) 评论(0) 推荐(0) 编辑

摘要: 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_... 阅读全文
posted @ 2014-02-10 18:22 QDa 阅读(1681) 评论(0) 推荐(0) 编辑

摘要: 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... 阅读全文
posted @ 2014-02-10 18:19 QDa 阅读(422) 评论(0) 推荐(0) 编辑