We have a vector layer style as .json file on the device. In the web sdk we are able to change the style of a vector layer using the setStyle method.
https://developers.arcgis.com/javascript/3/jsapi/vectortilelayer-amd.html#setstyle
This method is not available on Android and iOS. Is there another way of doing that?
Use the following constructor, and set the style using the "ItemResourceCache"
public ArcGISVectorTiledLayer(VectorTileCache vectorTileCache, ItemResourceCache itemResourceCache)
Creates a new ArcGISVectorTiledLayer from the specified VectorTileCache and ItemResourceCache objects. If itemResourceCache is null, it is equivalent to the constructor ArcGISVectorTiledLayer(VectorTileCache).
Parameters:
vectorTileCache - the vector tile cache to use
itemResourceCache - the vector tile style to use
Check out the Android sample: ArcGIS vector tiled layer (custom style)