Esempio n. 1
0
 public void update_(int id, int_tab_activity context)
 {
     interop.behavior_inst.update_(id, context);
 }
Esempio n. 2
0
        public void get_tweets_async(int_tab_activity context)
        {
            set_req = context;

            ThreadPool.QueueUserWorkItem(get_tweets_in_background);
        }
Esempio n. 3
0
 public void update_(int id, int_tab_activity context)
 {
     n[id].get_tweets_async(context);
 }
Esempio n. 4
0
 public static void udpate_list(int_tab_activity context, List<Tweet> arg)
 {
     data[context._tag].AddRange(arg);
     adapters[context._tag].NotifyDataSetChanged();
 }
Esempio n. 5
0
        public static void on_act_create(int_tab_activity context, ListView listView)
        {
            if (adapters[context._tag] == null)
            {
                CustomListAdapter listAdapter = new CustomListAdapter(context, data[context._tag], Resource.Layout.list,
                     Resource.Id.imageItem, Resource.Id.textView1, Resource.Id.textBottom);
                adapters[context._tag] = listAdapter;
            }

            listView.Adapter = adapters[context._tag];

                listView.ItemClick += delegate(object sender, AdapterView.ItemClickEventArgs args)
                {
                    Intent i = new Intent(context, typeof(tweet));
                    i.PutExtra("name", int_ActivityManager.get_item(context, args.Position).from_user_name);
                    i.PutExtra("tweet", int_ActivityManager.get_item(context, args.Position).text);
                    i.PutExtra("image", int_ActivityManager.get_item(context, args.Position).created_at);
                    i.PutExtra("date", int_ActivityManager.get_item(context, args.Position).created_at);
                    i.PutExtra("link", int_ActivityManager.get_item(context, args.Position).source);
                    context.StartActivity(i);
                };
        }
Esempio n. 6
0
 public static Tweet get_item(int_tab_activity context, int pos)
 {
     return data[context._tag][pos];
 }