Jonathan Pobst wrote:
> 
> On 8/18/2011 3:52 PM, chobo2 wrote:
>> should an axml file be used or xml?
> 
> Neither Android nor Mono care about the extension.
> 
> Using .axml will trigger the schema to give you intellisense, which is 
> why we use .axml.  That is the only difference, so you can use .xml if 
> you want, you just won't get intellisense.
> 
> Jonathan
> _______________________________________________
> Monodroid mailing list
> Monodroid@lists.ximian.com
> 
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
> 
Hmm I added in my drawable section this example code


<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android";
   android:shape="rectangle">
    <gradient
        android:startColor="#FFFF0000"
        android:endColor="#80FF00FF"
        android:angle="45"/>
    <padding android:left="7dp"
        android:top="7dp"
        android:right="7dp"
        android:bottom="7dp" />
</shape>

then in my layout I have

  <TextView
        android:background="@drawable/gradient_box"
        android:layout_height="wrap_content"
        android:layout_width="100dp"
        android:text="Test"
    />

if I use .xml extension for "gradient_box" it will find it and use it. If I
use the .axml file it will not.





--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Monodroid-How-to-include-layouts-tp4686408p4724664.html
Sent from the Mono for Android mailing list archive at Nabble.com.
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to