Skip to main content
5 events
when toggle format what by license comment
Aug 1, 2016 at 7:24 comment added Ali Bdeir You should replace padding with margin, otherwise neither of these will work.
May 27, 2015 at 10:34 comment added Alberto M Great answer! Just a note: one probably needs to add android:scaleType="fitXY" to make the ImageView solution work (maybe is this only needed with new Android versions?)
May 10, 2015 at 13:52 comment added TheIcemanCometh Great solution for providing both. The image Version did not display the 'bar', so I went the the View version.
Jun 4, 2013 at 15:38 comment added spaaarky21 +1 for providing the complete View example, not just the attributes, and for the ImageView example using Android's own divider drawable. The ImageView seems preferable since it uses the style provided by the system/theme.
Nov 10, 2010 at 15:51 history answered Cristian CC BY-SA 2.5