Change to ListView in layout file to solve crash

This commit is contained in:
misaochan 2016-08-25 18:32:13 +12:00
parent 55810cd050
commit 9836fb920e
2 changed files with 6 additions and 6 deletions

View file

@ -34,7 +34,7 @@ public class NearbyPlaces {
int counter = 0;
//while ((line = in.readLine()) != null) {
while (in.readLine() != null && counter < 11) {
while (in.readLine() != null && counter < 110) {
line = in.readLine();
counter++;

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
</LinearLayout>
<ListView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>