protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); // Create your application here SetContentView(Resource.Layout.MusicDetailLayout); MusicInfoDR = ETC.FindDataRow(ETC.MusicList, "CodeName", Intent.GetStringExtra("CodeName")); music = new Music(MusicInfoDR); MainLayout = FindViewById <LinearLayout>(Resource.Id.MusicDetailMainLayout); MainScrollLayout = FindViewById <ScrollView>(Resource.Id.MusicDetailMainScrollLayout); switch (music.Type) { case string type when type == Resources.GetString(Resource.String.MusicType_Vocal): MainScrollLayout.SetBackgroundResource(Resource.Drawable.VocalMusic_BG); break; case string type when type == Resources.GetString(Resource.String.MusicType_Dance): MainScrollLayout.SetBackgroundResource(Resource.Drawable.DanceMusic_BG); break; case string type when type == Resources.GetString(Resource.String.MusicType_Session): MainScrollLayout.SetBackgroundResource(Resource.Drawable.SessionMusic_BG); break; } BigAlbumView = FindViewById <ImageView>(Resource.Id.MusicDetailBigAlbumView); FindViewById <Button>(Resource.Id.MusicDetailMissionListButton).Click += MusicMissonListButton_Click; FindViewById <Button>(Resource.Id.MusicDetailMusicPreviewButton).Click += MusicPreviewButton_Click; InitLoadProcess(); }
protected override async void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); // Create your application here SetContentView(Resource.Layout.StarDetailLayout); star = new Star(ETC.FindDataRow(ETC.CharacterList, "DicNumber", Intent.GetIntExtra("DicNumber", 0))); StarCropImage = FindViewById <ImageView>(Resource.Id.StarDetailStarCropImage); await DownloadProcess(); InitLoadProcess(); }