Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #txt #chnage #fragment
ADD COMMENT
Topic
Name
8+4 =