Open
Conversation
* Refactor swipe-to-dismiss examples - Update TodoItem data class for better readability - Refactor the swipe item to improve the overall performance and readability - Refactor SwipeItemExample for better readability - Refactor SwipeCardItemExample and rename it to SwipeItemWithAnimationExample for better description - Modify the swipe to dismiss animation for better user experience - Add comments to make code easy to read * Apply Spotless --------- Co-authored-by: JolandaVerhoef <6952116+JolandaVerhoef@users.noreply.github.com>
* Add new and updated accessibility DAC snippets * Import hideFromAccessibility * Apply Spotless * Revert removal of some existing a11y snippets
* Migrate existing snippets to alpha04 * Add snippet for Session resume * Add SpatialExternalSurface snippet for xr-alpha04 and update SNAPSHOT build version. * Fix up Subspaces and Environments for alpha04 * Update SpatialExternalSurface example for xr-alpha04 * Add comments for SpatialExternalSurface in xr-alpha04 * Fix Anchor configuration snippet * Migrate to alpha04 (from snapshot build) --------- Co-authored-by: devbridie <442644+devbridie@users.noreply.github.com> Co-authored-by: Jan Kleinert <jkleinert@google.com>
* 🤖 Update Dependencies * revert the window dep update * Apply Spotless * Revert the revert * Suppress requiresSdk warnings * Suppress requiresSdk warnings * Revert xr deps --------- Co-authored-by: Simona Milanovic <anomis@google.com> Co-authored-by: simona-anomis <35065668+simona-anomis@users.noreply.github.com>
* Update to 1.5.0-beta01 Change-Id: I5acad074c6dc067b10d37ff1416c671e7c9c91b9 * Apply Spotless --------- Co-authored-by: kul3r4 <820891+kul3r4@users.noreply.github.com>
… completeness (#517) * Fix scrollState for List and expand the snippet to show kore code for completeness * Apply Spotless --------- Co-authored-by: kul3r4 <820891+kul3r4@users.noreply.github.com>
* Properly handle recycling of RecomposeHighlighterModifier After migrating to be Node based, it's possible the Modifier node can be reused. For example, when scrolling in a LazyColumn the nodes of items scrolled off the viewport may be recycled and used with items scrolling into the viewport. When this occurs, the composition count needs to be reset. Otherwise, it may look like the item scrolling into the viewport has recomposed more than it actually has. * Fix code style
* State based TF snippets * Apply Spotless * updates * Apply Spotless * Update StateBasedText.kt * Update StateBasedText.kt * Update StateBasedText.kt * Update StateBasedText.kt * Apply Spotless
* Adding icon button snippets * Apply Spotless * Changing M3 extended icons to hardcoded drawables in IconButton code * Apply Spotless * Adding region tags * Remove unused import * Updating to hardcoded drawables * Apply Spotless --------- Co-authored-by: wardlauren <203715894+wardlauren@users.noreply.github.com>
* Adding snippet for MV-HEVC video playback * updating the resizable snippet to include ResizeListener
* Adding TextField migration snippets This is for the new version of https://developer.android.com/develop/ui/compose/text/user-input * Update TextFieldMigrationSnippets.kt optimize import * Apply Spotless --------- Co-authored-by: Halil Ozercan <halilibo@google.com>
* Add state based Autofill snippets * Update AutofillSnippets.kt * Apply Spotless
* Update StateBasedText.kt Update state based TF snippets * Apply Spotless * Update StateBasedText.kt * Apply Spotless
* Add snippet that demonstrates how to detect a secondary hand * Add snippet to demonstrate how to detect a basic stop gesture
* Change SceneViewer intent setup
* updating setSubspaceContent snippet * Update Activity --------- Co-authored-by: Dereck Bridie <devbridie@users.noreply.github.com>
* Update android_system_bar_protection_kotlin to change alpha * show less code in DAC * use Color.rgb instead
* Fix code to also support external apps * Sort chronologically the snippets * Move the Activity to be used without the nullability check --------- Co-authored-by: Rob Orgiu <robertoorgiu@google.com>
* Add comment to clarify that both callbacks can be used * Apply Spotless --------- Co-authored-by: Rob Orgiu <robertoorgiu@google.com> Co-authored-by: tiwiz <2534841+tiwiz@users.noreply.github.com>
* Adds Watch Face Push validation library snippet * Removed jar * Removes unnecessary statement
9374ceb to
4892ed7
Compare
4892ed7 to
045ab3d
Compare
* Adds ChannelClient snippet * Add additional ChannelClient snippet
045ab3d to
1a654bf
Compare
* Update SignInWithGoogleFunctions.kt * Remove unused parameter for nonce
* Sync to Feb release of Android XR libraries * Change usages of Config.* symbols
* Add snippet for AppFunctions * Apply Spotless --------- Co-authored-by: keyboardsurfer <336005+keyboardsurfer@users.noreply.github.com>
* add in arCore glasses snippets * add in arCore glasses snippets * update depecreated naming for DeviceTrackingMode and GeospatialMode * fix: use explicit Config constructor to avoid restricted API
* fix(deps): update all dependencies * fix: correct capitalization of isDescribedByKDoc The `isDescribedByKdoc` parameter was renamed to `isDescribedByKDoc` in androidx.appfunctions:appfunctions version 1.0.0-alpha08 to match camel-casing standards. This commit updates the parameter name in `AppFunctionsApiSnippets.kt` to resolve the compilation error. --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Don Turner <donturner@google.com>
* NavEventSnippets as per the Doc * Apply Spotless * NavEventSnippets Added the New class for the Animation. * Apply Spotless * Resolved the GIT comments * Resolved the TODO comment in the Nav3Snippets * Resolved the GIT comment in the Nav3Snippets * There are two additional improvements made to the snippet. First, the gesture animation is now directly driven by `backProgress`, which simplifies the animation logic and makes the relationship between the gesture progress and the UI transformation clearer. Second, `backProgress` and `swipeEdge` are now derived directly from `backEventState` instead of being stored in mutable Compose state. This avoids mutating state during composition, reduces unnecessary state management, and keeps the snippet simpler and easier to follow. Overall, these changes make the example more straightforward, improve readability, and align the snippet with recommended Compose patterns. * There are two additional improvements made to the snippet. First, the gesture animation is now directly driven by `backProgress`, which simplifies the animation logic and makes the relationship between the gesture progress and the UI transformation clearer. Second, `backProgress` and `swipeEdge` are now derived directly from `backEventState` instead of being stored in mutable Compose state. This avoids mutating state during composition, reduces unnecessary state management, and keeps the snippet simpler and easier to follow. Overall, these changes make the example more straightforward, improve readability, and align the snippet with recommended Compose patterns. * There are the additional improvements made to the snippet as per the suggestions given. * There are the additional improvements made to the snippet to define a NavigationEventHandler instance instead of using TODO() * Remove predictiveback/Nav3Snippets.kt * Remove unused SuppressLint and minor formatting fixes --------- Co-authored-by: praneethatchana <247144440+praneethatchana@users.noreply.github.com> Co-authored-by: Ben Sagmoe <bsagmoe@google.com> Co-authored-by: Ash <83780687+ashnohe@users.noreply.github.com>
* add in projected device permissions snippets and project hardware access snippets * address review comments * add permission denial handling
* Added scrollable snippets * 1. Removed pexels_demo.jpg and used the existing image. 2. Excluded un-related code snippets using in the output. 3. Addressed comments on the PR * Addressed comments on PR * Addressed comments on PR * fixed end tag issue
* Updates modifiers used in Wear M3 1.6.0 * Update wear/src/main/java/com/example/wear/snippets/m3/list/List.kt Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --------- Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
* Add contacts module (including Contact Picker example) * Add contacts module (including Contact Picker example) * Clean up theme boilerplate and update .gitignore - Remove commented-out default overrides in `Theme.kt` and `Type.kt` - Add `gradle/gradle-daemon-jvm.properties` to `.gitignore` * Refactor contact aggregation in ContactPickerActivity * Replace `getOrPut` and mutable list manipulation with data class `copy()` and immutable list operations * Simplify the logic for adding emails and phones to contacts during cursor iteration * Update contact picker snippets and add single phone selection - Rename existing snippet tags for single and multiple contact selection for better clarity - Add a new example and snippet for single phone number selection - Add a "Single phone only" button to `ContactPickerActivity` to demonstrate the new functionality
* sync xr snippets to march release of JXR libraries * fix jxr march release issues * update jxr glimmer to alpha 9 * change back region tag
Refactor & simplify StatusBarProtection code sample to use inset size modifiers ensuring gradient draws 1.2x of the status bar height.
Create e2e snippet
Co-authored-by: Kat Kuan <kkuan2011@users.noreply.github.com>
Replaced instances of `[END_EXCLUDE silent]` with `[END_EXCLUDE]` to standardize the documentation extraction tags. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
* Add migration snippets * Apply Spotless
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update
latestwithmain