sagarheroor / google-tv-remote

Automatically exported from code.google.com/p/google-tv-remote
0 stars 0 forks source link

Some drawables have uneven edges. #8

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Changes to be made to code.google.com/r/rishabhiitd10-inputaccesslib/

Call the image hg/res/drawable-mdpi/dpad.png : Circle1.
Let the radius of Circle1 be x.
Circle1 needs to be cut into 5 seperate buttons.
They are as follow:

Button 1:
hg/res/drawable-mdpi/dpad_center.png : radius = x/3.5
hg/res/drawable-mdpi/dpad_center_touched.png : radius = x/3.5 and light colored 
to show highlight.

Now cut out Button1 from Circle1 and divide the remaining circle into 4 
sectors. 
Each of these sectors correspond to a button.
The the starting and ending angles of sectors are as follow:
-pi/4 to pi/4
pi/4 to 3*pi/4
3*pi/4 to 5*pi/4
5*pi/4 to -pi/4

Same images with similar shapes and ratio but with different dimensions have to 
be created for drawable-hdpi.

Original issue reported on code.google.com by rishabhi...@gmail.com on 30 Jul 2012 at 5:55