// Use this for initialization void Start() { text = transform.Find("Text").GetComponent <Text>(); selectedListViewManager = transform.parent.Find("LoadList_ListView").GetComponent <ListViewManager>(); ListViewManager.SelectionChangeEvent += OnSelectionChange; }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.SettingsLayout); #region ActionBar ActionBar.SetDisplayHomeAsUpEnabled(true); ActionBar.SetDisplayShowTitleEnabled(true); ActionBar.SetHomeButtonEnabled(true); ActionBar.SetHomeAsUpIndicator(Resources.GetDrawable(Resource.Drawable.Back3)); ActionBar.SetBackgroundDrawable(new ColorDrawable(Android.Graphics.Color.ParseColor("#1f669b"))); #endregion //Toast.MakeText(this, Intent.Extras.ToString(), ToastLength.Long).Show(); Settings = this.GetSharedPreferences(this.PackageName + Global.ApplicationInfo.VersionName + ".Settings", FileCreationMode.MultiProcess); SettingsEditor = Settings.Edit(); _ListViewManager = new ListViewManager(this, FindViewById <ListView>(Resource.Id.listView1)); _ListViewManager.SetTab(ListViewManager.Tabs.Home); if (Intent.Extras != null) { _ListViewManager.SetTab(ListViewManager.Tabs.LiveWallpaper); } }
private void Form1_Load(object sender, EventArgs e) { lVManager = new ListViewManager(listView1); bot = new BotFunctions(timer1); HookManager.KeyDown += HookManager_KeyDown; }
// Use this for initialization void Start() { thisListViewManager = GetComponent <ListViewManager>(); ListViewManager.SelectionChangeEvent += OnSelectionChange; }