I have a app that shows the camera view on the screen on a FrameLayout. The screen is in fixed LandScape mode.
I need to write a textView with dynamically determined coordinates of the screen. The coordinates are determined in percentages, for example :
write the textview on the coorinates x=80% of the screen & y=20% of the screen. write the textview on the coorinates x=35% of the screen & y=55% of the screen.
how to do it? i already have the percentages, i only need to know how to use them to write the textview on the desired position of the frameLayout
code examples are welcome
i tried with this but doesn't works, the textview isn't moved:
TextView poi..... etc etc
poi.setLayoutParams(new LayoutParams((int)(w*(xCoordPercent/100)), h/2));
thanks