Back to project page ExampleApp.
The source code is released under:
Copyright (c) 2014, Altinn All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redis...
If you think the Android project ExampleApp listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package net.simonvt.menudrawer; //from w w w .jav a2 s . c o m import android.view.View; final class ViewHelper { private ViewHelper() { } public static int getLeft(View v) { if (MenuDrawer.USE_TRANSLATIONS) { return (int) (v.getLeft() + v.getTranslationX()); } return v.getLeft(); } public static int getTop(View v) { if (MenuDrawer.USE_TRANSLATIONS) { return (int) (v.getTop() + v.getTranslationY()); } return v.getTop(); } public static int getRight(View v) { if (MenuDrawer.USE_TRANSLATIONS) { return (int) (v.getRight() + v.getTranslationX()); } return v.getRight(); } public static int getBottom(View v) { if (MenuDrawer.USE_TRANSLATIONS) { return (int) (v.getBottom() + v.getTranslationY()); } return v.getBottom(); } }