accessing textview within a fragment in activity
I wanted to use Fragments with in the ActionBar. Unfortunately it looks like its really complicated. My Fragments have Textviews and I want to be able to communicate with them out of my activity. Before I started to use Fragments I could access them with private EditText editText = (EditText) findViewById(R.id.editTextName); So I was able to receive the editText value when a user clicked on save. How should I do this the Fragment-way? Activity: @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_add_recipe);