View factory for Android API.