I'm creating an app, in android, which has tabs. Each tab is a chat room. I took an example of a video on how to create app with Tabs, where the author, in addition to creating the app using a tab template, he create a tab class for each tab and an xml for each of them as well. It concludes that to send a message on a particular tab, I would have to create the method of sending the message in the class tab, of each one of them, however, I am not able to make the "connection" of the text field (TextView) in this class, since the findoViewById () command does not appear in the tab class!
package com.example.gustavo.vigilantescomunitarios;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
public class TabRua extends Fragment {
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
return inflater.inflate(R.layout.tab_rua, container, false);
}
}