Sunday 15 January 2012

android - How to draw strip-line as background -


Is there a way to attract 'strip-line' in the form of a background in Android?


Attachment with picture for better illustration: (YouTube AP)

 Enter the image details

example: res / drawable / to h3>

wood_pattern.xml :

  & lt; Layer-list xmlns: android = "http: //schemas.android.com/apk/res/android"> & Lt; Items & gt; & Lt; Bitmap android: src = "@drawable / bg_wood" android: tileMode = "repeat" Android: dither = "true" android: antialias = "true" /> & Lt; / Item & gt; & Lt; / Layer-list & gt;   

Set it as background:

  android: background = "@ drawable / wood_pattern"    

No comments:

Post a Comment