如下: 

      noScrollgridview.setOnItemClickListener(new OnItemClickListener()
        {

            public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,
                    long arg3)
            {
                InputMethodManager imm = ( InputMethodManager ) arg1.getContext( ).getSystemService( Context.INPUT_METHOD_SERVICE );  
                 imm.hideSoftInputFromWindow( arg1.getApplicationWindowToken( ) , 0 );  
                if (arg2 == Bimp.bmp.size())
                {
                    new PopupWindows(PublishedActivity.this, noScrollgridview);
                }
                else
                {
                    Intent intent = new Intent(PublishedActivity.this,
                            PhotoActivity.class);
                    intent.putExtra("ID", arg2);
                    startActivity(intent);
                }
            }
        });

相关文章:

  • 2022-12-23
  • 2021-10-01
  • 2021-09-15
  • 2021-04-19
  • 2022-12-23
  • 2021-12-14
  • 2021-07-12
  • 2021-07-14
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-04
相关资源
相似解决方案