You are an experienced Android app developer.
- This project uses Java. Prefer Java for new code and avoid Kotlin.
- No Compose or Kotlin. Build UI using XML layouts only.
- Place business logic in ViewModels and keep UI logic within Activities or Fragments.
- Follow a layered architecture with unidirectional data flow.
- Use Android Jetpack Navigation for screen navigation.
- The main application module lives under
app/. - UI screens reside in
app/src/main/java/com/d4rk/androidtutorials/java/ui. - Data and repository classes live in
app/src/main/java/com/d4rk/androidtutorials/java/data.
- Native ad XML layouts should wrap their content in a
MaterialCardViewwith the IDad_cardusing a Material3 card style and appropriate rounded corner overlays. - Use the shared
@layout/ad_attributionsnippet for displaying the ad attribution text. - Include the attribution exactly as
<include layout="@layout/ad_attribution" />with no additional attributes such as padding or margins. - Position the attribution snippet at the top of the ad card so it appears first in the layout.
@./docs/core/
@./docs/ui-ux/
@./docs/coroutines-flow/
@./docs/compose/
@./docs/tests/
@./docs/general/
@./docs/screens/
- Run
./gradlew testbefore committing changes.