Where do I put this XML ?

Put your problem here if it does not fit any of the other categories.

Where do I put this XML ?

Postby xirgonium » Wed Apr 30, 2008 1:10 pm

Dear all, I found this XML on internet.

It could be usefull for me.

Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <shape xmlns:android="http://schemas.android.com/apk/res/android"
  4.  
  5. type="rectangle" android:background="@drawable/
  6. tuktuk_background_focus">
  7.  
  8.         <solid android:background="@drawable/tuktuk_background_focus"/>
  9.  
  10.         <padding android:left="10sp" android:top="4sp" android:right="10sp"
  11.  
  12. android:bottom="4sp" />
  13.  
  14.         <stroke android:width="1dp" android:color="#FFFFFFFF"/>
  15.  
  16.         <corners android:radius="5dp" />
  17.  
  18. </shape>
Parsed in 0.002 seconds, using GeSHi 1.0.8.4


I can't find any documentation on this ressource. Do you know :
1 - in which file do I have to write it ?
2 - how to set this shape to a LinearLayout (I suppose setDrawable or something like that) ?

Thanks for your help
xirgonium
Junior Developer
Junior Developer
 
Posts: 10
Joined: Thu Apr 10, 2008 6:17 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot] and 44 guests