@@ -271,9 +271,25 @@ private void updateTranslation(View view, int index) {
271271 case Top :
272272 view .setTranslationY (-targetTranslation );
273273 break ;
274+ case TopAndLeft :
275+ view .setTranslationY (-targetTranslation );
276+ view .setTranslationX (-targetTranslation );
277+ break ;
278+ case TopAndRight :
279+ view .setTranslationY (-targetTranslation );
280+ view .setTranslationX (targetTranslation );
281+ break ;
274282 case Bottom :
275283 view .setTranslationY (targetTranslation );
276284 break ;
285+ case BottomAndLeft :
286+ view .setTranslationY (targetTranslation );
287+ view .setTranslationX (-targetTranslation );
288+ break ;
289+ case BottomAndRight :
290+ view .setTranslationY (targetTranslation );
291+ view .setTranslationX (targetTranslation );
292+ break ;
277293 case Left :
278294 view .setTranslationX (-targetTranslation );
279295 break ;
@@ -302,10 +318,26 @@ private void updateScale(View view, int index) {
302318 view .setScaleX (targetScale );
303319 // TODO Should handle ScaleY
304320 break ;
321+ case TopAndLeft :
322+ view .setScaleX (targetScale );
323+ // TODO Should handle ScaleY
324+ break ;
325+ case TopAndRight :
326+ view .setScaleX (targetScale );
327+ // TODO Should handle ScaleY
328+ break ;
305329 case Bottom :
306330 view .setScaleX (targetScale );
307331 // TODO Should handle ScaleY
308332 break ;
333+ case BottomAndLeft :
334+ view .setScaleX (targetScale );
335+ // TODO Should handle ScaleY
336+ break ;
337+ case BottomAndRight :
338+ view .setScaleX (targetScale );
339+ // TODO Should handle ScaleY
340+ break ;
309341 case Left :
310342 // TODO Should handle ScaleX
311343 view .setScaleY (targetScale );
0 commit comments