প্রকাশ করতে সোয়াইপ করুন
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
ব্যবহারকারীদের অতিরিক্ত ক্রিয়া প্রকাশ করতে একটি উপাদান সোয়াইপ করার অনুমতি দিন।

উপাদান প্রকাশ করতে সোয়াইপ আপনাকে চিপস এবং কার্ডগুলিতে অতিরিক্ত ক্রিয়া যুক্ত করতে দেয়, বিশেষত যখন সেগুলি তালিকায় উপস্থিত হয়। এই কম্পোনেন্টটি ব্যবহারকারীদের স্ক্রীন না রেখে দ্রুত কাজ করতে দেয়।
ব্যবহারকারীরা এই ক্রিয়াগুলি অ্যাক্সেস করতে আংশিকভাবে চিপস এবং কার্ডগুলিকে বাম দিকে সোয়াইপ করতে পারেন, তারপরে এটি সম্পূর্ণ করতে একটি অ্যাকশনে আলতো চাপুন৷ ব্যবহারকারীরা প্রাথমিক অ্যাকশনে দ্রুত প্রতিশ্রুতিবদ্ধ হওয়ার জন্য চিপস এবং কার্ডগুলিকে বাম দিকে সম্পূর্ণভাবে সোয়াইপ করতে পারেন।
এই ক্রিয়াগুলির জন্য উপাদানটির 2টি স্লট রয়েছে:
- প্রাথমিক
- মাধ্যমিক (ঐচ্ছিক)
অ্যানাটমি

প্রকাশিত কর্ম
বিকাশকারীরা তাদের অনন্য ব্যবহারের ক্ষেত্রে ক্রিয়াগুলি কাস্টমাইজ করতে পারে। এই অ্যাকশনগুলিতে ব্যবহৃত রঙ এবং আইকনোগ্রাফি বিবেচনা করুন যাতে ব্যবহারকারীরা কী বোঝাতে চান।
সমস্ত ভাষার লোকেলের জন্য প্রকাশিত ক্রিয়াগুলি একই দিকে প্রদর্শিত হয়।
- প্রাথমিক কর্ম
- সেকেন্ডারি অ্যাকশন (ঐচ্ছিক)
একটি প্রাথমিক কর্মে প্রতিশ্রুতিবদ্ধ
প্রাথমিক কর্মে প্রতিশ্রুতিবদ্ধ করার জন্য, একজন ব্যবহারকারী হয় বোতামে আলতো চাপ দিতে পারেন বা বাম দিকে সোয়াইপ চালিয়ে যেতে পারেন। এইভাবে, বোতামটি স্ক্রিনের পুরো প্রস্থ পর্যন্ত প্রসারিত হয় এবং একটি লেবেল প্রদর্শন করে। নির্বাচিত হওয়ার পরে ক্রিয়াটি বিবর্ণ হয়ে যায়।
প্রথম উদাহরণটি একটি একক বোতাম বিকল্প দেখায়। দ্বিতীয় উদাহরণটি একটি ডবল বোতাম বিকল্প দেখায়।
ক্রিয়া পূর্বাবস্থায় ফেরান
ধ্বংসাত্মক ক্রিয়াগুলির জন্য, ব্যবহারকারীদের এই ক্রিয়াগুলিকে বিপরীত করতে দেওয়ার জন্য একটি পূর্বাবস্থায় ফেরানো উপাদান যুক্ত করুন৷ প্রাথমিক অ্যাকশনে পূর্বাবস্থায় ফেরার ক্ষমতা যোগ করুন।
যোগ করা হলে, প্রতিশ্রুতিবদ্ধ কর্মের জায়গায় একটি পূর্বাবস্থায় চিপ বোতাম প্রদর্শিত হবে। অল্প সময়ের পরে, পূর্বাবস্থার ক্রিয়াটি বিবর্ণ হয়ে যায় এবং সিস্টেমটি প্রতিশ্রুতিবদ্ধ ক্রিয়াটি সম্পূর্ণ করে।
থ্রেশহোল্ড সোয়াইপ করুন
কম্পোনেন্টের আচরণ প্রকাশ করার জন্য সোয়াইপ নির্ভর করে ব্যবহারকারী স্ক্রীন জুড়ে কতদূর সোয়াইপ করে তার উপর:
- ব্যবহারকারী যদি স্ক্রীনের 50% এরও কম জুড়ে সোয়াইপ করে, তাহলে উপাদানটি তার প্রারম্ভিক অবস্থানে ফিরে আসে এবং কোন পদক্ষেপ নেওয়া হয় না।
- ব্যবহারকারী যদি পূর্ণ প্রস্থের 50% এবং 75% এর মধ্যে স্ক্রীন জুড়ে সোয়াইপ করে, তাহলে উপাদানটি আংশিকভাবে দৃশ্যমান থাকে এবং উপাদানটির সাথে সম্পর্কিত ক্রিয়াগুলি উপস্থিত হয়।
- ব্যবহারকারী যদি স্ক্রিনের 75% এর বেশি জুড়ে সোয়াইপ করে, তাহলে উপাদানটি অদৃশ্য হয়ে যাবে এবং সিস্টেম স্বয়ংক্রিয়ভাবে প্রাথমিক ক্রিয়া সম্পাদন করে।
নিম্নলিখিত উপাদান-থিমযুক্ত উপাদানগুলি আচরণ প্রকাশ করতে সোয়াইপ প্রয়োগ করে:
কার্ডে
নিম্নলিখিত স্ক্রিনশটগুলি SwipeToRevealCard
ক্লাস ব্যবহার করার সময় উপাদানটির উপস্থিতি প্রকাশ করতে সোয়াইপ দেখায়:

