Jetpack Compose का इस्तेमाल शुरू करना
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
Jetpack Compose, नेटिव Android यूज़र इंटरफ़ेस (यूआई) बनाने के लिए मॉडर्न टूलकिट है. Compose के इस्तेमाल के बारे में ताज़ा जानकारी यहां मिलेगी.
- खास जानकारी: Compose डेवलपर के लिए उपलब्ध सभी संसाधन देखें.
- ट्यूटोरियल: Compose का इस्तेमाल करके, एक आसान यूज़र इंटरफ़ेस (यूआई) बनाएं.
- क्विक गाइड: नई सुविधा! हमारी आसान और काम की गाइड आज़माएं. इन्हें इस तरह से डिज़ाइन किया गया है कि आप अपने लक्ष्य को जल्द से जल्द हासिल कर सकें.
Foundation
- Compose के बारे में सोचना: जानें कि Compose का डिक्लेरेटिव अप्रोच, व्यू-आधारित अप्रोच से कैसे अलग है. व्यू-आधारित अप्रोच का इस्तेमाल आपने शायद पहले किया हो. साथ ही, जानें कि Compose के साथ काम करने का मेंटल मॉडल कैसे बनाया जाता है.
- स्टेट मैनेज करना: अपने Compose ऐप्लिकेशन में स्टेट सेट करने और इस्तेमाल करने के बारे में जानें.
- कंपोज़ेबल का लाइफ़साइकल: कंपोज़ेबल के लाइफ़साइकल के बारे में जानें. साथ ही, यह भी जानें कि Compose यह कैसे तय करता है कि इसे फिर से ड्रॉ करने की ज़रूरत है या नहीं.
- मॉडिफ़ायर: अपने कंपोज़ेबल को बेहतर बनाने या सजाने के लिए, मॉडिफ़ायर इस्तेमाल करने का तरीका जानें.
- Compose में साइड-इफ़ेक्ट: साइड-इफ़ेक्ट मैनेज करने के सबसे सही तरीके जानें.
- Jetpack Compose की फ़ेज़: जानें कि Compose, आपके यूज़र इंटरफ़ेस (यूआई) को रेंडर करने के लिए किन चरणों से गुज़रता है. साथ ही, इस जानकारी का इस्तेमाल करके बेहतर कोड लिखने का तरीका जानें
- आर्किटेक्चरल लेयरिंग: Jetpack Compose को बनाने वाली आर्किटेक्चरल लेयर और इसके डिज़ाइन के मुख्य सिद्धांतों के बारे में जानें.
- परफ़ॉर्मेंस: प्रोग्रामिंग से जुड़ी आम गलतियों से बचने का तरीका जानें. इन गलतियों की वजह से, आपके ऐप्लिकेशन की परफ़ॉर्मेंस पर बुरा असर पड़ सकता है.
- Compose में सिमैंटिक्स: सिमैंटिक्स ट्री के बारे में जानें. यह आपके यूज़र इंटरफ़ेस (यूआई) को इस तरह से व्यवस्थित करता है कि इसका इस्तेमाल सुलभता सेवाओं और टेस्टिंग फ़्रेमवर्क के लिए किया जा सके.
- CompositionLocal के साथ स्थानीय तौर पर स्कोप किया गया डेटा: जानें कि कंपोज़िशन के ज़रिए डेटा पास करने के लिए,
CompositionLocal
का इस्तेमाल कैसे किया जाता है.
डेवलपमेंट एनवायरमेंट
डिज़ाइन
- लेआउट: Compose के नेटिव लेआउट कॉम्पोनेंट के बारे में जानें. साथ ही, अपने लेआउट डिज़ाइन करने का तरीका जानें.
- लेआउट की बुनियादी बातें: ऐप्लिकेशन के यूज़र इंटरफ़ेस (यूआई) के लिए बिल्डिंग ब्लॉक के बारे में जानें.
- मटीरियल कॉम्पोनेंट और लेआउट: Compose में मटीरियल कॉम्पोनेंट और लेआउट के बारे में जानें.
- कस्टम लेआउट: अपने ऐप्लिकेशन के लेआउट को कंट्रोल करने का तरीका जानें. साथ ही, अपनी पसंद के मुताबिक लेआउट डिज़ाइन करने का तरीका जानें.
- अलग-अलग डिसप्ले साइज़ के साथ काम करना: Compose का इस्तेमाल करके ऐसे लेआउट बनाने का तरीका जानें जो अलग-अलग डिसप्ले साइज़, ओरिएंटेशन, और फ़ॉर्म फ़ैक्टर के हिसाब से अडजस्ट हो सकें.
- अलाइनमेंट लाइनें: यूज़र इंटरफ़ेस (यूआई) एलिमेंट को सटीक तरीके से अलाइन और पोज़िशन करने के लिए, कस्टम अलाइनमेंट लाइनें बनाने का तरीका जानें.
- इंट्रिंसिक मेज़रमेंट: Compose में, यूज़र इंटरफ़ेस (यूआई) एलिमेंट को हर पास में सिर्फ़ एक बार मेज़र किया जा सकता है. इस पेज पर बताया गया है कि चाइल्ड एलिमेंट को मेज़र करने से पहले, उनकी जानकारी के लिए क्वेरी कैसे करें.
- ConstraintLayout: अपने Compose यूज़र इंटरफ़ेस (यूआई) में
ConstraintLayout
का इस्तेमाल करने का तरीका जानें.
- डिज़ाइन सिस्टम: डिज़ाइन सिस्टम लागू करने का तरीका जानें. साथ ही, अपने ऐप्लिकेशन को एक जैसा लुक और फ़ील दें.
- सूचियां और ग्रिड: डेटा की सूचियों और ग्रिड को मैनेज करने और दिखाने के लिए, Compose के कुछ विकल्पों के बारे में जानें.
- टेक्स्ट: टेक्स्ट को दिखाने और उसमें बदलाव करने के लिए, Compose के मुख्य विकल्पों के बारे में जानें.
- ग्राफ़िक: कस्टम ग्राफ़िक बनाने और उनका इस्तेमाल करने के लिए, Compose की सुविधाओं के बारे में जानें.
- ऐनिमेशन: अपने यूज़र इंटरफ़ेस (यूआई) एलिमेंट को ऐनिमेट करने के लिए, Compose के अलग-अलग विकल्पों के बारे में जानें.
- जेस्चर: Compose UI बनाने का तरीका जानें, जो उपयोगकर्ता के जेस्चर का पता लगाता है और उनसे इंटरैक्ट करता है.
- उपयोगकर्ता के इंटरैक्शन को मैनेज करना: जानें कि Compose, लो-लेवल इनपुट को हाई-लेवल इंटरैक्शन में कैसे बदलता है, ताकि आप यह तय कर सकें कि आपके कॉम्पोनेंट, उपयोगकर्ता की कार्रवाइयों पर कैसे जवाब दें.
Compose का इस्तेमाल करना
- व्यू पर आधारित मौजूदा ऐप्लिकेशन माइग्रेट करना: व्यू पर आधारित मौजूदा ऐप्लिकेशन को Compose पर माइग्रेट करने का तरीका जानें.
- माइग्रेशन की रणनीति: अपने कोडबेस में Compose को सुरक्षित तरीके से और धीरे-धीरे शामिल करने की रणनीति जानें.
- इंटरऑपरेबिलिटी एपीआई: Compose के एपीआई के बारे में जानें. इनकी मदद से, Compose को व्यू-आधारित यूज़र इंटरफ़ेस (यूआई) के साथ जोड़ा जा सकता है.
- अन्य बातें ध्यान में रखें: View पर आधारित ऐप्लिकेशन को Compose पर माइग्रेट करते समय, थीम, आर्किटेक्चर, और टेस्टिंग जैसी अन्य बातों के बारे में जानें.
- Compose और अन्य लाइब्रेरी: जानें कि Compose कॉन्टेंट में व्यू पर आधारित लाइब्रेरी का इस्तेमाल कैसे किया जाता है.
- Compose का आर्किटेक्चर: Compose में एकतरफ़ा फ़्लो पैटर्न लागू करने का तरीका जानें. साथ ही, इवेंट और स्टेट होल्डर लागू करने का तरीका जानें. इसके अलावा, Compose में
ViewModel
के साथ काम करने का तरीका जानें.
- नेविगेशन: जानें कि Compose UI के साथ नेविगेशन कॉम्पोनेंट को इंटिग्रेट करने के लिए,
NavController
का इस्तेमाल कैसे करें.
- संसाधन: अपने Compose कोड में, ऐप्लिकेशन के संसाधनों का इस्तेमाल करने का तरीका जानें.
- सुलभता: जानें कि Compose UI को, सुलभता से जुड़ी अलग-अलग ज़रूरतों वाले उपयोगकर्ताओं के लिए कैसे बेहतर बनाया जाए.
- जांच करना: अपने Compose कोड की जांच करने के बारे में जानें.
अन्य संसाधन
आपके लिए सुझाव
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. Java और OpenJDK, Oracle और/या इससे जुड़ी हुई कंपनियों के ट्रेडमार्क या रजिस्टर किए हुए ट्रेडमार्क हैं.
आखिरी बार 2025-08-27 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-08-27 (UTC) को अपडेट किया गया."],[],[],null,["Jetpack Compose is the modern toolkit for building native Android UI. Here's\nwhere you'll find the latest information about using Compose.\n\n- [Overview](/develop/ui/compose): See all the resources available to Compose developers.\n- [Tutorial](/develop/ui/compose/tutorial): Get started with Compose, by using it to build a simple UI.\n- [Quick Guides](/quick-guides): **New!** Try out our fast and focused guides, designed to get you to your goal as quickly as possible.\n\nFoundation\n\n- [Thinking in Compose](/develop/ui/compose/mental-model): Learn how Compose's declarative approach is different from the view-based approach you may have used in the past, and how to build a mental model of working with Compose.\n- [Managing state](/develop/ui/compose/state): Learn about setting and using state in your Compose app.\n- [Lifecycle of composables](/develop/ui/compose/lifecycle): Learn about the lifecycle of a composable, and how Compose decides if it needs to be redrawn.\n- [Modifiers](/develop/ui/compose/modifiers): Learn how to use modifiers to augment or decorate your composables.\n- [Side-effects in Compose](/develop/ui/compose/side-effects): Learn the best ways to manage side-effects.\n- [Jetpack Compose Phases](/develop/ui/compose/phases): Learn about the steps Compose goes through to render your UI, and how to use that information to write efficient code\n- [Architectural layering](/develop/ui/compose/layering): Learn about the architectural layers that make up Jetpack Compose, and the core principles that informed its design.\n- [Performance](/develop/ui/compose/performance): Learn how to avoid the common programming pitfalls that can hurt your app's performance.\n- [Semantics in Compose](/develop/ui/compose/semantics): Learn about the Semantics tree, which organizes your UI in a way that can be used by accessibility services and the testing framework.\n- [Locally scoped data with CompositionLocal](/develop/ui/compose/compositionlocal): Learn how to use `CompositionLocal` to pass data through the Composition.\n\nDevelopment environment\n\n- [Android Studio with Compose](/develop/ui/compose/setup): Set up your development environment to use Compose.\n- [Tooling for Compose](/develop/ui/compose/tooling): Learn about Android Studio's new features to support Compose.\n- [Kotlin for Compose](/develop/ui/compose/kotlin): Learn how certain Kotlin-specific idioms work with Compose.\n- [Compare Compose and View metrics](/develop/ui/compose/migrate/compare-metrics): Learn how migrating to Compose can affect your app's APK size and runtime performance.\n- [Bill of Materials](/develop/ui/compose/bom): Manage all your Compose dependencies by specifying only the BOM's version.\n\nDesign\n\n- [Layouts](/develop/ui/compose/layouts): Learn about Compose's native layout components, and how to design your own.\n - [Layout basics](/develop/ui/compose/layouts/basics): Learn about the building blocks for a straightforward app UI.\n - [Material Components and layouts](/develop/ui/compose/components): Learn about Material components and layouts in Compose.\n - [Custom layouts](/develop/ui/compose/layouts/custom): Learn how to take control of your app's layout, and how to design a custom layout of your own.\n - [Support different display sizes](/develop/ui/compose/layouts/adaptive/support-different-display-sizes): Learn how to use Compose to build layouts that adapt to different display sizes, orientations, and form factors.\n - [Alignment lines](/develop/ui/compose/layouts/alignment-lines): Learn how to create custom alignment lines to precisely align and position your UI elements.\n - [Intrinsic measurements](/develop/ui/compose/layouts/intrinsic-measurements): Since Compose only allows you to measure UI elements once per pass, this page explains how to query for information about child elements before measuring them.\n - [ConstraintLayout](/develop/ui/compose/layouts/constraintlayout): Learn how to use `ConstraintLayout` in your Compose UI.\n- [Design Systems](/develop/ui/compose/designsystems): Learn how to implement a design system and give your app a consistent look and feel.\n - [Material Design 3](/develop/ui/compose/designsystems/material3): Learn how to implement Material You with Compose's implementation of [Material Design 3](https://m3.material.io/).\n - [Migrating from Material 2 to Material 3](/develop/ui/compose/designsystems/material2-material3): Learn how to migrate your app from Material Design 2 to Material Design 3 in Compose.\n - [Material Design 2](/develop/ui/compose/designsystems/material): Learn how to customize Compose's implementation of [Material Design 2](https://material.io/) to fit your product's brand.\n - [Custom design systems](/develop/ui/compose/designsystems/custom): Learn how to implement a custom design system in Compose, and how to adapt existing Material Design composables to handle this.\n - [Anatomy of a theme](/develop/ui/compose/designsystems/anatomy): Learn about the lower-level constructs and APIs used by `MaterialTheme` and custom design systems.\n- [Lists and grids](/develop/ui/compose/lists): Learn about some of Compose's options for managing and displaying lists and grids of data.\n- [Text](/develop/ui/compose/text): Learn about Compose's main options for displaying and editing text.\n- [Graphics](/develop/ui/compose/graphics): Learn about Compose's features for building and working with custom graphics.\n- [Animation](/develop/ui/compose/animation/introduction): Learn about Compose's different options for animating your UI elements.\n- [Gestures](/develop/ui/compose/touch-input/pointer-input): Learn how to build a Compose UI that detects and interacts with user gestures.\n- [Handling user interactions](/develop/ui/compose/touch-input/user-interactions/handling-interactions): Learn how Compose abstracts low-level input into higher-level interactions, so you can customize how your components respond to user actions.\n\nAdopting Compose\n\n- [Migrate existing View-based apps](/develop/ui/compose/migrate): Learn how to migrate your existing View-based app to Compose.\n - [Migration strategy](/develop/ui/compose/migrate/strategy): Learn the strategy to safely and incrementally introduce Compose into your codebase.\n - [Interoperability APIs](/develop/ui/compose/migrate/interoperability-apis): Learn about Compose's APIs to help you combine Compose with View-based UI.\n - [Other considerations](/develop/ui/compose/migrate/other-considerations): Learn about other considerations like theming, architecture, and testing while migrating your View-based app to Compose.\n- [Compose and other libraries](/develop/ui/compose/libraries): Learn how to use view-based libraries in your Compose content.\n- [Compose architecture](/develop/ui/compose/architecture): Learn how to implement the unidirectional flow pattern in Compose, how to implement events and state holders, and how to work with `ViewModel` in Compose.\n- [Navigation](/develop/ui/compose/navigation): Learn how to use `NavController` to integrate the Navigation component with your Compose UI.\n - [Navigation for responsive UIs](/guide/topics/large-screens/navigation-for-responsive-uis): Learn how to design your app's navigation so it adapts to different screen sizes, orientations, and form factors.\n- [Resources](/develop/ui/compose/resources): Learn how to work with your app's resources in your Compose code.\n- [Accessibility](/develop/ui/compose/accessibility): Learn how to make your Compose UI suitable for users with different accessibility requirements.\n- [Testing](/develop/ui/compose/testing): Learn about testing your Compose code.\n - [Testing cheat sheet](/develop/ui/compose/testing-cheatsheet): A quick reference of useful Compose testing APIs.\n\nAdditional resources\n\n- [Get setup](/develop/ui/compose/setup)\n- [Curated learning pathway](/courses/pathways/compose)\n- [Compose API guidelines](https://android.googlesource.com/platform/frameworks/support/+/androidx-main/compose/docs/compose-api-guidelines.md)\n- [API reference](/reference/kotlin/androidx/compose)\n- [Codelabs](https://goo.gle/compose-codelabs)\n- [Sample apps](https://github.com/android/compose-samples)\n- [Videos](https://www.youtube.com/user/androiddevelopers/search?query=%23jetpackcompose)\n\nRecommended for you\n\n- Note: link text is displayed when JavaScript is off\n- [Locally scoped data with CompositionLocal](/develop/ui/compose/compositionlocal)\n- [Other considerations](/develop/ui/compose/migrate/other-considerations)\n- [Anatomy of a theme in Compose](/develop/ui/compose/designsystems/anatomy)"]]