Hi Giuseppe
It is just wired code-part for non nested template
I'm not sure (never tried)... but it can be something like this:
/******* CODE
AttributeSet attrX = new AttributeSet() {
// Don't forget add Binding attributes and xmlns:binding="
http://www.gueei.com/android-binding/"
public int getAttributeCount() {
return 0;
}
public String getAttributeName(int index) {
return null;
}
public String getAttributeValue(int index) {
return null;
}
public String getAttributeValue(String namespace, String name) {
return null;
}
public String getPositionDescription() {
return null;
}
public int getAttributeNameResource(int index) {
return 0;
}
public int getAttributeListValue(String namespace, String attribute, String[] options, int defaultValue) {
return 0;
}
public boolean getAttributeBooleanValue(String namespace, String attribute, boolean defaultValue) {
return false;
}
public int getAttributeResourceValue(String namespace, String attribute, int defaultValue) {
return 0;
}
public int getAttributeIntValue(String namespace, String attribute, int defaultValue) {
return 0;
}
public int getAttributeUnsignedIntValue(String namespace, String attribute, int defaultValue) {
return 0;
}
public float getAttributeFloatValue(String namespace, String attribute, float defaultValue) {
return 0;
}
public int getAttributeListValue(int index, String[] options, int defaultValue) {
return 0;
}
public boolean getAttributeBooleanValue(int index, boolean defaultValue) {
return false;
}
public int getAttributeResourceValue(int index, int defaultValue) {
return 0;
}
public int getAttributeIntValue(int index, int defaultValue) {
return 0;
}
public int getAttributeUnsignedIntValue(int index, int defaultValue) {
return 0;
}
public float getAttributeFloatValue(int index, float defaultValue) {
return 0;
}
public String getIdAttribute() {
return null;
}
public String getClassAttribute() {
return null;
}
public int getIdAttributeResourceValue(int defaultValue) {
return 0;
}
public int getStyleAttribute() {
return 0;
}
};
View x= new View(context, attrX);
/** create corresponding model */
Binder.setAndBindContentView(x,someLayoutIdValueFromYour_attrX, model);
********/
Regards Andriy
--
З повагою,
Андрій Кулиняк
kuly...@gmail.com