0
안드로이드 에뮬레이터 화면 손상 내 Samsung Galaxy S7 Edge에서 실행되는 것으로 보이는 안드로이드 응용 프로그램이 있지만, 배경을 다시 그리면 손상 될 수있는 에뮬레이터가 2 번 켜집니다. 누구나 아이디어가 있다면 스크린 샷과 코드가 있습니다. 내가보기에 invalidate()를 호출했지만 그 중 도움이되지 않습니다. 나는 아래 이미지에서 검색 막대를 조정하면 여기에 screenshot그림을 그릴 때
public void onProgressChanged(SeekBar seekBar, int progress,boolean fromUser) {
// TODO Auto-generated method stub
redValue=progress;
String colorvalue = "Red: " + redValue + " Green: " + greenValue + " Blue: " + blueValue + " Brightness: " + brightValue + " Saturation: " + satValue;
progressTextView.setText(colorvalue);
int[] color = returnRGB(redValue,greenValue,blueValue);
progressTextView.setTextColor(Color.rgb(color[0],color[1],color[2]));
hueValue = getHue(color[0],color[1],color[2]);
String hexColor = String.format("%02x%02x%02x%02x",255, color[0], color[1], color[2]).toUpperCase();
int decimalcolor = (int) Long.parseLong(hexColor, 16);
int [] gradientColor = new int[4];
gradientColor[0]= startColor; //these values will be changed by the slider
gradientColor[1]=decimalColor;
gradientColor[2]=decimalColor;
gradientColor[3]=endColor;
background = new GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM, color);
background.setGradientType(GradientDrawable.RADIAL_GRADIENT);
background.setGradientRadius(returnGradientRadius(brightValue));
background.setGradientCenter(0,0);
background.setShape(GradientDrawable.RECTANGLE);
background.setColors(gradientColor);
backgroundView.setBackground(background);
submitButton.setBackground(background);
}
});
, 당신은 손상을 볼 수 있습니다. 이것은 라이브 장치에서는 발생하지 않지만 실제 장치를 정확하게 시뮬레이트하지 않으면 에뮬레이터에서 테스트하는 시점이 무엇입니까? 아니면 이것이 살아있는 Pixel 2에서 작동하지 않을 수도 있습니까? 내가 뭘 놓치고 있니?
하드웨어 가속을 사용하고 있습니까? (그렇다면 에뮬레이터가 이것에 대해 설정되어 있습니까?) – Raykud
HAXM이 설치되어 있습니다. 하드웨어 가속을 소프트웨어와 하드웨어에 모두 설정하려고 시도했으며 GLES 2.0 및 1.1 호환성 옵션을 모두 사용해 보았습니다. 제가 누락 된 것이 없습니까? 아니면 제가 시도해 볼 것을 추천 할 수 있습니까? – CBMurphy