AlvinQiang

Results 7 comments of AlvinQiang

View doubleList = LayoutInflater.from(this).inflate(R.layout.view_double_listview,null); mainlist = (ListView)doubleList.findViewById(R.id.classify_mainlist); morelist = (ListView)doubleList.findViewById(R.id.classify_morelist); mainAdapter = new ClassifyMainAdapter(this, mainDataList); mainAdapter.setSelectItem(0); mainlist.setAdapter(mainAdapter); mainlist.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView parent, View view, int position, long...

只用了一次setDropDownMenu啊,没有使用viewpager,下边的内容还是用的一个TextView contentView = new TextView(this); popupMenuViews = new FrameLayout(getContext()); popupMenuViews.setLayoutParams(new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, (int) (DeviceUtils.getScreenSize(getContext()).y*menuHeighPercent))); popupMenuViews.setVisibility(GONE); containerView.addView(popupMenuViews, 2); for (int i = 0; i < popupViews.size(); i++) { popupViews.get(i).setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)); _popupMenuViews.addView(popupViews.get(i),...

我也是用的RecycerView,我又把代码重新写了一遍,之前的错误没了,由于最近在做工程,具体是哪出了问题也没有去深究

lawyerLl这个是内容区域吧, View contentView = LayoutInflater.from(this).inflate(R.layout.view_recyclerview, null); mDropDownMenu.setDropDownMenu(Arrays.asList(headers), popupViews, contentView); 我是这样写的

没有啊,就是加载一个单独的布局作为内容显示区域

你是每次回到第一个fragment都要重新加载数据吗