চিপস উপর
নিম্নলিখিত স্ক্রিনশটগুলি SwipeToRevealChip
ক্লাস ব্যবহার করার সময় উপাদানটির উপস্থিতি প্রকাশ করতে সোয়াইপ দেখায়:

এই পৃষ্ঠার কন্টেন্ট ও কোডের নমুনাগুলি Content License-এ বর্ণিত লাইসেন্সের অধীনস্থ। Java এবং OpenJDK হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-29 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-29 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# Swipe to reveal\n\nAllow users to swipe a component to reveal extra actions.\n\nThe *swipe to reveal* component lets you add extra actions to\nchips and cards, specifically when they appear in lists. This component lets\nusers quickly get things done without leaving the screen.\n\nUsers can partially swipe chips and cards to the left to access these\nactions, then tap on an action to complete it. Users can also fully swipe\nchips and cards to the left to quickly commit to the primary action. \nThe component has 2 slots for these actions:\n\n1. **Primary**\n2. **Secondary (optional)**\n\nAnatomy\n-------\n\n### Revealed actions\n\nDevelopers can customize the actions for their unique use cases. Consider\nthe color and iconography used in these actions to help users understand\nwhat they mean.\n\nThe revealed actions appear on the same side for all language\nlocales.\n\n1. **Primary action**\n2. **Secondary action (optional)** \n\n### Commit to a primary action\n\nTo commit to the primary action, a user can either tap on the button or\ncontinue swiping to the left. In this way, the button extends to the entire\nwidth of the screen and displays a label. The action fades away after being\nselected.\n\nThe first example shows a **single button option** . The\nsecond example shows a **double button option**. \n\n### Undo action\n\nFor destructive actions, add an undo component to let users reverse these\nactions. Add the undo capability to the primary action.\n\nIf added, an undo chip button appears in place of the committed action.\nAfter a short period of time, the undo action fades away, and the system\ncompletes the committed action. \n\n### Swipe thresholds\n\nThe swipe to reveal component's behavior depends upon how far the user\nswipes across the screen:\n\n- If the user swipes across less than 50% of the screen, the component snaps back to its starting position, and no action is taken.\n- If the user swipes across the screen between 50% and 75% of the full width, the component remains partially visible, and the actions associated with the component appear.\n- If the user swipes across more than 75% of the screen, the component disappears, and the system automatically performs the primary action.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nRelated components\n------------------\n\nThe following material-themed components implement the swipe to reveal behavior:\n\n- [`SwipeToRevealCard`](/reference/kotlin/androidx/wear/compose/material/package-summary#SwipeToRevealCard(androidx.wear.compose.material.SwipeToRevealAction,androidx.wear.compose.foundation.RevealState,androidx.compose.ui.Modifier,androidx.wear.compose.material.SwipeToRevealAction,androidx.wear.compose.material.SwipeToRevealAction,androidx.wear.compose.material.SwipeToRevealAction,androidx.wear.compose.material.SwipeToRevealActionColors,androidx.compose.ui.graphics.Shape,kotlin.Function0))\n- [`SwipeToRevealChip`](/reference/kotlin/androidx/wear/compose/material/package-summary#SwipeToRevealChip(androidx.wear.compose.material.SwipeToRevealAction,androidx.wear.compose.foundation.RevealState,androidx.compose.ui.Modifier,androidx.wear.compose.material.SwipeToRevealAction,androidx.wear.compose.material.SwipeToRevealAction,androidx.wear.compose.material.SwipeToRevealAction,androidx.wear.compose.material.SwipeToRevealActionColors,androidx.compose.ui.graphics.Shape,kotlin.Function0))\n\n### On cards\n\nThe following screenshots show the swipe to reveal component's appearance when\nusing the `SwipeToRevealCard` class:\n\n### On chips\n\nThe following screenshots show the swipe to reveal component's appearance when\nusing the `SwipeToRevealChip` class:"]]