Lines Matching refs:target

102  *                 <target android:targetId="@id/grayscaleContainer"/>
113 * takes a set of {code target} tags, each of which lists a specific <code>targetId</code> which
222 // Number of per-target instances of this Transition currently running. This count is
256 * Constructs a Transition object with no target objects. A transition with
257 * no targets defaults to running on all target objects in the scene hierarchy
258 * (if the transition is not contained in a TransitionSet), or all target
446 * values that the transition may need to set up initial target values
450 * want to set initial values on target views prior to the overall
457 * on all target views, so a Transition that wants to animate from a
461 * the transition needs to run on the given target and start/end values.
472 * <p>The method is called for every applicable target object, which is
476 * @param startValues The values for a specific target in the start scene.
477 * @param endValues The values for the target in the end scene.
690 * possible target views, is called with the entire set of start/end
805 * the Transition has no target/targetId list (the default, in which
807 * the given view is in the target list or the view id is in the
808 * targetId list. If the target parameter is null, then the target list
812 boolean isValidTarget(View target) {
813 int targetId = target.getId();
817 if (mTargetExcludes != null && mTargetExcludes.contains(target)) {
824 if (type.isInstance(target)) {
829 if (mTargetNameExcludes != null && ViewCompat.getTransitionName(target) != null) {
830 if (mTargetNameExcludes.contains(ViewCompat.getTransitionName(target))) {
839 if (mTargetIds.contains(targetId) || mTargets.contains(target)) {
842 if (mTargetNames != null && mTargetNames.contains(ViewCompat.getTransitionName(target))) {
847 if (mTargetTypes.get(i).isInstance(target)) {
932 * view.getRotation())</code>. The target view will already be stored
961 * view.getRotation())</code>. The target view will already be stored
970 * Sets the target view instances that this Transition is interested in
977 * <p>The target list is like the {@link #addTarget(int) targetId}
985 * necessarily have ids set on them, then the target list of views may be more
988 * @param target A View on which the Transition will act, must be non-null.
989 * @return The Transition to which the target is added.
996 public Transition addTarget(@NonNull View target) {
997 mTargets.add(target);
1002 * Adds the id of a target view that this Transition is interested in
1012 * @param targetId The id of a target view, must be a positive number.
1028 * Adds the transitionName of a target view that this Transition is interested in
1037 * @param targetName The transitionName of a target view, must be non-null.
1038 * @return The Transition to which the target transitionName is added.
1054 * Adds the Class of a target view that this Transition is interested in
1065 * @return The Transition to which the target class was added.
1084 * Removes the given target from the list of targets that this Transition
1087 * @param target The target view, must be non-null.
1088 * @return Transition The Transition from which the target is removed.
1094 public Transition removeTarget(@NonNull View target) {
1095 mTargets.remove(target);
1103 * @param targetId The id of a target view, must be a positive number.
1121 * @param targetName The transitionName of a target view, must not be null.
1136 * Removes the given target from the list of targets that this Transition
1139 * @param target The type of the target view, must be non-null.
1140 * @return Transition The Transition from which the target is removed.
1146 public Transition removeTarget(@NonNull Class target) {
1148 mTargetTypes.remove(target);
1157 private static <T> ArrayList<T> excludeObject(ArrayList<T> list, T target, boolean exclude) {
1158 if (target != null) {
1160 list = ArrayListManager.add(list, target);
1162 list = ArrayListManager.remove(list, target);
1169 * Whether to add the given target to the list of targets to exclude from this
1170 * transition. The <code>exclude</code> parameter specifies whether the target
1174 * a view hierarchy while skipping target views that should not be part of
1180 * @param target The target to ignore when running this transition.
1181 * @param exclude Whether to add the target to or remove the target from the
1189 public Transition excludeTarget(@NonNull View target, boolean exclude) {
1190 mTargetExcludes = excludeView(mTargetExcludes, target, exclude);
1195 * Whether to add the given id to the list of target ids to exclude from this
1196 * transition. The <code>exclude</code> parameter specifies whether the target
1200 * a view hierarchy while skipping target views that should not be part of
1206 * @param targetId The id of a target to ignore when running this transition.
1207 * @param exclude Whether to add the target to or remove the target from the
1221 * Whether to add the given transitionName to the list of target transitionNames to exclude
1222 * from this transition. The <code>exclude</code> parameter specifies whether the target
1226 * a view hierarchy while skipping target views that should not be part of
1232 * @param targetName The name of a target to ignore when running this transition.
1233 * @param exclude Whether to add the target to or remove the target from the
1247 * Whether to add the children of given target to the list of target children
1249 * whether the target should be added to or removed from the excluded list.
1252 * a view hierarchy while skipping target views that should not be part of
1258 * @param target The target to ignore when running this transition.
1259 * @param exclude Whether to add the target to or remove the target from the
1267 public Transition excludeChildren(@NonNull View target, boolean exclude) {
1268 mTargetChildExcludes = excludeView(mTargetChildExcludes, target, exclude);
1275 * the children of the target should be added to or removed from the excluded list.
1281 * a view hierarchy while skipping target views that should not be part of
1287 * @param targetId The id of a target whose children should be ignored when running
1289 * @param exclude Whether to add the target to or remove the target from the
1321 private ArrayList<View> excludeView(ArrayList<View> list, View target, boolean exclude) {
1322 if (target != null) {
1324 list = ArrayListManager.add(list, target);
1326 list = ArrayListManager.remove(list, target);
1334 * transition. The <code>exclude</code> parameter specifies whether the target
1338 * a view hierarchy while skipping target views that should not be part of
1345 * @param exclude Whether to add the target type to or remove it from the
1346 * current list of excluded target types.
1361 * specifies whether the target type should be added to or removed from
1365 * a view hierarchy while skipping target views that should not be part of
1372 * @param exclude Whether to add the target type to or remove it from the
1373 * current list of excluded target types.
1401 * Returns the array of target IDs that this transition limits itself to
1407 * @return the list of target IDs
1415 * Returns the array of target views that this transition limits itself to
1421 * @return the list of target views
1429 * Returns the list of target transitionNames that this transition limits itself to
1436 * @return the list of target transitionNames
1444 * Returns the list of target transitionNames that this transition limits itself to
1451 * @return the list of target Types
2229 * For example, a ChangeBounds running on the same target view as another ChangeBounds
2306 * transition to restore state on target objects which was set at
2318 * transition to restore state on target objects which was set at