<ListView android:id="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"/>
This will solve the error if you still want to use a ListActivity.
More Related Contents:
- Android How to increase Battery level in text view
- How to make links in a TextView clickable
- “R cannot be resolved to a variable”? [duplicate]
- Android – styling seek bar
- How to create custom button in Android using XML Styles
- Best practice: AsyncTask during orientation change
- How can I change default dialog button text color in android 5
- How to take a screenshot of a current Activity and then share it?
- Detect when RecyclerView reaches the bottom most position while scrolling
- Moving and vanishing lines of code; trouble with Eclipse’s XML Editor
- Whatsapp Message Layout – How to get time-view in the same row
- Could not connect to React Native development server on Android
- FileProvider crash – npe attempting to invoke XmlResourceParser on a null String
- Don’t keep activities – What is it for?
- how to serialize an object of android.graphics.Path
- Warning: Do not place Android context classes in static fields; this is a memory leak (and also breaks Instant Run)
- android:dither=”true” does not dither, what’s wrong?
- Using Android Google Maps v2 with custom View or ImageView
- A pre-populated database does not work at API 28 throws “no such table” exception
- Google Firebase sign out and forget user in Android app
- Android – make an arrow shape with xml
- Store a List or Set in SharedPreferences
- Android Timer within a service
- Could not find runtime.jar (android.arch.lifecycle:runtime:1.0.0)
- Comparing two locations using their Longitude and Latitude
- How to keep Bluetooth connection background?
- Posting LinkedIn message from Android application
- Android: Simulate WiFi in the emulator?
- Custom PopupMenu (layout)
- Sending pictures to a web server