Hacker News new | past | comments | ask | show | jobs | submit login

In Eclipse you can use View.isInEditMode to hide code that doesn't work in the preview. Bit of extra work but probably worth it, having your custom views work in the layout editor can be a timesaver. I'd imagine that works in Android Studio too.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: