-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update the demo to work with the new version of the library that uses…
… listeners stop tracking and/or ignore bin/gen/.idea and a few more project files
- Loading branch information
Showing
20 changed files
with
303 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-4.08 KB
bin/com/walkbase/demoapp/WalkbaseDemoActivity$WalkbaseReceiver.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,25 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<TextView xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="fill_parent" | ||
android:layout_height="fill_parent" | ||
android:padding="10dp" | ||
android:textSize="16sp" > | ||
</TextView> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:orientation="horizontal" android:layout_width="fill_parent" | ||
android:layout_height="fill_parent"> | ||
|
||
<LinearLayout | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:orientation="vertical" > | ||
|
||
<TextView | ||
android:id="@+id/locationName" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="TextView" android:textSize="15pt"/> | ||
|
||
<TextView | ||
android:id="@+id/locationDetails" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="TextView" /> | ||
|
||
</LinearLayout> | ||
|
||
</LinearLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package com.walkbase.demoapp; | ||
|
||
import java.util.List; | ||
|
||
import android.content.Context; | ||
import android.view.LayoutInflater; | ||
import android.view.View; | ||
import android.view.ViewGroup; | ||
import android.widget.ArrayAdapter; | ||
import android.widget.ImageView; | ||
import android.widget.TextView; | ||
|
||
import com.walkbase.positioning.data.WalkbaseLocation; | ||
|
||
public class ListItemAdapter extends ArrayAdapter<WalkbaseLocation> { | ||
private final Context context; | ||
private final List<WalkbaseLocation> objects; | ||
|
||
|
||
|
||
public ListItemAdapter(Context context, int textViewResourceId, List<WalkbaseLocation> objects) { | ||
super(context, textViewResourceId, objects); | ||
this.context = context; | ||
this.objects = objects; | ||
} | ||
|
||
public View getView(int position, View convertView, ViewGroup parent) { | ||
LayoutInflater inflater = (LayoutInflater) context | ||
.getSystemService(Context.LAYOUT_INFLATER_SERVICE); | ||
View rowView = inflater.inflate(R.layout.list_item, parent, false); | ||
TextView textView = (TextView) rowView.findViewById(R.id.locationName); | ||
TextView detailView = (TextView) rowView.findViewById(R.id.locationDetails); | ||
WalkbaseLocation o = this.objects.get(position); | ||
textView.setText(o.locationName); | ||
detailView.setText("Details:\nid:"+o.locationId+" listId:" + o.listId+" pos:"+o.latitude+","+o.longitude+"+/-"+o.accuracy+" score:"+o.score+" extra:"+o.extra); | ||
return rowView; | ||
} | ||
} |
Oops, something went wrong.