cuplv / droidel

Framework model for static analysis of Android
Apache License 2.0
45 stars 14 forks source link

Turn layout XML into code #17

Open sblackshear opened 9 years ago

sblackshear commented 9 years ago

Some UI logic occurs in application code and other UI logic is in the layout XML. It would be nice to understand all of this logic in a uniform way. A nice way forward would be to generate a special droidel_onCreate method for each UI component containing stubs encoding the semantics of the layout XML. This method can be inserted into the lifecycle for the UI component and handled by the call graph construction/analyzer in the same way that these tools understand normal code.