Intent in = new Intent(getApplicationContext(), EditPlaceActivity.class);
Intent in = new Intent(MainActivity.this, EditPlaceActivity.class);
@Override
public void onBindViewHolder(final ViewHolder holder, int position) {
holder.view.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
}
});
}
public class ViewHolder extends RecyclerView.ViewHolder {
public final View view;
public ViewHolder(View v) {
super(v);
view = v;
}
}
String data = "Эти данные необходимо передать";
Intent i = new Intent(MainActivity.this, SecondActitviy.class);
i.putExtra("testNameData", data);
startActivity(i);
String data = getIntent().getExtras().getString("testNameData");
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
android:id="@+id/search_bar"
android:title="@string/search"
android:orderInCategory="200"
app:showAsAction="always"
android:icon="@drawable/ic_search">
</item>
<item
android:id="@+id/navigation_bar"
android:title="@string/navigation"
android:orderInCategory="100"
app:showAsAction="always"
android:icon="@drawable/ic_nv_back">
</item>
</menu>