Androidbooster ui compose
Skill huhx0015/AndroidBooster/claude/skills/androidbooster-ui-compose
Android Booster: An Android starter project that provides a modular foundation for building production-ready apps. It offers multiple architecture patterns (MVI, MVVM, MVP, VIPER) with shared base classes, so you can choose the approach that fits each feature.
npx -y skills add huhx0015/AndroidBooster --skill androidbooster-ui-composeAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 5 stars5 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Compose lazy list components for AndroidBooster. Use when building Compose list UIs with ComposeDataColumn or ComposeDataRow, DataItem models, pull-to-refresh, initial loading, endless pagination, or custom progress indicator colors.
SKILL.md
3.6 KB, as published. Nobody here has run it
AndroidBooster UI Compose
Components
Use reusable Compose list components from core/ui:
com.huhx0015.androidbooster.model.DataItemcom.huhx0015.androidbooster.ui.compose.components.ComposeDataColumncom.huhx0015.androidbooster.ui.compose.components.ComposeDataRow
DataItem is the shared model contract:
sealed interface DataItem {
val id: Long
}
Any list item model must implement DataItem so lazy list keys can use id.
Required state inputs
Pass these state values to either component:
items: List<T>whereT : DataItemisInitialLoading: Booleanfor first-load/forced-refresh full replacement spinnerisRefreshing: Booleanfor pull-to-refresh active stateisLoadingMore: Booleanfor pagination footer spinneronRefresh: () -> Unitfor pull-to-refresh actiononLoadMore: () -> Unitfor endless-scroll paginationprogressColor: Colorfor all progress indicators
Behavior contract
- If
isInitialLoadingis true, list content is replaced with a centered spinner. - Pull-to-refresh is built in via Material3 pull-to-refresh APIs.
- Endless loading is triggered near list end and calls
onLoadMore. - While
isLoadingMoreis true, a loading footer is shown at list end. - Indicator color is controlled by
progressColor.
Usage template
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color
import com.huhx0015.androidbooster.ui.compose.components.ComposeDataColumn
import com.huhx0015.androidbooster.model.DataItem
data class UserUiItem(
override val id: Long,
val title: String
) : DataItem
@Composable
fun UsersColumn(
items: List<UserUiItem>,
isInitialLoading: Boolean,
isRefreshing: Boolean,
isLoadingMore: Boolean,
onRefresh: () -> Unit,
onLoadMore: () -> Unit
) {
ComposeDataColumn(
items = items,
isInitialLoading = isInitialLoading,
isRefreshing = isRefreshing,
isLoadingMore = isLoadingMore,
onRefresh = onRefresh,
onLoadMore = onLoadMore,
progressColor = Color.Magenta
) { item ->
// Render each item
}
}
Use ComposeDataRow with the same state contract for horizontal lists.
Activity integration pattern (MVI + snackbar events)
When using ComposeDataColumn in an Activity-driven MVI screen:
- Use
BaseActivity+setContent { ... }fromandroidx.activity.compose.setContent. - Collect
StateFlowin composition usingcollectAsState(). - Route UI actions (
onRefresh,onLoadMore) to ViewModel intents viasendIntent(...). - Collect one-off events in
LaunchedEffect(viewModel)and handle UI side effects there. - For
ShowMessage-style events, use aSnackbarHostState+Scaffold.
Reference shape:
setContent {
val state by viewModel.state.collectAsState()
val snackbarHostState = remember { SnackbarHostState() }
LaunchedEffect(viewModel) {
viewModel.events.collect { event ->
when (event) {
is ComposeDataEvent.ShowMessage -> snackbarHostState.showSnackbar(event.message)
}
}
}
Scaffold(
snackbarHost = { SnackbarHost(snackbarHostState) }
) { innerPadding ->
ComposeDataScreen(
state = state,
onIntent = viewModel::sendIntent,
modifier = Modifier.padding(innerPadding)
)
}
}