Answers for "txt not chnage on fragment"

0

txt not chnage on fragment

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    //get id
    final View routeListingsView = inflater.inflate(R.layout.fragment_listings_route, null);

    txtView = (TextView) routeListingsView.findViewById(R.id.texttest);
    txtView.setText("NEW TEXT");    
    return routeListingsView; // You need to return the view in which the changed text exists
}
Posted by: Guest on May-17-2021

Code answers related to "txt not chnage on fragment"

Browse Popular Code Answers by Language