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

Realm is a mobile database that runs directly inside phones, tablets or wearables.

Features:

  • Mobile-first: Realm is the first database built from the ground up to run directly inside phones, tablets and wearables.
  • Simple: Data is directly exposed as objects and queryable by code, removing the need for ORM's riddled with performance & maintenance issues.
  • Modern: Realm supports easy thread-safety, relationships & encryption.
  • Fast: Realm is faster than even raw SQLite on common operations, while maintaining an extremely rich feature set.

Useful library for selecting images and videos from sd-card. The library can be used to display images & videos in file view or folder view. File view shows all files whereas Folder view shows files categorized. All items are sorted according to date-time with latest item showing first.

Gmail like pull to refresh implementation.

You can see Teleport as an Android Wear "plugin" you can add to your Activities and Services.

Teleport provides you commodity classes to easily establish a communication between a mobile handheld device and an Android Wear device.

BlurBehind is a library to add blur effect for your Android views.

Before API level 14 there was a Window flag called FLAG_BLUR_BEHIND. It was used for "blurring everything behind a window" and is no longer supported by Android.

BlurBehind provides an easy way to have that effect, with customization, for your window without API level restrictions.

A library for creating Data Access Objects from Android Cursors and converting them back into ContentValues.

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