package com.base.scanqrclear.ui.widget.guideview;

import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;

import com.base.scanqrclear.R;


/**
 * Created by binIoter on 16/6/17.
 */
public class LottieComponent implements Component {

    @Override
    public View getView(LayoutInflater inflater) {

        LinearLayout ll = (LinearLayout) inflater.inflate(R.layout.layout_lottie_guide, null);
//        ll.setOnClickListener(view -> Toast.makeText(view.getContext(), "引导层被点击了", Toast.LENGTH_SHORT).show());
        return ll;
    }

    @Override
    public int getAnchor() {
        return Component.ANCHOR_BOTTOM;
    }

    @Override
    public int getFitPosition() {
        return Component.FIT_CENTER;
    }

    @Override
    public int getXOffset() {
        return 0;
    }

    @Override
    public int getYOffset() {
        return -150;
    }
}
