title: Android Edittext : setOnFocusChangeListener doesn't work
body: <p>i'm using this code for checking my edittext focus or not :</p>
  
  <pre><code> gelar_pp=(EditText)polis.findViewById(R.id.gelar_pp);
      gelar_pp.setOnFocusChangeListener(new OnFocusChangeListener() {
      LinearLayout layout_nama_pp=(LinearLayout)findViewById(R.id.layout_nama_pp);
          public void onFocusChange(View v, boolean hasFocus) {
              if(!hasFocus){
                  layout_nama_pp.setBackgroundResource(R.drawable.border_corner_baris1);
              }else {
                  layout_nama_pp.setBackgroundResource(R.drawable.border_corner_baris1_klik);
              }
          } });
      ibu_pp=(EditText)polis.findViewById(R.id.ibu_pp);
      ibu_pp.setOnFocusChangeListener(new OnFocusChangeListener() {
      LinearLayout layout_nama_pp=(LinearLayout)findViewById(R.id.layout_nama_pp);
          public void onFocusChange(View v, boolean hasFocus) {
              if(!hasFocus){
                  layout_nama_pp.setBackgroundResource(R.drawable.border_corner_baris1);
              }else {
                  layout_nama_pp.setBackgroundResource(R.drawable.border_corner_baris1_klik);
              }
          } });
      edit_bukti_lain_pp=(EditText)polis.findViewById(R.id.edit_bukti_lain_pp);
      edit_bukti_lain_pp.setOnFocusChangeListener(new OnFocusChangeListener() {
      LinearLayout layout_nama_pp=(LinearLayout)findViewById(R.id.layout_nama_pp);
          public void onFocusChange(View v, boolean hasFocus) {
              if(!hasFocus){
                  layout_nama_pp.setBackgroundResource(R.drawable.border_corner_baris1);
              }else {
                  layout_nama_pp.setBackgroundResource(R.drawable.border_corner_baris1_klik);
              }
          } });
  </code></pre>
  
  <p>when i make simple my code, and change into :</p>
  
  <pre><code>    gelar_pp.setOnFocusChangeListener(listener);
  ibu_pp.setOnFocusChangeListener(listener);
  edit_bukti_lain_pp.setOnFocusChangeListener(listener);
          listener= new OnFocusChangeListener() {    
              LinearLayout layout_nama_pp=(LinearLayout)findViewById(R.id.layout_nama_pp);
              public void onFocusChange(View v, boolean hasFocus) {
                  if(!hasFocus){
                      layout_nama_pp.setBackgroundResource(R.drawable.border_corner_baris1);
                  }else {
                      layout_nama_pp.setBackgroundResource(R.drawable.border_corner_baris1_klik);
                  }
              }
          };
  </code></pre>
  
  <p>my code is not working, nothing change. is there any wrong with my code?</p>