txt not chnage on fragment code example
Example: 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
}