XML中用 xmlns="http://schemas.android.com/apk/res-auto"
获取自定义属性值:
public static String NAMESPACE = "http://schemas.android.com/apk/res-auto";
String test= attrs.getAttributeValue(NAMESPACE,"title");
XML中用 xmlns="http://schemas.android.com/apk/res-auto"
获取自定义属性值:
public static String NAMESPACE = "http://schemas.android.com/apk/res-auto";
String test= attrs.getAttributeValue(NAMESPACE,"title");
转载于:https://www.cnblogs.com/exayong/p/6421817.html
更多推荐
所有评论(0)