コード例 #1
0
        public TimelineTail(AccountGroup group)
        {
            InitializeComponent();
            this.group = group;

            HeaderView.Icon.Source      = "ic_timeline_green_300_48dp";
            HeaderView.HeaderLabel.Text = "타임라인 @" + group.AccountForRead.User.ScreenName;

            WriterView           = new StatusWriterView(group);
            WriterView.IsVisible = false;
            RootView.Children.Insert(1, WriterView);

            WriteIcon = HeaderView.AddIcon("ic_create_black_48dp");
            WriteIcon.GestureRecognizers.Add(new TapGestureRecognizer()
            {
                Command = new Command(() =>
                {
                    WriterView.IsVisible = !WriterView.IsVisible;
                })
            });

            TimelineListView.Fetchable = new AccountFetch.Timeline(App.Tail, group);

            HeaderView.RefreshAction += new Action(async() =>
            {
                try
                {
                    await TimelineListView.Refresh();
                }
                catch (Exception e)
                {
                    Util.HandleException(e);
                }
                HeaderView.InRefresh = false;
            });
        }