Loading core/java/android/view/View.java +19 −12 Original line number Diff line number Diff line Loading @@ -593,12 +593,12 @@ import java.util.function.Predicate; * a single tag using the {@link android.R.styleable#View_tag android:tag} * attribute or multiple tags using the {@code <tag>} child element: * <pre> * <View ... * <View ... * android:tag="@string/mytag_value" /> * <View ...> * <tag android:id="@+id/mytag" * <View ...> * <tag android:id="@+id/mytag" * android:value="@string/mytag_value" /> * </View> * </View> * </pre> * </p> * <p> Loading Loading @@ -628,11 +628,11 @@ import java.util.function.Predicate; * {@link android.R.styleable#Theme_colorAccent android:colorAccent} defined on * the inflation context's theme (e.g. the Activity theme) will be preserved. * <pre> * <LinearLayout * <LinearLayout * ... * android:theme="@android:theme/ThemeOverlay.Material.Dark"> * <View ...> * </LinearLayout> * <View ...> * </LinearLayout> * </pre> * </p> * Loading Loading @@ -7516,15 +7516,22 @@ public class View implements Drawable.Callback, KeyEvent.Callback, * <li>Passing the actual value to the equivalent setter in the view. * </ol> * * <p>For example, a text-field view would call: * <p>For example, a text-field view could implement the method this way: * * <pre class="prettyprint"> * @Override * public void autofill(AutofillValue value) { * if (!value.isText() || !this.isEditable()) { * return; * } * CharSequence text = value.getTextValue(); * if (text != null) { * setText(text); * this.setText(text); * } * } * </pre> * * <p>If the value is updated asyncronously the next call to * <p>If the value is updated asynchronously the next call to * {@link AutofillManager#notifyValueChanged(View)} must happen <u>after</u> the value was * changed to the autofilled value. If not, the view will not be considered autofilled. * Loading Loading
core/java/android/view/View.java +19 −12 Original line number Diff line number Diff line Loading @@ -593,12 +593,12 @@ import java.util.function.Predicate; * a single tag using the {@link android.R.styleable#View_tag android:tag} * attribute or multiple tags using the {@code <tag>} child element: * <pre> * <View ... * <View ... * android:tag="@string/mytag_value" /> * <View ...> * <tag android:id="@+id/mytag" * <View ...> * <tag android:id="@+id/mytag" * android:value="@string/mytag_value" /> * </View> * </View> * </pre> * </p> * <p> Loading Loading @@ -628,11 +628,11 @@ import java.util.function.Predicate; * {@link android.R.styleable#Theme_colorAccent android:colorAccent} defined on * the inflation context's theme (e.g. the Activity theme) will be preserved. * <pre> * <LinearLayout * <LinearLayout * ... * android:theme="@android:theme/ThemeOverlay.Material.Dark"> * <View ...> * </LinearLayout> * <View ...> * </LinearLayout> * </pre> * </p> * Loading Loading @@ -7516,15 +7516,22 @@ public class View implements Drawable.Callback, KeyEvent.Callback, * <li>Passing the actual value to the equivalent setter in the view. * </ol> * * <p>For example, a text-field view would call: * <p>For example, a text-field view could implement the method this way: * * <pre class="prettyprint"> * @Override * public void autofill(AutofillValue value) { * if (!value.isText() || !this.isEditable()) { * return; * } * CharSequence text = value.getTextValue(); * if (text != null) { * setText(text); * this.setText(text); * } * } * </pre> * * <p>If the value is updated asyncronously the next call to * <p>If the value is updated asynchronously the next call to * {@link AutofillManager#notifyValueChanged(View)} must happen <u>after</u> the value was * changed to the autofilled value. If not, the view will not be considered autofilled. * Loading