我应该如何在CSDN问答提问?

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/askdevteam/article/details/82591346

这里可以提什么类型的问题?提问应该注意哪些问题?
CSDN问答(ask.csdn.net)的服务对象主要是专业、有活力、热爱编程的人。

第一步:搜索

提问前请先全面搜索您要提的问题是否已经存在.
• 在搜索引擎里已经进行过搜索(如:Google、)
• 在本站內也没有搜索到满意答案.

第二步:提问

我们认为好的问题里都包含一些源代码!如果您的问题包括以下内容:
• 一个具体的编程问题
• 一个软件算法
• 被程序员常用的软件、工具
• 关于编程领域中可解、实用问题

描述问题时:

• 尽可能提供问题所需的主要配置文件及程序源代码
• 明确错误提示信息,建议直接上错误码,这样辨识度更高
• 如有图片请上传图片,但不要将代码截图上传,这样不利用他人调试

标签
标签(Tag)是问题内容的一种组织方式,是相关性很强的关键字,它帮助用户轻松的描述和分类内容,以便于检索和分享,所以请认真的对待问题的标签,它会影响问题的曝光度和获取答案的速度。

展开阅读全文

您已被CSDN问答禁言

04-22

问了个问题就这样了:rn您已被CSDN问答禁言rn怎么办?rn如下图所示:rn![图片说明](http://img.ask.csdn.net/upload/201704/22/1492831048_78556.png)rnrn我的代码:rn这是二级界面给一级界面传递的数据:rn /**rn * date: 2017/4/21 14:39rn * autour: HelenChenrn * description: 点击 确定rn */rn private void sureNext(MapSearchMindBean mapSearchMindBean) rn /**给一级发送事件*/rn String message_tip = "comeon";rn EventBus.getDefault().post(new MessageEvent(message_tip));rn /**将实体类传递给一级界面*/rn EventBus.getDefault().post(mapSearchMindBean);rn List> mType = mapSearchMindBean.getListByType("1");rn /**将实体类传递给一级悬浮框*/rn EventBus.getDefault().postSticky(mType);rn LogUtils.i("发送 " + mapSearchMindBean + "\n" + message_tip+"\n"+mType);rn view.close();rn rnrn```rn rn```rn这是一级界面接收到信息:rn @Overridern public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) rn try rn instance = getActivity();rn if (view == null) rn view = inflater.inflate(R.layout.fragment_map_all, container, false);rn if (!EventBus.getDefault().isRegistered(this)) rn EventBus.getDefault().register(this);rn rn binder = ButterKnife.bind(this, view);rn //在这里做一些初始化处理rn mapPresenterimpl = new MapPresenterImpl();rn mapPresenterimpl.attach(this);rn isPrepared = true;rn lazyLoad();rn else rn ViewGroup viewGroup = (ViewGroup) view.getParent();rn if (viewGroup != null)rn viewGroup.removeView(view);rn rn catch (Exception e) rn e.printStackTrace();rn rn return view;rn rnrn @Overridern protected void lazyLoad() rn if (!isPrepared || !isVisible) rn return;rn rn mapPresenterimpl.start();rn initView();rn initData();rn rn /**rn * date: 2017/4/18 16:47rn * autour: HelenChenrn * description: 订阅者-消息显示rn */rn @Subscribe(threadMode = ThreadMode.MAIN)rn public void onMessageEvent(MessageEvent event) rn over_message = event.getMessage();rn rn /**rn * date: 2017/4/18 16:47rn * autour: HelenChenrn * description: 订阅者-实体传送rn */rn @Subscribe(threadMode = ThreadMode.MAIN)rn public void onEventMainThread(MapSearchMindBean mapSearchMindBean) rn MapSearchMindBean mapSearchBean = mapSearchMindBean;rn scroll_down_layout.setVisibility(View.VISIBLE);rn mapPresenterimpl.showFloat(mapSearchBean);rn rn rn @Overridern public void initView() rn rn @Overridern public void initData() rnrn rn rnrn```rn rn```rn这是一级界面浮框AFragment接收到信息:PS此时mType为null,debug也没走接收信息的方法???rn@Overridern public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) rn try rn instance = getActivity();rn if (view == null) rn view = inflater.inflate(R.layout.map_float_company, container, false);rn if (!EventBus.getDefault().isRegistered(this)) rn EventBus.getDefault().register(this);rn rn binder = ButterKnife.bind(this, view);rn isPrepared = true;rn lazyLoad();rn else rn ViewGroup viewGroup = (ViewGroup) view.getParent();rn if (viewGroup != null)rn viewGroup.removeView(view);rn rn catch (Exception e) rn e.printStackTrace();rn rn return view;rn rn @Overridern protected void lazyLoad() rn if (!isPrepared || !isVisible) rn return;rn rn initView();rn initData();rn rn /**rn * date: 2017/4/18 16:47rn * autour: HelenChenrn * description: 订阅者-实体传送rn */rn @Subscribe(threadMode = ThreadMode.MAIN)rn public void onEventMainThreadOn(List> mType) rn this.mType=mType;rn rn @Overridern public void initView() rnrn rn @Overridern public void initData() rn /**RecycleView适配器*/rn List mList=new ArrayList();rn for (int i = 0; i < 100; i++) rn mList.add("Item" + i);rn rn mapFloatCompanyAdapter = new MapFloatCompanyAdapter(UIUtils.getContext(), mType, R.layout.item_search_mindall);rn recycleview_float_company.getRefreshableView().setAdapter(mapFloatCompanyAdapter);rn //设置布局管理器rn LinearLayoutManager linearLayoutManager = new LinearLayoutManager(UIUtils.getContext());rn linearLayoutManager.setOrientation(LinearLayoutManager.VERTICAL);rn recycleview_float_company.getRefreshableView().setLayoutManager(linearLayoutManager);rn MytemDecoration item = new MytemDecoration(UIUtils.getContext(), MytemDecoration.VERTICAL_LIST);//分割线rn item.setMarginLeftDP(10); //分割线左边距rn item.setMarginRightDP(10); //分割线右边距rn item.setColor(R.color.search_mind_line);rn item.setSize(10);rn recycleview_float_company.getRefreshableView().addItemDecoration(item); //添加分割线rn recycleview_float_company.setRefreshing(false);rn recycleview_float_company.setPullToRefreshOverScrollEnabled(false);rn recycleview_float_company.setPullToRefreshEnabled(false);rn //点击Item事件rn mapFloatCompanyAdapter.setOnItemClickListener(new WanAdapter.OnItemClickListener() rn @Overridern public void onItemClickListener(int posotion) rn Intent intent=new Intent(UIUtils.getContext(), DesActivity.class);rn intent.putExtra("key","monitormore");rn startActivity(intent);rn rn );rnrn rnrnrn```rn rn```rn这是一级界面的XML:rnrnrn rn rn rn rn rn rn rn rn rn rn rnrn rnrn rnrn rnrn rn rnrn rn rn rn rn rnrnrn```rn rn```rnrnrnrnrn 论坛

没有更多推荐了,返回首页