안드로이드 custom listview를 사용하면서 parent item view에 각종 animation effect를 주고 싶을때 사용
@Override
public View getView(int position, View convertView, ViewGroup parent) {
Context context = parent.getContext();
if (convertView == null) {
LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
convertView = inflater.inflate(R.layout.customlist_item, parent, false);
}
//1) Animation 정의
Animation ...
//2) CustomListview의 parent item에 animation 정의
convertView.setAnimation(animation);
return convertView;
}| Android Q 부터 비 SDK 인터페이스 제한 하는 이유와 비 SDK 인터페이스 제한 확인하는 방법 (0) | 2019.05.10 |
|---|---|
| Pixel에 Android 이미지 설치할때 오류 fastboot too old; please download the latest version 해결하기 (0) | 2019.05.08 |
| 안드로이드에서 외부 jar file import하는 방법 (0) | 2018.12.26 |
| app의 강제종료로 인해 FCM cloud messaging 푸시를 받지 못하는 이유? (0) | 2018.09.12 |
| [ConstraintLayout] 효과적인 ConstraintLayout 사용방법 (2) | 2018.04.22 |
| [Instance app]설치 없이 네이티브앱의 사용경험을 제공할 수 있는 방법 (0) | 2018.04.22 |