Slide 20
Slide 20 text
Add controls for behavior
src/production/java
class HomeLayoutFactory implements ViewFactory {
@Override public View create(Context context, ViewGroup parent) {
LayoutInflater inflater = LayoutInflater.from(context);
return inflater.inflate(R.layout.home, parent, false);
}
}
src/internal/java
class HomeLayoutFactory implements ViewFactory {
@Override public View create(Context context, ViewGroup parent) {
LayoutInflater inflater = LayoutInflater.from(context);
return inflater.inflate(R.layout.home_debug, parent, false);
}
}