So I have two classes, MainActivity and SpinnerActivity.

Whatever I do now, my spinner just doesn't get populated with the data from the topicsAdapter which uses the topics ArrayList.

Maybe it's just something easy i've stumbled upon, but I just can't figure it out.

MainActivity.java

```
public class MainActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    Toolbar myToolbar = findViewById(R.id.my_toolbar);
    setSupportActionBar(myToolbar);

    Intent spinner = new Intent(this, SpinnerActivity.class);
    startActivity(spinner);
}

```

SpinnerActivity.java

```
public class SpinnerActivity extends AppCompatActivity {

@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    LayoutInflater inflater = LayoutInflater.from(this);
    View view = inflater.inflate(R.layout.activity_main, null);

    ArrayList<String> topics = new ArrayList<>();

    topics.add("Home");
    topics.add("Android");
    topics.add("Test 3");

    Spinner spinner = (Spinner) view.findViewById(R.id.toolbar_spinner);
    ArrayAdapter<String> topicsAdapter = new ArrayAdapter<>(this, R.layout.spinner_item, topics);
    topicsAdapter.setDropDownViewResource(R.layout.spinner_dropdown);
    spinner.setAdapter(topicsAdapter);

}

```