load layout XMLs directly from apk file

This commit is contained in:
Julian Winkler
2023-05-20 12:38:34 +02:00
parent db53d3679f
commit 3709e30f64
5 changed files with 13 additions and 24 deletions

View File

@@ -692,7 +692,7 @@ public class View extends Object {
public View() {} // FIXME
public View(AttributeSet attrs) {
id = attrs.getAttributeIntValue("http://schemas.android.com/apk/res/android", "id", 0);
id = attrs.getAttributeResourceValue("http://schemas.android.com/apk/res/android", "id", 0);
if(id != 0)
view_by_id.put(id, this);