Home
last modified time | relevance | path

Searched refs:child (Results 1 – 25 of 50) sorted by relevance

12

/developers/build/prebuilts/gradle/BatchStepSensor/Application/src/main/java/com/example/android/batchstepsensor/cardstream/
DCardStreamLinearLayout.java164 public void onChildViewAdded(final View parent, final View child) {
166 Log.d(TAG, "child is added: " + child);
174 View view = child.findViewById(R.id.card_actionarea);
181 public void onChildViewRemoved(View parent, View child) {
182 Log.d(TAG, "child is removed: " + child);
183 mFixedViewList.remove(child);
223 public void addView(View child, int index, ViewGroup.LayoutParams params) { in addView() argument
224 if (child.getParent() == null) { in addView()
225 initCard(child, true); in addView()
226 super.addView(child, index, params); in addView()
[all …]
/developers/build/templates/CardStream/_MODULE_/src/template/java/_PACKAGE_/cardstream/
DCardStreamLinearLayout.java.ftl133 * Handle end-transition animation event of each child and launch a following animation.
159 * when a new child is added, scroll to bottom and hide action area..
164 public void onChildViewAdded(final View parent, final View child) {
166 Log.d(TAG, "child is added: " + child);
174 View view = child.findViewById(R.id.card_actionarea);
181 public void onChildViewRemoved(View parent, View child) {
182 Log.d(TAG, "child is removed: " + child);
183 mFixedViewList.remove(child);
223 public void addView(View child, int index, ViewGroup.LayoutParams params) {
224 if (child.getParent() == null) {
[all …]
DCardStreamAnimator.java.ftl41 * Define initial animation of each child which fired when a user rotate a screen.
49 * Define disappearing animation of a child which fired when a view is removed programmatically
57 * Define appearing animation of a child which fired when a view is added programmatically
65 * Define swipe-in (back to the origin position) animation of a child
76 * Define swipe-out animation of a child
/developers/samples/android/wearable/wear/WearAccessibilityApp/Wearable/src/main/java/com/example/android/wearable/wear/wearaccessibilityapp/
DScalingScrollLayoutCallback.java29 public void onLayoutFinished(View child, RecyclerView parent) { in onLayoutFinished() argument
32 float centerOffset = (child.getHeight() / 2.0f) / parent.getHeight(); in onLayoutFinished()
33 float yRelativeToCenterOffset = (child.getY() / parent.getHeight()) + centerOffset; in onLayoutFinished()
41 child.setScaleX(1 - progressToCenter); in onLayoutFinished()
42 child.setScaleY(1 - progressToCenter); in onLayoutFinished()
/developers/build/prebuilts/gradle/WearAccessibilityApp/Wearable/src/main/java/com/example/android/wearable/wear/wearaccessibilityapp/
DScalingScrollLayoutCallback.java28 public void onLayoutFinished(View child, RecyclerView parent) { in onLayoutFinished() argument
31 float centerOffset = (child.getHeight() / 2.0f) / parent.getHeight(); in onLayoutFinished()
32 float yRelativeToCenterOffset = (child.getY() / parent.getHeight()) + centerOffset; in onLayoutFinished()
40 child.setScaleX(1 - progressToCenter); in onLayoutFinished()
41 child.setScaleY(1 - progressToCenter); in onLayoutFinished()
/developers/samples/android/wearable/wear/WearNotifications/Wearable/src/main/java/com/example/android/wearable/wear/wearnotifications/
DScalingScrollLayoutCallback.java40 public void onLayoutFinished(View child, RecyclerView parent) { in onLayoutFinished() argument
43 float centerOffset = ((float) child.getHeight() / 2.0f) / (float) parent.getHeight(); in onLayoutFinished()
44 float yRelativeToCenterOffset = (child.getY() / parent.getHeight()) + centerOffset; in onLayoutFinished()
52 child.setScaleX(1 - mProgressToCenter); in onLayoutFinished()
53 child.setScaleY(1 - mProgressToCenter); in onLayoutFinished()
/developers/build/prebuilts/gradle/WearNotifications/Wearable/src/main/java/com/example/android/wearable/wear/wearnotifications/
DScalingScrollLayoutCallback.java39 public void onLayoutFinished(View child, RecyclerView parent) { in onLayoutFinished() argument
42 float centerOffset = ((float) child.getHeight() / 2.0f) / (float) parent.getHeight(); in onLayoutFinished()
43 float yRelativeToCenterOffset = (child.getY() / parent.getHeight()) + centerOffset; in onLayoutFinished()
51 child.setScaleX(1 - mProgressToCenter); in onLayoutFinished()
52 child.setScaleY(1 - mProgressToCenter); in onLayoutFinished()
/developers/samples/android/input/autofill/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/view/autofillable/
DCustomVirtualView.java157 ViewStructure child = structure.newChild(index); in onProvideAutofillVirtualStructure() local
158 child.setAutofillId(structure.getAutofillId(), item.id); in onProvideAutofillVirtualStructure()
159 child.setAutofillHints(item.hints); in onProvideAutofillVirtualStructure()
160 child.setAutofillType(item.type); in onProvideAutofillVirtualStructure()
161 child.setAutofillValue(item.getAutofillValue()); in onProvideAutofillVirtualStructure()
162 child.setDataIsSensitive(!item.sanitized); in onProvideAutofillVirtualStructure()
163 child.setFocused(item.focused); in onProvideAutofillVirtualStructure()
164 child.setVisibility(View.VISIBLE); in onProvideAutofillVirtualStructure()
165 child.setDimens(item.line.mBounds.left, item.line.mBounds.top, 0, 0, in onProvideAutofillVirtualStructure()
167 child.setId(item.id, getContext().getPackageName(), null, item.idEntry); in onProvideAutofillVirtualStructure()
[all …]
/developers/build/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/view/autofillable/
DCustomVirtualView.java157 ViewStructure child = structure.newChild(index); in onProvideAutofillVirtualStructure() local
158 child.setAutofillId(structure.getAutofillId(), item.id); in onProvideAutofillVirtualStructure()
159 child.setAutofillHints(item.hints); in onProvideAutofillVirtualStructure()
160 child.setAutofillType(item.type); in onProvideAutofillVirtualStructure()
161 child.setAutofillValue(item.getAutofillValue()); in onProvideAutofillVirtualStructure()
162 child.setDataIsSensitive(!item.sanitized); in onProvideAutofillVirtualStructure()
163 child.setFocused(item.focused); in onProvideAutofillVirtualStructure()
164 child.setVisibility(View.VISIBLE); in onProvideAutofillVirtualStructure()
165 child.setDimens(item.line.mBounds.left, item.line.mBounds.top, 0, 0, in onProvideAutofillVirtualStructure()
167 child.setId(item.id, getContext().getPackageName(), null, item.idEntry); in onProvideAutofillVirtualStructure()
[all …]
/developers/samples/android/ui/views/Elevation/ElevationDrag/Application/src/main/java/com/example/android/elevationdrag/
DDragFrameLayout.java67 public boolean tryCaptureView(View child, int pointerId) { in DragFrameLayout()
68 return mDragViews.contains(child); in DragFrameLayout()
77 public int clampViewPositionHorizontal(View child, int left, int dx) { in DragFrameLayout()
82 public int clampViewPositionVertical(View child, int top, int dy) { in DragFrameLayout()
/developers/build/prebuilts/gradle/ElevationDrag/Application/src/main/java/com/example/android/elevationdrag/
DDragFrameLayout.java67 public boolean tryCaptureView(View child, int pointerId) { in DragFrameLayout()
68 return mDragViews.contains(child); in DragFrameLayout()
77 public int clampViewPositionHorizontal(View child, int left, int dx) { in DragFrameLayout()
82 public int clampViewPositionVertical(View child, int top, int dy) { in DragFrameLayout()
/developers/build/prebuilts/gradle/AutofillFramework/kotlinApp/
DREADME.md24 involved, but the use of custom views and views with virtual child views requires more work.
51 virtual children, meaning some autofillable child views are not known to the View hierarchy to be
52 child views. Supporting autofill on these child views is a little more involved.
74 virtual child views. The following code example shows the `View` method you have to override in
85 // Traverse through the view hierarchy, including virtual child views. For each view, we
89 Log.d(TAG, "Adding new child at index $index: $item")
90 val child = structure.newChild(index)
91 child.setAutofillId(structure, item.id)
92 child.setAutofillHints(item.hints)
93 child.setAutofillType(item.type)
[all …]
/developers/samples/android/input/autofill/AutofillFramework/kotlinApp/
DREADME.md24 involved, but the use of custom views and views with virtual child views requires more work.
51 virtual children, meaning some autofillable child views are not known to the View hierarchy to be
52 child views. Supporting autofill on these child views is a little more involved.
74 virtual child views. The following code example shows the `View` method you have to override in
85 // Traverse through the view hierarchy, including virtual child views. For each view, we
89 Log.d(TAG, "Adding new child at index $index: $item")
90 val child = structure.newChild(index)
91 child.setAutofillId(structure, item.id)
92 child.setAutofillHints(item.hints)
93 child.setAutofillType(item.type)
[all …]
/developers/build/prebuilts/gradle/AutofillFramework/
DREADME.md18 involved, but the use of custom views and views with virtual child views requires more work.
45 virtual children, meaning some autofillable child views are not known to the View hierarchy to be
46 child views. Supporting autofill on these child views is a little more involved.
68 virtual child views. The following code example shows the `View` method you have to override in
79 // Traverse through the view hierarchy, including virtual child views. For each view, we
83 ViewStructure child = structure.newChild(index);
84 child.setAutofillId(structure, item.id);
85 child.setAutofillHints(item.hints);
86 child.setAutofillType(item.type);
87 child.setDataIsSensitive(!item.sanitized);
[all …]
/developers/samples/android/deprecated/wearable/wear/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/util/
DDividerItemDecoration.java42 View child = parent.getChildAt(i); in onDraw() local
44 int top = child.getBottom(); in onDraw()
/developers/build/prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/util/
DDividerItemDecoration.java42 View child = parent.getChildAt(i); in onDraw() local
44 int top = child.getBottom(); in onDraw()
/developers/samples/android/ui/text/TextStyling-Kotlin/app/src/main/java/com/android/example/text/styling/renderer/
DMarkdownBuilder.kt69 for (child in element.elements) { in <lambda>() method
70 buildElement(child, builder) in <lambda>()
/developers/samples/android/common/src/java/com/example/android/common/view/
DSlidingTabStrip.java158 View child = getChildAt(i); in onDraw() local
160 canvas.drawLine(child.getRight(), separatorTop, child.getRight(), in onDraw()
/developers/build/prebuilts/gradle/SwipeRefreshListFragment/Application/src/main/java/com/example/android/common/view/
DSlidingTabStrip.java158 View child = getChildAt(i); in onDraw() local
160 canvas.drawLine(child.getRight(), separatorTop, child.getRight(), in onDraw()
/developers/build/prebuilts/gradle/SwipeRefreshMultipleViews/Application/src/main/java/com/example/android/common/view/
DSlidingTabStrip.java158 View child = getChildAt(i); in onDraw() local
160 canvas.drawLine(child.getRight(), separatorTop, child.getRight(), in onDraw()
/developers/build/prebuilts/gradle/SwipeRefreshLayoutBasic/Application/src/main/java/com/example/android/common/view/
DSlidingTabStrip.java158 View child = getChildAt(i); in onDraw() local
160 canvas.drawLine(child.getRight(), separatorTop, child.getRight(), in onDraw()
/developers/build/prebuilts/gradle/SlidingTabsColors/Application/src/main/java/com/example/android/common/view/
DSlidingTabStrip.java158 View child = getChildAt(i); in onDraw() local
160 canvas.drawLine(child.getRight(), separatorTop, child.getRight(), in onDraw()
/developers/build/prebuilts/gradle/BasicTransition/Application/src/main/java/com/example/android/common/view/
DSlidingTabStrip.java158 View child = getChildAt(i); in onDraw() local
160 canvas.drawLine(child.getRight(), separatorTop, child.getRight(), in onDraw()
/developers/build/prebuilts/gradle/SlidingTabsBasic/Application/src/main/java/com/example/android/common/view/
DSlidingTabStrip.java158 View child = getChildAt(i); in onDraw() local
160 canvas.drawLine(child.getRight(), separatorTop, child.getRight(), in onDraw()
/developers/build/prebuilts/gradle/DirectBoot/Application/src/main/java/com/example/android/directboot/alarms/
DAlarmAdapter.java179 View child = parent.getChildAt(i); in onDrawOver() local
180 RecyclerView.LayoutParams params = (RecyclerView.LayoutParams) child in onDrawOver()
182 int top = child.getBottom() + params.bottomMargin; in onDrawOver()

12