zyyoona7/EasyPopup

有一个疑问

Cuiernao opened this issue · 2 comments

mQQPop = EasyPopup.create()
.setContext(this)
.setContentView(R.layout.layout_right_pop)
.setAnimationStyle(R.style.RightTop2PopAnim)
.setOnViewListener(new EasyPopup.OnViewListener() {
@OverRide
public void initViews(View view) {
// View arrowView = mQQPop.findViewById(R.id.v_arrow);
// arrowView.setBackground(new TriangleDrawable(TriangleDrawable.TOP, Color.parseColor("#404040")));

                }
            })
            .setFocusAndOutsideEnable(true)
            .apply();
    **View arrowView = mQQPop.findViewById(R.id.v_arrow);
    arrowView.setBackground(new TriangleDrawable(TriangleDrawable.TOP, Color.parseColor("#404040")));**

定义的View写在initView()里面,和外面有啥区别?

实际上没有区别,只是写在 initViews() 方法中更加链式。

谢谢解答!