horizontallscroll view doesnot work in popup window when disable all outside click in android
<p>public void done(View v)
    {</p>

<pre><code>    // Display settings
    Display display = ((WindowManager) mContext
            .getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay();

    // The view to show
    View mView = ((Activity) mContext).getLayoutInflater().inflate(
            R.layout.custom_menu_bottom, null);

    // Create popup window to show
    //mPopupWindow = new PopupWindow(mView, LayoutParams.MATCH_PARENT,
            //LayoutParams.WRAP_CONTENT);
    mPopupWindow = new PopupWindow(mView, LayoutParams.MATCH_PARENT,
            100);
    mPopupWindow.setAnimationStyle(R.style.Animations_MenuAnimation);

    mPopupWindow.setWidth(display.getWidth());
    mPopupWindow.setHeight(display.getHeight()/4);
    mPopupWindow.setOutsideTouchable(true);
       mPopupWindow.setFocusable(true);

 mPopupWindow.setTouchable(true);
    mPopupWindow.setBackgroundDrawable(new BitmapDrawable());



    mPopupWindow.showAtLocation(v, Gravity.BOTTOM, 0, 0);
    mPopupWindow.setContentView(mView);





    int i=0;
    HorizontalScrollView hScrollView=(HorizontalScrollView)mView.findViewById(R.id.horizontal_scroll_view5);
     LinearLayout lowLinearLayout = new LinearLayout(mContext);
    if(moodValue.equalsIgnoreCase("like"))
    {
        for(i=0 ;i&lt;postive_smiley.length;i++)
        {

             final ImageView imageView=new ImageView(mContext);

            //imageView.setImageResource(smiley[i]);
            imageView.bringToFront();

            imageView.setBackgroundResource(postive_smiley[i]);
            lowLinearLayout.addView(imageView);

            imageView.setTag(i);
            imageView.getLayoutParams().height =hScrollView.getLayoutParams().FILL_PARENT;
            imageView.getLayoutParams().width=display.getWidth()/4;

            imageView.setOnClickListener(new OnClickListener() {
                public void onClick(View v) 
                {
                    // TODO Auto-generated method stub
                    int s =(Integer) imageView.getTag();
                    String value=positive_values[s];
                    Toast t = Toast.makeText(mContext, "id is "+s + " choice is "+value, Toast.LENGTH_SHORT);
                    t.show();
                    Done.setMood(value);
                    hide();
                    mContext.finish();



                }
            });
        }
        hScrollView.addView(lowLinearLayout);
    }else
    {
            for(i=0 ;i&lt;negative_smiley.length;i++)
            {

                 final ImageView imageView=new ImageView(mContext);

                   //imageView.setImageResource(smiley[i]);
                   imageView.bringToFront();

                    imageView.setBackgroundResource(negative_smiley[i]);
                    lowLinearLayout.addView(imageView);

                    imageView.setTag(i);
                    imageView.getLayoutParams().height =hScrollView.getLayoutParams().FILL_PARENT;
                    imageView.getLayoutParams().width=display.getWidth()/4;

                    imageView.setOnClickListener(new OnClickListener() {
                        public void onClick(View v) {
                            // TODO Auto-generated method stub
                            int s =(Integer) imageView.getTag();
                            String value=negative_values[s];
                            Toast t = Toast.makeText(mContext, "id is "+s + "choice is"+value, Toast.LENGTH_SHORT);
                            t.show();
                            Done.setMood(value);
                            hide();


                        }
                    });
            }
            hScrollView.addView(lowLinearLayout);
    }



}
</code></pre>

<p>when I make comment to <code>mPopupWindow.setBackgroundDrawable(new BitmapDrawable())</code> all my window become disable but problem is that in popup window I have set the no of image in<code>horizontal scroll view</code> and one time only four image are seen on activity. But when I make that line comment then the scroll view doesn't work and only those four image are visible. I want to make scrollable my popup window as well as disable all other window.</p>
