title: EditText focus is not working in android studio, i want to hide a textview when focus change in edittext, how to do this?
body: <p><strong>EditText as ChangeContact</strong></p>
  <p><strong>EditText focus is not working in android studio, i want to hide a textview when focus change in edittext, how to do this?</strong></p>
  <pre><code>       ChangeContact.setOnFocusChangeListener(new View.OnFocusChangeListener() {
                  @Override
                  public void onFocusChange(View v, boolean hasFocus) {
                      if (!hasFocus) {
                          Toast.makeText(mContext, &quot;focus loosed&quot;, Toast.LENGTH_LONG).show();
                        
                      } else {
                          Toast.makeText(mContext, &quot;focused&quot;, Toast.LENGTH_LONG).show();
                          bookLinear.setVisibility(View.GONE);
                      }
                  }
              });
  
  </code></pre>
  <p>My edit text in XMl file</p>
  <pre><code>  &lt;EditText
                      android:id=&quot;@+id/etChangeAddress&quot;
                      android:layout_width=&quot;0dp&quot;
                      android:layout_height=&quot;wrap_content&quot;
                      android:layout_marginStart=&quot;6dp&quot;
                      android:layout_marginBottom=&quot;8dp&quot;
                      android:background=&quot;@drawable/shape_transparent&quot;
                      android:ems=&quot;10&quot;
                      android:focusable=&quot;true&quot;
                      android:focusableInTouchMode=&quot;true&quot;
                      android:gravity=&quot;center&quot;
                      android:hint=&quot;Address&quot;
                      android:inputType=&quot;textPersonName&quot;
                      android:padding=&quot;5dp&quot;
                      app:layout_constraintBottom_toTopOf=&quot;@+id/etChangeNumber&quot;
                      app:layout_constraintEnd_toEndOf=&quot;parent&quot;
                      app:layout_constraintStart_toStartOf=&quot;parent&quot; /&gt;
  </code></pre>
  <p><strong>But i cant see the Toast</strong></p>
  <p>Please help ....</p>