# Fragment

Published articles for Fragment.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Send RecyclerView's scroll events to a compose parent

DevFeed: [Send RecyclerView's scroll events to a compose parent](<https://devfeed.tech/articles/send-recyclerview-s-scroll-events-to-a-compose-parent-28716.md>)

Original publisher: [Read original article](<https://le0nidas.gr/2025/08/10/send-recyclerviews-scroll-events-to-a-compose-parent/>)

Author: Leonidas Partsas

Published: 2025-08-10T06:58:04Z

Content type: tutorial

Language: en

Sources: [le0nidas](<https://devfeed.tech/sources/le0nidas.md>)

Topics: [Compose](<https://devfeed.tech/topics/compose.md>), [recyclerview](<https://devfeed.tech/topics/recyclerview.md>), [screen](<https://devfeed.tech/topics/screen.md>), [App](<https://devfeed.tech/topics/app.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [app](<https://devfeed.tech/tags/app.md>), [compose](<https://devfeed.tech/tags/compose.md>), [enter-always-behavior](<https://devfeed.tech/tags/enter-always-behavior.md>), [featured](<https://devfeed.tech/tags/featured.md>), [fragment](<https://devfeed.tech/tags/fragment.md>), [fragments](<https://devfeed.tech/tags/fragments.md>), [jetpack-compose](<https://devfeed.tech/tags/jetpack-compose.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [nested-scroll](<https://devfeed.tech/tags/nested-scroll.md>), [recyclerview](<https://devfeed.tech/tags/recyclerview.md>), [screen](<https://devfeed.tech/tags/screen.md>), [top-app-bar](<https://devfeed.tech/tags/top-app-bar.md>)

### AI overview

This tutorial explains how to send RecyclerView scroll events to a Jetpack Compose parent during a gradual migration from fragment-based Android screens. It describes connecting Compose nested-scroll behavior to a RecyclerView using a NestedScrollDispatcher so a Compose top bar can respond to scrolling.

### Source excerpt

We have an app that relies heavily on fragments. Every screen is an activity that hosts a fragment that hosts a recycler view: We want to start migrating the screens to compose by keeping the screen's content and placing it in a compose environment. This means that our activities will call setContent { } instead ... Continue reading Send RecyclerView's scroll events to a compose parent ->

## Jetpack Compose: A use case for view interop migration strategy - Jigar Brahmbhatt

DevFeed: [Jetpack Compose: A use case for view interop migration strategy - Jigar Brahmbhatt](<https://devfeed.tech/articles/jetpack-compose-a-use-case-for-view-interop-migration-strategy-jigar-brahmbhatt-38227.md>)

Original publisher: [Read original article](<https://touchlab.co/jetpack-compose-a-use-case-for-view-interop-migration-strategy>)

Published: 2023-02-08T12:00:26Z

Content type: tutorial

Language: en

Sources: [Touchlab | Enterprise Mobile Innovation & Development](<https://devfeed.tech/sources/touchlab-enterprise-mobile-innovation-development.md>)

Topics: [Jetpack Compose](<https://devfeed.tech/topics/jetpack-compose.md>), [migration](<https://devfeed.tech/topics/migration.md>), [SDK](<https://devfeed.tech/topics/sdk.md>), [Android](<https://devfeed.tech/topics/android.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [compose](<https://devfeed.tech/tags/compose.md>), [fragment](<https://devfeed.tech/tags/fragment.md>), [fragments](<https://devfeed.tech/tags/fragments.md>), [interop](<https://devfeed.tech/tags/interop.md>), [jetpack-compose](<https://devfeed.tech/tags/jetpack-compose.md>), [layout](<https://devfeed.tech/tags/layout.md>), [migration](<https://devfeed.tech/tags/migration.md>), [navigation](<https://devfeed.tech/tags/navigation.md>), [redesign](<https://devfeed.tech/tags/redesign.md>), [sample](<https://devfeed.tech/tags/sample.md>), [sdk](<https://devfeed.tech/tags/sdk.md>), [testing](<https://devfeed.tech/tags/testing.md>)

### AI overview

This article describes using Jetpack Compose with existing Android views and fragments during a sample app redesign for an SDK. It explains a Fragments-in-Compose approach, Compose navigation, SharedPreferences reuse, and adjustments needed for UI testing.

### Source excerpt

We had an opportunity to redesign the sample app for an SDK we're developing, using Jetpack Compose as part of our interop migration strategy.

## Fragment Lifecycles in the Age of Jetpack

DevFeed: [Fragment Lifecycles in the Age of Jetpack](<https://devfeed.tech/articles/fragment-lifecycles-in-the-age-of-jetpack-27062.md>)

Original publisher: [Read original article](<https://zsmb.co/fragment-lifecycles-in-the-age-of-jetpack/>)

Author: Márton Braun

Published: 2020-06-18T16:00:00Z

Content type: tutorial

Language: en

Sources: [zsmb.co](<https://devfeed.tech/sources/zsmb-co.md>)

Topics: [Jetpack](<https://devfeed.tech/topics/jetpack.md>), [android-development](<https://devfeed.tech/topics/android-development.md>), [Android](<https://devfeed.tech/topics/android.md>), [ui](<https://devfeed.tech/topics/ui.md>), [configuration](<https://devfeed.tech/topics/configuration.md>), [Coroutines](<https://devfeed.tech/topics/coroutines.md>), [App](<https://devfeed.tech/topics/app.md>), [Dark Mode](<https://devfeed.tech/topics/dark-mode.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [android-development](<https://devfeed.tech/tags/android-development.md>), [code](<https://devfeed.tech/tags/code.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [coroutines](<https://devfeed.tech/tags/coroutines.md>), [dark-mode](<https://devfeed.tech/tags/dark-mode.md>), [fragment](<https://devfeed.tech/tags/fragment.md>), [fragments](<https://devfeed.tech/tags/fragments.md>), [jetpack](<https://devfeed.tech/tags/jetpack.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [lifecycle](<https://devfeed.tech/tags/lifecycle.md>), [livedata](<https://devfeed.tech/tags/livedata.md>), [marton-braun](<https://devfeed.tech/tags/marton-braun.md>), [scope](<https://devfeed.tech/tags/scope.md>), [ui](<https://devfeed.tech/tags/ui.md>), [zsmb](<https://devfeed.tech/tags/zsmb.md>), [zsmb-co](<https://devfeed.tech/tags/zsmb-co.md>), [zsmb13](<https://devfeed.tech/tags/zsmb13.md>), [zsmbco](<https://devfeed.tech/tags/zsmbco.md>)

### AI overview

This article explains Android Fragment lifecycles in the Jetpack ecosystem, covering the Fragment instance lifecycle and the nested view lifecycle. It describes recreation during state restoration, configuration changes, and process death, along with lifecycle methods, state handling, and resource management.

### Source excerpt

Fragments have... Complicated lifecycles, to say the least. Let's take a look at these, and how they all fit into the world of Jetpack today, with LifecycleOwners, LiveData, and coroutines.

## Let's Review: Pokedex

DevFeed: [Let's Review: Pokedex](<https://devfeed.tech/articles/let-s-review-pokedex-27070.md>)

Original publisher: [Read original article](<https://zsmb.co/lets-review-pokedex/>)

Author: Márton Braun

Published: 2020-01-07T14:00:00Z

Content type: article

Language: en

Sources: [zsmb.co](<https://devfeed.tech/sources/zsmb-co.md>)

Topics: [Code review](<https://devfeed.tech/topics/code-review.md>), [Android](<https://devfeed.tech/topics/android.md>), [Development](<https://devfeed.tech/topics/development.md>), [Jetpack](<https://devfeed.tech/topics/jetpack.md>), [Framework](<https://devfeed.tech/topics/framework.md>), [implementation](<https://devfeed.tech/topics/implementation.md>), [ui](<https://devfeed.tech/topics/ui.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [android-development](<https://devfeed.tech/tags/android-development.md>), [android-jetpack](<https://devfeed.tech/tags/android-jetpack.md>), [code-review](<https://devfeed.tech/tags/code-review.md>), [fragment](<https://devfeed.tech/tags/fragment.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [marton-braun](<https://devfeed.tech/tags/marton-braun.md>), [project](<https://devfeed.tech/tags/project.md>), [pull-request](<https://devfeed.tech/tags/pull-request.md>), [repository](<https://devfeed.tech/tags/repository.md>), [review](<https://devfeed.tech/tags/review.md>), [viewmodel](<https://devfeed.tech/tags/viewmodel.md>), [zsmb](<https://devfeed.tech/tags/zsmb.md>), [zsmb-co](<https://devfeed.tech/tags/zsmb-co.md>), [zsmb13](<https://devfeed.tech/tags/zsmb13.md>), [zsmbco](<https://devfeed.tech/tags/zsmbco.md>)

### AI overview

A code review of the Pokedex Android side project examines its project structure, code organization, formatting, imports, and use of Android Jetpack components and lifecycles. The review is presented as a learning resource for developers.

### Source excerpt

In what may be the start of a new series, I code review a project that was posted on reddit recently and got very popular very quickly. Let's see what we can learn from it?

## Understanding Fragment Transactions and Back Navigation

DevFeed: [Understanding Fragment Transactions and Back Navigation](<https://devfeed.tech/articles/the-curious-case-of-haunting-fragments-28663.md>)

Original publisher: [Read original article](<https://jeroenmols.com/blog/2017/12/18/fragmentback/>)

Author: info@jeroenmols.com (Jeroen Mols)

Published: 2017-12-18T00:00:00Z

Content type: tutorial

Language: en

Sources: [Jeroen Mols](<https://devfeed.tech/sources/jeroen-mols.md>)

Topics: [Transactions](<https://devfeed.tech/topics/transactions.md>), [navigation](<https://devfeed.tech/topics/navigation.md>), [App](<https://devfeed.tech/topics/app.md>), [implementation](<https://devfeed.tech/topics/implementation.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [app](<https://devfeed.tech/tags/app.md>), [blogs](<https://devfeed.tech/tags/blogs.md>), [events](<https://devfeed.tech/tags/events.md>), [fragment](<https://devfeed.tech/tags/fragment.md>), [fragments](<https://devfeed.tech/tags/fragments.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [login](<https://devfeed.tech/tags/login.md>), [navigation](<https://devfeed.tech/tags/navigation.md>), [rewrite](<https://devfeed.tech/tags/rewrite.md>), [screen](<https://devfeed.tech/tags/screen.md>), [transactions](<https://devfeed.tech/tags/transactions.md>)

### AI overview

This tutorial investigates unexpected Android Fragment behavior when login-related Fragment transactions interact with back navigation. It explains that the transaction manager saves executed transactions rather than the Fragments themselves, which can leave multiple Fragments visible after navigating back.

### Source excerpt

Do Fragment transactions and back navigation have no more secrets for you? Well then you should try to solve the mystery in this post, where a Fragment (literally) came to haunt us...

## How Fragment for Android Asks Users for Ratings and Reviews

DevFeed: [How Fragment for Android Asks Users for Ratings and Reviews](<https://devfeed.tech/articles/kindly-asking-for-ratings-and-reviews-30573.md>)

Original publisher: [Read original article](<https://ryanharter.com/blog/2014/09/kindly-asking-for-ratings-and-reviews/>)

Published: 2014-09-05T07:00:00Z

Content type: opinion

Language: en

Sources: [Blogs on Ryan Harter](<https://devfeed.tech/sources/blogs-on-ryan-harter.md>)

Topics: [Android](<https://devfeed.tech/topics/android.md>), [App](<https://devfeed.tech/topics/app.md>), [ui](<https://devfeed.tech/topics/ui.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [app](<https://devfeed.tech/tags/app.md>), [fragment](<https://devfeed.tech/tags/fragment.md>), [play-store](<https://devfeed.tech/tags/play-store.md>), [review](<https://devfeed.tech/tags/review.md>)

### AI overview

The article explains how the Fragment for Android team designed a non-intrusive prompt for app ratings. It places a rating button in the interface rather than showing a generic dialog, and delays showing it until the app has been launched three times and the user reaches the Export screen.

### Source excerpt

One of the most important factors in determining whether or not people will buy your app is the rating. Especially if your app isn't free, people will generally check the ratings and reviews before downloading your app. And if your app is a paid app, ratings and reviews can mean success or failure for your app. When launching Fragment for Android, our first though was making a kick ass app, but then we needed to think about how to ensure that users remembered to go back to the Play Store to share their experience by rating the app. It's quite common for apps to display a generic dialog after a while prompting the user to rate the app, but we thought we could make this experience better.

## Bringing Fragment to Android

DevFeed: [Bringing Fragment to Android](<https://devfeed.tech/articles/bringing-fragment-to-android-30571.md>)

Original publisher: [Read original article](<https://ryanharter.com/blog/2014/08/bringing-fragment-to-android/>)

Published: 2014-08-21T07:00:00Z

Content type: opinion

Language: en

Sources: [Blogs on Ryan Harter](<https://devfeed.tech/sources/blogs-on-ryan-harter.md>)

Topics: [Android](<https://devfeed.tech/topics/android.md>), [iOS](<https://devfeed.tech/topics/ios.md>), [ui](<https://devfeed.tech/topics/ui.md>), [User Experience](<https://devfeed.tech/topics/user-experience.md>), [Google Play](<https://devfeed.tech/topics/google-play.md>), [App](<https://devfeed.tech/topics/app.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [apps](<https://devfeed.tech/tags/apps.md>), [fragment](<https://devfeed.tech/tags/fragment.md>), [google-play](<https://devfeed.tech/tags/google-play.md>), [ios](<https://devfeed.tech/tags/ios.md>), [ui](<https://devfeed.tech/tags/ui.md>), [user-experience](<https://devfeed.tech/tags/user-experience.md>)

### AI overview

The article describes bringing Pixite's iOS photo app Fragment to Android. It discusses studying the iOS design and adapting platform-specific interactions, including removing redundant "X" buttons and changing the export screen to use Android's sharing capabilities.

### Source excerpt

In November 2013, Ben Guerrette from Pixite reached out to me after reading my post about my experience being featured on the Google Play. He was interested in bringing one of their iOS photo apps to Android. At this point I wasn't familiar with Pixite, so I promptly fired up the Google to do my research. I was quite impressed with what I found. The guys at Pixite had created some really cool photo apps for iOS, and when I searched Google Play for similar offerings on Android, I found next to nothing.

## The case for Fragment Callbacks

DevFeed: [The case for Fragment Callbacks](<https://devfeed.tech/articles/the-case-for-fragment-callbacks-30549.md>)

Original publisher: [Read original article](<https://ryanharter.com/blog/2013/02/the-case-for-fragment-callbacks/>)

Published: 2013-02-18T07:00:00Z

Content type: article

Language: en

Sources: [Blogs on Ryan Harter](<https://devfeed.tech/sources/blogs-on-ryan-harter.md>)

Topics: [Android](<https://devfeed.tech/topics/android.md>), [interfaces](<https://devfeed.tech/topics/interfaces.md>), [Code](<https://devfeed.tech/topics/code.md>), [Development](<https://devfeed.tech/topics/development.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [api](<https://devfeed.tech/tags/api.md>), [fragment](<https://devfeed.tech/tags/fragment.md>), [google](<https://devfeed.tech/tags/google.md>), [google-i-o](<https://devfeed.tech/tags/google-i-o.md>), [interface](<https://devfeed.tech/tags/interface.md>), [interfaces](<https://devfeed.tech/tags/interfaces.md>)

### AI overview

This article recommends using callback interfaces for communication between Android Fragments and their parent activities. It argues that casting the parent activity creates tightly coupled code, while callbacks improve reuse, maintainability, flexibility, and separation of responsibilities.

### Source excerpt

Fragment are a great addition to Android. They allow reusability of sections of your views at the controller layer, and they also provide better encapsulation of your app's logic. This can really help developers speed up code development and also keep their code clean, which makes it easier to maintain. All of these benefits are available if you follow a few guidelines when developing your code. One of the biggest mistakes that I see developers make, particularly those coming from other platforms, is casting the parent activity. The Fragment API provides methods for communicating with the parent activity because there are many things, like navigation, that should not be handled by the Fragment. This requires a mechanism for the Fragment to notify the parent Activity when certain activities occur.