如何在片段中使用setByte?

时间:2019-01-02 12:22:23

标签: java android

我正在使用felipecsl/GifImageView中的github

public class Send extends Fragment {
    ImageView gifView;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View rootView = inflater.inflate(R.layout.send, container, false);
        return rootView;

        super.onCreate(savedInstanceState);
        gifView = getView().findViewById(R.id.gifView);
        gifView.setBytes(bitmapData);
    }
}

1 个答案:

答案 0 :(得分:0)

我建议您在开始使用它们之前先阅读一下库。您在代码中使用ImageView而不是GifImageView

您应该使用sample example here中提到的库提供的ImageView,而不是使用默认的GifImageView