title: Superpose many image View on an ImageView in a customView
body: <p>I would like to create a view in android that componsed of an <code>ImageView</code> and a <code>TextView</code> upon this <code>ImageView</code>. But the Custom views that we can create in Android contain attributes that can only be of certain types, as specified in this post : <a href="https://stackoverflow.com/questions/3441396/defining-custom-attrs">Defining custom attrs</a> So I can't define a custom view with an <code>ImageView</code> attribute and a <code>TextView</code> attribute. 
  I don't want to define it this way neither :</p>
  
  <pre><code>&lt;FrameLayout android:id="@+id/frame_layout"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"&gt;
  
        &lt;ImageView
           android:id="@+id/card_11"
           android:layout_width="@dimen/card_width"
           android:layout_height="@dimen/card_height"
           android:src="@drawable/carte_vierge_bleue"
           android:scaleType="fitXY"
           android:clickable="true" 
           android:visibility="visible"
           android:onClick="onCardClicked"/&gt;
  
      &lt;TextView android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="1234 5678 1234 5678"
          android:layout_gravity="center"/&gt;
  
  &lt;/FrameLayout&gt;
  </code></pre>
  
  <p>Because I would like to add other images on the first <code>ImageView</code> after that so I would like to have a custom view that I can modify however I want, and add on it as many <code>ImageView</code>s as I want, and this way of doing would make the layout file very long...
  Any idea ?</p>