title: Programatically setting size of icon (@+android:id/icon) from Android Preference
body: <p>I subclassed an Android Preference to load my own layout (very slightly modified), but my layout still has the built-in icon provided by the Preference class: </p>
  
  <pre><code>&lt;ImageView
      android:id="@+android:id/icon"
      android:layout_width="20dp"
      android:layout_height="20dp/&gt;
  </code></pre>
  
  <p>I can't retrieve a reference to the ImageView programatically like the Android Preference class does because com.android.internal.R cannot be resolved:</p>
  
  <pre><code>ImageView imageView = (ImageView) view.findViewById(com.android.internal.R.id.icon);
  </code></pre>
  
  <p>Is it possible to programmatically change the size. Ideally, I wouldn't create various layouts for each size I want. I think the solution here is to pass in an AttributeSet to my constructor and have it set the size of the icon, but I can't figure out how to do this. </p>