Android change google maps zoom buttons style -


question how resources of google map, change background these buttons. so, i've found solution via debugger:

view mapview = super.oncreateview(inflater, container, savedinstancestate);     // button view  view locationbutton = ((view) mapview.findviewbyid(1).getparent()).findviewbyid(2); 

but cant understand how id's views need debugger

use findviewbyid(hardcode) no safely.

better disable native control(setzoomcontrolsenabled(false)) , attach yours(you have full access eg animation, color, styles, characters, drawable etc).


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -