Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add my custom View to the TileView, so that it does not scale? #462

Closed
Ox10cx opened this issue Jan 17, 2018 · 2 comments
Closed

add my custom View to the TileView, so that it does not scale? #462

Ox10cx opened this issue Jan 17, 2018 · 2 comments

Comments

@Ox10cx
Copy link

Ox10cx commented Jan 17, 2018

image

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 ?

@moagrius
Copy link
Owner

so you want it to scale, but not move? otherwise there are examples in the README for adding both scaling and non-scaling Views...

@moagrius
Copy link
Owner

this gentle person has provided an example of scaling markers just now: #409 (comment)

@moagrius moagrius closed this as completed Mar 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants