on-internet
← Community

ListView not showing up / appearing android studio

Stack Overflow ·

I have two activities. MainActivity.java and HomeActivity.java. I am trying to create a ListView in HomeActivity.java just with "One", "Two", "Three", and "Four" as the List items but the ListView is not showing up at all. HomeActivity.java: public class HomeActivity extends AppCompatActivity { String personName; String email; String rfid; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_home); Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); setSupportActionBar(toolbar); populateListView(); Bundle extras

Comments

Sign in or sign up to comment and upvote.

No comments yet.