Java Code Examples for android.view.View.getTransitionName()

The following are Jave code examples for showing how to use getTransitionName() of the android.view.View class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: boohee_v5.6   File: FragmentTransitionCompat21.java   Source Code and License Vote up 5 votes
public static void findNamedViews(Map<String, View> namedViews, View view) {
    if (view.getVisibility() == 0) {
        String transitionName = view.getTransitionName();
        if (transitionName != null) {
            namedViews.put(transitionName, view);
        }
        if (view instanceof ViewGroup) {
            ViewGroup viewGroup = (ViewGroup) view;
            int count = viewGroup.getChildCount();
            for (int i = 0; i < count; i++) {
                findNamedViews(namedViews, viewGroup.getChildAt(i));
            }
        }
    }
}
 
Example 2
Project: letv   File: ViewCompatLollipop.java   Source Code and License Vote up 4 votes
public static String getTransitionName(View view) {
    return view.getTransitionName();
}
 
Example 3
Project: mvvm-template   File: ViewHelper.java   Source Code and License Vote up 4 votes
@SuppressWarnings("WeakerAccess") @Nullable public static String getTransitionName(@NonNull View view) {
    return !InputHelper.isEmpty(view.getTransitionName()) ? view.getTransitionName() : null;
}
 
Example 4
Project: boohee_v5.6   File: ViewCompatLollipop.java   Source Code and License Vote up 4 votes
public static String getTransitionName(View view) {
    return view.getTransitionName();
}
 
Example 5
Project: boohee_v5.6   File: FragmentTransitionCompat21.java   Source Code and License Vote up 4 votes
public static String getTransitionName(View view) {
    return view.getTransitionName();
}
 
Example 6
Project: android-instant-apps   File: DetailSharedElementEnterCallback.java   Source Code and License Vote up 2 votes
/**
 * Puts a shared element to transitions and names.
 *
 * @param names The names for this transition.
 * @param sharedElements The elements for this transition.
 * @param view The view to add.
 */
private void mapSharedElement(List<String> names, Map<String, View> sharedElements, View view) {
    String transitionName = view.getTransitionName();
    names.add(transitionName);
    sharedElements.put(transitionName, view);
}