我发现示例,旧版本,而不是为新生成器模式。有谁知道如何做到这一点?
I found examples for the legacy version, but not for the new builder pattern. Does anyone know how to do this?
该生成器的构造函数只需要一个活动公共生成器(活动活动)
这样:
The Builder constructor only needs an activity public Builder(Activity activity)
so:
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
View view = inflater.inflate(R.layout.fragment, container, false);
showcaseView = new ShowcaseView.Builder(getActivity())
.setTarget(new ViewTarget(view.findViewById(R.id.textView)))
.setOnClickListener(listener)
.build();
....
上一篇:我怎样才能拿到手机的ICCID多少?手机、ICCID
下一篇:OpenGLES 1.1帧缓冲/ ColorBuffer /深度缓存为Android NDK与R7B缓存、深度、ColorBuffer、OpenGLES