title: Android get view of Preference in PreferenceActivity
body: <p>I would like to get View instance that is used to display specific Preference in my 
  PreferenceActivity, so i can modify its properties, for example:</p>
  
  <pre><code>public class SettingsActivity extends PreferenceActivity {
  
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
  
          addPreferencesFromResource(R.xml.preference);
          Preference pref = findPreference("key");
          pref.getView().setVisibility(View.GONE);
              //not necessarily setVisibility, i hope you get my point
      }
  }
  </code></pre>
  
  <p>I only found this method:
  <a href="http://developer.android.com/reference/android/preference/Preference.html#getView%28android.view.View,%20android.view.ViewGroup%29">getView (View convertView, ViewGroup parent)</a>. But it seems confusing to me, that if i want to get View of my preference, i need to provide view and viewGroup as parameters??</p>
  
  <p>Could someone explain how to use this method, or point me to another method to get View from my Preference instance.</p>
  
  <p>PS: if possible, i would rather NOT extend Preference class, but i dont mind it if necessary</p>