예제 #1
0
        public void SetData(Post post)
        {
            ImageService.Instance.LoadUrl(post.BookCoverUrl + "?v=" + post.Id)
            .FadeAnimation(true)
            .LoadingPlaceholder("Splash2", ImageSource.ApplicationBundle)
            .Into(ImgBookCover);

            ImageService.Instance.LoadUrl(post.Avatar + "?v=" + post.Id)
            .FadeAnimation(true)
            .Into(ImgAvatar);


            LblBookTitle.Text   = post.BookTitle;
            LblDescription.Text = post.Description;
            LblNickname.Text    = post.Nickname;
            LblUsername.Text    = "@" + post.Username;


            ImgAvatar.AddGestureRecognizer(new UITapGestureRecognizer(() =>
            {
            }));
        }