Back to project page Calma.
The source code is released under:
Apache License
If you think the Android project Calma 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 com.espian.showcaseview.targets; /*from ww w . ja v a 2 s. c om*/ import android.app.Activity; import android.graphics.Point; import android.view.ViewParent; import com.espian.showcaseview.actionbar.ActionBarViewWrapper; import com.espian.showcaseview.actionbar.reflection.BaseReflector; public class ActionItemTarget implements Target { private final Activity mActivity; private final int mItemId; ActionBarViewWrapper mActionBarWrapper; public ActionItemTarget(Activity activity, int itemId) { mActivity = activity; mItemId = itemId; } @Override public Point getPoint() { setUp(); return new ViewTarget(mActionBarWrapper.getActionItem(mItemId)).getPoint(); } protected void setUp() { BaseReflector reflector = BaseReflector.getReflectorForActivity(mActivity); ViewParent p = reflector.getActionBarView(); //ActionBarView mActionBarWrapper = new ActionBarViewWrapper(p); } }