What can the TV box factory do

What can the TV box factory do

What can our factory do with the Android tv box customization service? What kind of problems can I solve for my customers? Here are two examples of cooperation:

Cooperation case 1:

Android box probably requires the following:

1. Must be a factory, of course, the factory is best in Shenzhen. (Trade company, please leave)

2. Configuration, 4 cores, 1G+8G

3. The Wifi signal must be good. This is the focus and focus. .

4. Suitable for long-term boot.

5. The price is around 150-180 including tax. (Generally, it is executed according to the contract, and the supplier's payment is not delayed.)

6. Need to be inside the naked Android system, do not pre-install any, third-party app.

7. The box needs to be designed

8. The number of the first order is about 5,000, depending on the situation.

What can TV box factory doAndroid tv box factroy H96 custom UI

Cooperation case 2:

Based on the front and rear development of the android TV box, the detailed requirements are as follows:

1. Develop an application based on the android TV box (similar to the iptv set-top box used at home). The main function of the application is video playback.

2. The background management system is best built with PHP, and Java is also available.

3. The system will involve some data interaction with other software, which the interface has provided.

4. Prototype drawing, design draft is already done, contact me to provide.

5. Individuals or teams are welcome to bid, but it must be a factory. I hope to start a long-term cooperation with this project.

  1. /**
  2. * @author: sunnybaby
  3. * @Title: createShadowBitmap
  4. * @Description: 生成带阴影图片
  5. * @param orignalBitmap:原图
  6. * @param shadowMargin:阴影边宽
  7. * @param iconCornerRadius:原图圆角半径
  8. * @return :生成的带阴影图片
  9. */
  10. public static Bitmap createShadowBitmap(Bitmap orignalBitmap,
  11. int shadowMargin, int iconCornerRadius) {
  12. int w = orignalBitmap.getWidth();
  13. int h = orignalBitmap.getHeight();
  14. Bitmap shadowBitmap = Bitmap.createBitmap(w + shadowMargin * 2, h
  15. + shadowMargin * 2, Config.ARGB_8888);
  16. int width = shadowBitmap.getWidth();
  17. int height = shadowBitmap.getHeight();
  18. Canvas canvas = new Canvas(shadowBitmap);
  19. canvas.drawBitmap(orignalBitmap, shadowMargin, shadowMargin, null);
  20. Paint paint = new Paint();
  21. paint.setXfermode(new PorterDuffXfermode(Mode.DST_OVER));
  22. int radius = shadowMargin + iconCornerRadius;
  23. // 四个边的阴影效果,采用线性阴影,宽度等于阴影边距+圆角半径
  24. LinearGradient leftGradient = new LinearGradient(radius, 0, 0, 0,
  25. 0x7F000000, 0x00000000, TileMode.CLAMP);
  26. LinearGradient rightGradient = new LinearGradient(width - radius, 0,
  27. width, 0, 0x7F000000, 0x00000000, TileMode.CLAMP);
  28. LinearGradient topGradient = new LinearGradient(0, radius, 0, 0,
  29. 0x7F000000, 0x00000000, TileMode.CLAMP);
  30. LinearGradient bottomGradient = new LinearGradient(0, height - radius,
  31. 0, height, 0x7F000000, 0x00000000, TileMode.CLAMP);
  32. paint.setShader(leftGradient);
  33. canvas.drawRect(0, radius, radius, height - radius, paint);
  34. paint.setShader(rightGradient);
  35. canvas.drawRect(width - radius, radius, width, height - radius, paint);
  36. paint.setShader(topGradient);
  37. canvas.drawRect(radius, 0, width - radius, radius, paint);
  38. paint.setShader(bottomGradient);
  39. canvas.drawRect(radius, height - radius, width - radius, height, paint);
  40. // 四个角的阴影效果,采用圆形阴影,半径等于阴影边距+圆角半径
  41. RadialGradient topLeftCornerGradient = new RadialGradient(radius,
  42. radius, radius, 0x7F000000, 0x00000000, TileMode.CLAMP);
  43. RadialGradient topRightCornerGradient = new RadialGradient(width
  44. - radius, radius, radius, 0x7F000000, 0x00000000,
  45. TileMode.CLAMP);
  46. RadialGradient bottomLeftCornerGradient = new RadialGradient(radius,
  47. height - radius, radius, 0x7F000000, 0x00000000, TileMode.CLAMP);
  48. RadialGradient bottomRightCornerGradient = new RadialGradient(width
  49. - radius, height - radius, radius, 0x7F000000, 0x00000000,
  50. TileMode.CLAMP);
  51. // 画四个角,就是画四个圆心角为90度的扇形,drawArc函数第一个参数为圆弧所在圆的的外接矩形,第二个参数为起始角度,第三个参数为扇形顺时针滑过的角度,第四个参数如果为true时,在绘制圆弧时将圆心包括在内(用来画扇形),第五个参数为画笔
  52. paint.setShader(topLeftCornerGradient);
  53. canvas.drawArc(new RectF(0, 0, radius * 2, radius * 2), 180, 90, true,
  54. paint);
  55. paint.setShader(topRightCornerGradient);
  56. canvas.drawArc(new RectF(width - radius * 2, 0, width, radius * 2),
  57. 270, 90, true, paint);
  58. paint.setShader(bottomLeftCornerGradient);
  59. canvas.drawArc(new RectF(0, height - radius * 2, radius * 2, height),
  60. 90, 90, true, paint);
  61. paint.setShader(bottomRightCornerGradient);
  62. canvas.drawArc(new RectF(width - radius * 2, height - radius * 2,
  63. width, height), 0, 90, true, paint);
  64. return shadowBitmap;

All comments

Leave a Reply