use findviewbyid in fragment
//java,how use findViewById in fragments,Android studio,2021/09/23
TextView textView;
textView=getView().findViewById(R.id.textView);
//use getView(). with it
use findviewbyid in fragment
//java,how use findViewById in fragments,Android studio,2021/09/23
TextView textView;
textView=getView().findViewById(R.id.textView);
//use getView(). with it
where to use findviewbyid in fragment
@Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
ImageView imageView = (ImageView) getView().findViewById(R.id.foo);
// or (ImageView) view.findViewById(R.id.foo);
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us