summaryrefslogtreecommitdiff
path: root/platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/view
diff options
context:
space:
mode:
authorTobrun <tobrun@mapbox.com>2016-05-03 08:15:15 +0200
committerTobrun <tobrun@mapbox.com>2016-05-20 12:00:01 +0200
commit16a2765adcc726feaffbc2e6f7e805d9e5d6cf58 (patch)
treec8ede33c621b227d77e8ac22617a54cf1631848f /platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/view
parent1d912a409a61531cca909d94838c0f177ba1f9e8 (diff)
downloadqtlocation-mapboxgl-16a2765adcc726feaffbc2e6f7e805d9e5d6cf58.tar.gz
[android] #3276 - android view annotations adapter approach
Diffstat (limited to 'platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/view')
-rw-r--r--platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/view/CustomMarkerView.java36
1 files changed, 0 insertions, 36 deletions
diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/view/CustomMarkerView.java b/platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/view/CustomMarkerView.java
deleted file mode 100644
index 761500aa43..0000000000
--- a/platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/view/CustomMarkerView.java
+++ /dev/null
@@ -1,36 +0,0 @@
-package com.mapbox.mapboxsdk.testapp.view;
-
-import android.content.Context;
-import android.support.annotation.DrawableRes;
-import android.support.annotation.NonNull;
-import android.view.LayoutInflater;
-import android.widget.ImageView;
-import android.widget.TextView;
-
-import com.mapbox.mapboxsdk.annotations.MarkerView;
-import com.mapbox.mapboxsdk.testapp.R;
-
-public class CustomMarkerView extends MarkerView {
-
- private TextView textView;
- private ImageView imageView;
-
- public CustomMarkerView(Context context) {
- super(context);
- init(context);
- }
-
- private void init(Context context) {
- LayoutInflater.from(context).inflate(R.layout.view_custom_marker, this);
- textView = (TextView) findViewById(R.id.textView);
- imageView = (ImageView) findViewById(R.id.imageView);
- }
-
- public void setText(@NonNull String text) {
- textView.setText(text);
- }
-
- public void setImage(@DrawableRes int drawableRes) {
- imageView.setImageResource(drawableRes);
- }
-}