How To Change Border Thickness Around Images In Hellogallery
I'm not really sure if it's the thickness of the border or the margin around the image that needs to be changed. I have never worked with styles before, and just created a styles.
Solution 1:
You're almost there. A border is called a stroke, you can specify it like this:
<layer-listxmlns:android="http://schemas.android.com/apk/res/android"><itemandroid:top="1dp"android:left="1dp"android:right="1dp"android:bottom="1dp"><shapeandroid:shape="rectangle"><solidandroid:color="@color/red" /><strokeandroid:width="1dp" /></shape></item>
Solution 2:
I think a simple solution for you is here:
http://groups.google.com/group/android-developers/browse_thread/thread/157740b639959c47?pli=1
hope it helps
Solution 3:
The border around the image actually is background padding:
i.setPadding(1, 1, 1, 1);
Post a Comment for "How To Change Border Thickness Around Images In Hellogallery"