diff --git a/live/src/main/java/com/yunbao/live/views/LiveNewReadySwViewHolder.java b/live/src/main/java/com/yunbao/live/views/LiveNewReadySwViewHolder.java index 985a39f67..6b9a99bc5 100644 --- a/live/src/main/java/com/yunbao/live/views/LiveNewReadySwViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LiveNewReadySwViewHolder.java @@ -11,8 +11,10 @@ import android.os.Build; import android.os.Bundle; import android.os.Handler; import android.os.Looper; +import android.text.Editable; import android.text.Html; import android.text.TextUtils; +import android.text.TextWatcher; import android.util.Log; import android.view.Gravity; import android.view.LayoutInflater; @@ -110,7 +112,7 @@ public class LiveNewReadySwViewHolder extends AbsViewHolder implements View.OnCl private LiveClassBean classBean; private FaceManager manager; private TextView faceTextView;//提示人脸未检测到的TextView - private ImageView selectorProtocol; + private ImageView selectorProtocol,titleIconImg; private int selectClarity = 1; private LiveOpenCustomPopup liveOpenCustomPopup; private boolean selector = true; @@ -166,6 +168,28 @@ public class LiveNewReadySwViewHolder extends AbsViewHolder implements View.OnCl }); mCoverText = (TextView) findViewById(R.id.cover_text); mEditTitle = (EditText) findViewById(R.id.edit_title); + mEditTitle.addTextChangedListener(new TextWatcher(){ + + @Override + public void beforeTextChanged(CharSequence s, int start, int count, int after) { + + } + + @Override + public void onTextChanged(CharSequence s, int start, int before, int count) { + if (s!=null && s.length()>0){ + titleIconImg.setVisibility(View.GONE); + }else { + titleIconImg.setVisibility(View.VISIBLE); + } + } + + @Override + public void afterTextChanged(Editable s) { + + } + }); + mOpenLocation = true; mLiveClass = (TextView) findViewById(R.id.live_class); mLiveWishListTextView = (TextView) findViewById(R.id.text_wishlist);