silentCoding 2016-06-08 01:40 采纳率: 0%
浏览 1282

java多线程问题 关于锁的

功能是想输出ABCABC......运行中出现错误,不知道怎么回事,帮忙看看,谢谢,急!!!!!图片说明图片说明图片说明

  • 写回答

1条回答 默认 最新

  • 普通网友 2016-10-05 16:09
    关注

    super(context);
    this.listener = listener;
    initView(context);
    }

    private void initView(Context context)
    {
        LayoutInflater layoutInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
        View otherView = layoutInflater.inflate(R.layout.item_camera_select,
                null);
        otherView.setOnTouchListener(new View.OnTouchListener()
        {
            @Override
            public boolean onTouch(View v, MotionEvent event)
            {
                if (event.getAction() == MotionEvent.ACTION_DOWN)
                {
                    startExistAnim();
                }
                return true;
            }
        });
    
        photoBtn = (Button) otherView.findViewById(R.id.btn_goto_camera);
        photoBtn.setOnClickListener(this);
        gifBtn = (Button) otherView.findViewById(R.id.btn_camera_gif);
        gifBtn.setOnClickListener(this);
        streamBtn = (Button) otherView.findViewById(R.id.btn_camera_live);
        streamBtn.setOnClickListener(this);
    
        photoEnterAnim = AnimationUtils.loadAnimation(context,
                R.anim.three_button_enter_second);
        gifEnterAnim = AnimationUtils.loadAnimation(context,
                R.anim.three_button_enter_first);
        streamEnterAnim = AnimationUtils.loadAnimation(context,
                R.anim.three_button_enter_third);
        firstExistAnim = AnimationUtils.loadAnimation(context,
                R.anim.three_button_exist_first);
        secondExistAnim = AnimationUtils.loadAnimation(context,
                R.anim.three_button_exist_second);
        thirdExistAnim = AnimationUtils.loadAnimation(context,
                R.anim.three_button_exist_third);
    
        // 最后一个退出动画完成后把PopupWindowDismiss掉
        thirdExistAnim.setAnimationListener(new Animation.
    
    评论

报告相同问题?

悬赏问题

  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 LiBeAs的带隙等于0.997eV,计算阴离子的N和P
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
  • ¥15 来真人,不要ai!matlab有关常微分方程的问题求解决,
  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
  • ¥15 ubuntu虚拟机打包apk错误
  • ¥199 rust编程架构设计的方案 有偿
  • ¥15 回答4f系统的像差计算