IndorMapView


Source link: https://github.com/ninepatch/IndoorMapView

IndoorMapView

##BETA Version

Android indoor map work in progress...

Requirements

The library requires Android API Level 9+.

How to use

####activity_main.xml


<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:fitsSystemWindows="true"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:orientation="vertical">

<indoormaps.ninepatch.com.library.IndoorMapsView

android:id="@+id/indorMaps"

android:layout_width="match_parent"

android:layout_height="match_parent" />  </LinearLayout>

####MainActivity.class

public class MainActivity extends AppCompatActivity {

private IndoorMapsView indoorMapsView;

@Override
  protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

 setContentView(R.layout.activity_main);

 indoorMapsView = (IndoorMapsView) findViewById(R.id.indorMaps);

 indoorMapsView.getIndoorViewListener().setOnMapViewInizializate(new OnMapViewInizializate() {

 @Override

 public void onMapLoading() {

}

  @Override

 public void onMapinizializate() {

indoorMapsView.init("mappa2.png", ZOOM.LEVEL4);
 //image from assets or put link

indoorMapsView.setBackgroundColorRes(R.color.colorPrimary);

  
}

 
}
);

 
}
 
}
 

Add marker


 Marker marker = new Marker(MainActivity.this);

  marker.setId(1);

  marker.setLat(36.8271);

  marker.setLon(32.9731);

  marker.setName(getString(R.string.marker_name));

  marker.setImageLink("pointer.png");
//from assets or put link

 //set Marker Style

  Style style = new Style(MainActivity.this);

  style.setLabelColor(R.color.colorAccent);

  style.setLabelPx(22);

  style.setShowLabel(true);

  marker.setStyle(style);

 indoorMapsView.addMarker(marker);
  

Listner

indoorMapsView.getIndoorViewListener().setOnMarkerTapListener(new OnMarkerTapListener() {

 @Override

 public void onMarkerTap(Marker marker) {

  
}

}
);

 indoorMapsView.getIndoorViewListener().setOnTapListener(new OnTapListener() {

 @Override

 public void onTap(double lat, double lon) {

}

}
);
 

Center Map

 indoorMapsView.setCenter(lat, lng);
 

Animation

ANIMATION type: PAN, FLY ,SPIRAL

center map to point or marker whit animation

  indoorMapsView.goToAnimate(marker, ANIMATION.PAN);
 

Resources

Android Range Slider View.

Features:

  • Ripple effect on Android Lollipop devices
  • Option to set custom colors for slider
  • Option to set custom colors for slider height

The Fastest Way to create a sql based ContentProvider in Android using annotations (No reflection).

A solution designed to improve efficiency in your software development cycle by saving time and effort so that you can focus on actual work.

CircleImageView is a component which display circle image with customization options.

ChatMessageView helps you to create chat message view quickly like a typical chatting application. Its a container view, so you can add any type of message such as TextView or any customize TextView, ImageView, etc.

OkResponseFaker uses a special OkHttp Interceptor that allows you to provide a custom response for the next or more requests executed, allowing you to easily debug feedback to special cases in your application. You can fake response status and body using the FakeResponse interface. Use simple static data, or build a complex response using JSON objects.

Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes