summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Mork <bjorn@mork.no>2019-05-22 15:19:47 +0200
committerBjørn Mork <bjorn@mork.no>2019-05-31 14:51:51 +0200
commit2a3aea4a43fc6464345fcbe10de37e7837ba9a9c (patch)
tree72c0266d5659a5ccc91c140dc69a0d02df23228c
parent4f92efb6d181b348340fa665b7062670fd9ad9a5 (diff)
android wip
Signed-off-by: Bjørn Mork <bjorn@mork.no>
-rw-r--r--Defogger/src/no/mork/android/defogger/ScanListAdapter.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/Defogger/src/no/mork/android/defogger/ScanListAdapter.java b/Defogger/src/no/mork/android/defogger/ScanListAdapter.java
new file mode 100644
index 0000000..c0b8a8d
--- /dev/null
+++ b/Defogger/src/no/mork/android/defogger/ScanListAdapter.java
@@ -0,0 +1,15 @@
+package no.mork.android.defogger;
+
+import android.bluetooth.BluetoothDevice;
+import android.content.Context;
+import android.widget.ArrayAdapter;
+
+// originally from https://developer.android.com/guide/topics/ui/layout/recyclerview
+// but converted to simpler ArrayAdapter using https://developer.android.com/guide/topics/ui/declaring-layout.html#FillingTheLayout
+
+public class ScanListAdapter extends ArrayAdapter<BluetoothDevice> {
+
+ public ScanListAdapter(Context context, int resource, int textViewResourceId) {
+ super(context, resource, textViewResourceId);
+ }
+}