Closed Ox10cx closed 6 years ago
so you want it to scale, but not move? otherwise there are examples in the README for adding both scaling and non-scaling Views...
this gentle person has provided an example of scaling markers just now: https://github.com/moagrius/TileView/issues/409#issuecomment-360587147
How do I get this robot icon not to move without the zoom of the TileView?
RelativeLayout relativeLayout = new RelativeLayout( this ); ImageView logo = new ImageView( this ); logo.setImageResource( R.drawable.logo ); RelativeLayout.LayoutParams logoLayoutParams = new RelativeLayout.LayoutParams( LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT ); logoLayoutParams.addRule( RelativeLayout.CENTER_IN_PARENT ); relativeLayout.addView( logo, logoLayoutParams ); tileView.addView( relativeLayout );
Can you help me ?