Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,6 @@ private void injectSkin(View view, List<SkinAttr> skinAttrList)

private View createViewFromTag(Context context, String name, AttributeSet attrs)
{
if (name.equals("view"))
{
name = attrs.getAttributeValue(null, "class");
}

try
{
mConstructorArgs[0] = context;
Expand All @@ -154,7 +149,12 @@ private View createViewFromTag(Context context, String name, AttributeSet attrs)
if (-1 == name.indexOf('.'))
{
// try the android.widget prefix first...
return createView(context, name, "android.widget.");
String prefix = "android.widget.";
if (TextUtils.equals(name, "View"))
{
prefix = "android.view.";
}
return createView(context, name, prefix);
} else
{
return createView(context, name, null);
Expand Down