-3
이 코드를 읽는 법을 모르겠습니다. if/else 문과 동등한 코드는 무엇입니까?"?" operator
leftPanel.getLayoutParams().width = interpolatedTime == 1
? ViewGroup.LayoutParams.WRAP_CONTENT
: (int)(targetWidth * interpolatedTime);
참조 http://en.wikipedia.org/wiki/%3F:#Java – Michael
매우 열심히 검색하려고하지 않았습니다. –
간단히 말해서 :'부울 표현식? 값이 참일 경우 : 값이 거짓 인 경우 – Bubletan