Hello,

Instead of guessing what you are actually seeing, I tried to bind your library by myself. After creating a binding library and an app project (that is based on your AccordionWidgetDemoActivity), it turned out that your "library" is not really a library and I'm not sure if this can even work as a valid Java android library project, because I'm seeing some resource resolution failure.

(interlude: there was another blocking problem which is a bug in MfA that caused resource Id resolution failure; MfA should resolve library project zip and add jars *before* generating Resource.designer.cs so that aapt could successfully understand <com.sentaca.android.accordion.widget.AccordionView> element. To workaround this, I had to add the same jar to the MfA app project. But that is another story...)

To verify my doubt, I modified your accordionview code (i.e. your Java code) to "split" it into an Android Library project and an Android Application project that references the library project.

After I moved AccordionWidgetDemoActivity and main.xml to the app project and tried to build, Eclipse reported these errors:

[2012-10-05 19:23:32 - com.sentaca.accodiontest] /svn/android-accordion-view/res/layout/accordion_header.xml:19: error: No resource identifier found for attribute 'icon_resource' in package 'com.sentaca.android.accordion' [2012-10-05 19:23:32 - com.sentaca.accodiontest] /svn/android-accordion-view/res/layout/accordion_header.xml:19: error: No resource identifier found for attribute 'icon_resource_off' in package 'com.sentaca.android.accordion'

This is exactly what I am seeing (after my workaround explained above). So maybe you should first create a "working" library project which really works as a "library" and then use it with MfA.

Atsushi Eno


javitxin wrote:
Hi Atsushi Eno,

Aa you advised me in yesterday post
(http://mono-for-android.1047100.n5.nabble.com/Custom-AccordionView-tp5712080.html)
.. I am trying to zip (bin and resources) from my eclipse/adt built project
and include in my binding project as LibraryProjectZip..

Then I build the binding project.. and put dll in my m4a app (bin folder).

At this point.. I think I should see all my accordionView.dll resources in
my m4a resources.designer.cs..

Am I forgetting something? Maybe I have to include the zip file in my mf4
app too?

another doubt..Once Everything will be ok.. how I use my new accordingView..
tell me if I am wrong.. I would have to create a layout including my new
accordingView.. Is this layout correct.. I mean.. references to
accordingView object and so on...

is this..


<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
     xmlns:android="http://schemas.android.com/apk/res/android";
xmlns:accordion="http://schemas.android.com/apk/res-auto/com.egestionamobile.accordionview";
     android:layout_width="fill_parent"
     android:layout_height="fill_parent"
     android:background="@android:color/white"
     android:orientation="vertical" >
<ScrollView
       android:layout_width="fill_parent"
       android:layout_height="fill_parent" >

     <com.egestionamobile.accordionview.widget.AccordionView
         android:id="@+id/accordion_view"
         android:layout_width="fill_parent"
         android:layout_height="fill_parent"
         accordion:header_layout_fold_button_id="@+id/fold_button"
         accordion:header_layout_id="@layout/accordion_header"
         accordion:header_layout_label_id="@+id/fold_text"
         accordion:section_bottom="@layout/accordion_footer"
         accordion:section_container="@layout/accordion_section"
         accordion:section_container_parent="@id/section_content"
android:background="#fff5f5f5"
         android:orientation="vertical" >
           <LinearLayout
               android:id="@+id/accordion1"
               android:layout_width="fill_parent"
               android:layout_height="wrap_content"
               android:orientation="vertical" >
</LinearLayout>

           <LinearLayout
               android:id="@+id/accordion2"
               android:layout_width="fill_parent"
               android:layout_height="wrap_content"
               android:orientation="vertical" >
</LinearLayout>

       </com.egestionamobile.accordionview.widget.AccordionView>
   </ScrollView>
</LinearLayout>


Thanks john and you!!



--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Resources-in-Mono-for-Android-Library-Project-tp5626331p5712100.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




_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

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

Reply via email to