title: When should the dimens.xml file be used in Android?
body: <p>For instance, in a specific layout I have the following XML:</p>
  
  <pre><code>&lt;GridView
      android:id="@+id/gridView1"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:padding="3dp"
      android:columnWidth="48dp"
      android:numColumns="auto_fit"
      android:verticalSpacing="10dp"
      android:horizontalSpacing="10dp"
      android:stretchMode="spacingWidth" /&gt;
  </code></pre>
  
  <p>This grid view is specific to this layout and I don't think I'll be using any other grid views with similar properties. That to say that the dimension values in the code are specific to that grid view.</p>
  
  <p>Should I still move them to a dimens.xml file or it's fine to just leave them like that? If so, should I place values in the dimens.xml file only when that value is used across multiple layouts?</p>