Inheritance: android.widget.AbsListView
Ejemplo n.º 1
0
		public override void onListItemClick (ListView list, View v, int pos, long id)
		{
			var item = (Map<String,Object>)list.getItemAtPosition (pos);
			var monkey = (Monkey)item.get ("monkey");

			if (listener != null)
				listener.onMonkeySelected (monkey);
		}
Ejemplo n.º 2
0
		protected override void onListItemClick (ListView l, View v, int position, long id)
		{
			var item = (Map<String,Object>)l.getItemAtPosition (position);
			var type = (Type)item.get("type");

			var intent = new Intent (this, typeof (TestActivity));
			intent.putExtra ("type", type.FullName);
			startActivity (intent);
		}
Ejemplo n.º 3
0
                protected override void onListItemClick (ListView list, View v, int pos, long id)
		{
			Intent intent = new Intent (this, typeof (ImageActivity));
			intent.putExtra (EXTRA_POSITION, pos);
			startActivityForResult (intent, 1);
		}
        protected override void onListItemClick(ListView l, android.view.View v, int position, long id)
        {
            File file = new File((string)path.get(position));

            if (file.isDirectory())
            {

                if (file.canRead())
                {
                    getDir((string)path.get(position));
                }
                else
                {
                    new AlertDialog.Builder(this)
                        //.setIcon(R.drawable.ic_launcher)
                        .setTitle(file.getName() + "] folder can't be read!")
                        //.setPositiveButton("OK", null)
                        .show();
                }
            }
            else
            {
                new AlertDialog.Builder(this)
                    //.setIcon(R.drawable.ic_launcher)
                    .setTitle(file.getName() + "]")
                    //.setPositiveButton("OK", null)
                    .show();

            }

        }