Porting Android Training Course:Building a dynamic ui with fragment