Commit edfb598e by 霍志良

feat:UI修改

parent fcb72e11
......@@ -119,7 +119,7 @@ public class PublishQuestionAndTrendFragment extends BaseFragment implements Vie
private EditText publish_trend_title_editext, publish_trend_content_editext;
private RecyclerView publish_trend_img_rcv;
private ImageView publish_trend_bottom_img_iv;
private View lineTitle;
private LinearLayout publish_anonymity_rel;
private LinearLayout ll_to_expert;
private ImageView publish_anonymity_iv;
......@@ -394,6 +394,7 @@ public class PublishQuestionAndTrendFragment extends BaseFragment implements Vie
publish_trend_content_num_tv = getRootView().findViewById(R.id.publish_trend_content_num_tv);
publish_trend_bottom_topic_tv = getRootView().findViewById(R.id.publish_trend_bottom_topic_tv);
publish_trend_title_editext = getRootView().findViewById(R.id.publish_trend_title_editext);
lineTitle = getRootView().findViewById(R.id.lineTitle);
publish_trend_content_editext = getRootView().findViewById(R.id.publish_trend_content_editext);
publish_trend_img_rcv = getRootView().findViewById(R.id.publish_trend_img_rcv);
publish_trend_bottom_img_iv = getRootView().findViewById(R.id.publish_trend_bottom_img_iv);
......@@ -435,6 +436,7 @@ public class PublishQuestionAndTrendFragment extends BaseFragment implements Vie
if (TextUtils.equals(type, TYPE_TREND)) {//动态
publish_trend_title_editext.setVisibility(View.GONE);
lineTitle.setVisibility(View.GONE);
ll_to_expert.setVisibility(View.GONE);
publish_trend_content_editext.setFilters(new InputFilter[]{new InputFilter.LengthFilter(500)});
publish_trend_content_num_tv.setText("0/500");
......@@ -442,6 +444,7 @@ public class PublishQuestionAndTrendFragment extends BaseFragment implements Vie
} else {//提问
publish_trend_title_editext.setVisibility(View.VISIBLE);
lineTitle.setVisibility(View.VISIBLE);
ll_to_expert.setVisibility(View.VISIBLE);
publish_trend_content_editext.setFilters(new InputFilter[]{new InputFilter.LengthFilter(1000)});
publish_trend_content_num_tv.setText("0/1000");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment