Bonjour,

J'utilise dans mon projet des fichiers .xml de ce style :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
 
<?xml version="1.0" encoding="utf-8"?>
<com.android.widgets.DateSlider.SliderContainer
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res/com.android.widgets.DateSlider"
    android:id="@+id/dateSliderContainer"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">
    <com.android.widgets.DateSlider.ScrollLayout
        style="@style/Scroller"
        app:labelerClass="com.android.widgets.DateSlider.labeler.YearLabeler"
        app:labelerFormat="%tY"
        app:childWidth="150dp"/>
    <com.android.widgets.DateSlider.ScrollLayout
        style="@style/Scroller"
        app:labelerClass="com.android.widgets.DateSlider.labeler.MonthLabeler"
        app:labelerFormat="%tB"
        app:childWidth="200dp"/>
    <include layout="@layout/dialogbuttons"/>
</com.android.widgets.DateSlider.SliderContainer>
Il s'avère que le xlmns:app me pose problème quand j'importe ce projet en tant que librairie, car forcément le projet principal (Un projet test) va chercher le chemin indiqué par xlmns:app mais ne le trouve pas (puisqu'il fait référence au chemin interne dans la librairie). Avez-vous des idées pour contourner ce problème, ou bien le régler ?

Je vous remercie !

[edit] " The root element of the AndroidManifest.xml file. It must contain an <application> element and specify xlmns:android and package attributes. "

Cela veut dire que je peux (en théorie) faire partager ce package d'attributs à un autre projet sans erreur ?