সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
সোয়াইপারফ্রেশ লেআউট
সোয়াইপ-টু-রিফ্রেশ UI প্যাটার্ন প্রয়োগ করুন।
সর্বশেষ আপডেট | স্থিতিশীল রিলিজ | প্রার্থী মুক্তি | বিটা রিলিজ | আলফা রিলিজ |
---|
ফেব্রুয়ারি 12, 2025 | 1.1.0 | - | 1.2.0-beta01 | - |
নির্ভরতা ঘোষণা করা
SwipeRefreshLayout-এ নির্ভরতা যোগ করতে, আপনাকে অবশ্যই আপনার প্রকল্পে Google Maven সংগ্রহস্থল যোগ করতে হবে। আরও তথ্যের জন্য Google এর Maven সংগ্রহস্থল পড়ুন।
আপনার অ্যাপ বা মডিউলের জন্য build.gradle
ফাইলে আপনার প্রয়োজনীয় আর্টিফ্যাক্টগুলির জন্য নির্ভরতা যোগ করুন:
গ্রোভি
dependencies {
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
}
কোটলিন
dependencies {
implementation("androidx.swiperefreshlayout:swiperefreshlayout:1.1.0")
}
নির্ভরতা সম্পর্কে আরও তথ্যের জন্য, বিল্ড নির্ভরতা যুক্ত করুন দেখুন।
প্রতিক্রিয়া
আপনার প্রতিক্রিয়া জেটপ্যাককে আরও ভাল করতে সাহায্য করে। আপনি যদি নতুন সমস্যা আবিষ্কার করেন বা এই লাইব্রেরির উন্নতির জন্য ধারনা পান তাহলে আমাদের জানান। আপনি একটি নতুন তৈরি করার আগে অনুগ্রহ করে এই লাইব্রেরিতে বিদ্যমান সমস্যাগুলি দেখুন৷ আপনি তারকা বোতামে ক্লিক করে একটি বিদ্যমান সমস্যায় আপনার ভোট যোগ করতে পারেন।
একটি নতুন সমস্যা তৈরি করুন
আরও তথ্যের জন্য ইস্যু ট্র্যাকার ডকুমেন্টেশন দেখুন।
সংস্করণ 1.2.0
সংস্করণ 1.2.0-beta01
ফেব্রুয়ারি 12, 2025
androidx.swiperefreshlayout:swiperefreshlayout:1.2.0-beta01
প্রকাশিত হয়েছে। সংস্করণ 1.2.0-beta01-এ এই কমিট রয়েছে।
এপিআই পরিবর্তন
-
SwipeRefreshLayout
পদ্ধতির পরামিতি এবং রিটার্ন প্রকারের নির্দিষ্ট শূন্যতা ( I006d1 , b/236497776 )
বাগ ফিক্স
- এই লাইব্রেরিটি এখন JSpecify nullness টীকা ব্যবহার করে, যা টাইপ-ব্যবহার। Kotlin ডেভেলপারদের সঠিক ব্যবহার কার্যকর করার জন্য নিম্নলিখিত কম্পাইলার আর্গুমেন্ট ব্যবহার করা উচিত:
-Xjspecify-annotations=strict
(এটি Kotlin কম্পাইলারের সংস্করণ 2.1.0 দিয়ে শুরু হওয়া ডিফল্ট)। ( Iaf490 , b/326456246 )
সংস্করণ 1.2.0-alpha01
22 জুলাই, 2020
androidx.swiperefreshlayout:swiperefreshlayout:1.2.0-alpha01
প্রকাশিত হয়েছে। সংস্করণ 1.2.0-alpha01-এ এই কমিট রয়েছে।
বাগ ফিক্স
-
requestDisallowInterceptTouchEvent(boolean)
এখন অন্য ভিউগ্রুপের মতো অনুরোধকে সম্মান করে। দৃঢ়ভাবে নিরুৎসাহিত করার সময়, নতুন আচরণ setLegacyRequestDisallowInterceptTouchEventEnabled
এর সাথে অক্ষম করা যেতে পারে। ( I968da , b/141855018 )
সংস্করণ 1.1.0
সংস্করণ 1.1.0
জুন 24, 2020
androidx.swiperefreshlayout:swiperefreshlayout:1.1.0
প্রকাশিত হয়েছে। সংস্করণ 1.1.0 এই কমিট ধারণ করে.
1.0.0 থেকে প্রধান পরিবর্তন
-
SwipeRefreshLayout
এখন NestedScrollingChild3
এবং NestedScrollingParent3
প্রয়োগ করে।
সংস্করণ 1.1.0-rc01
এপ্রিল 15, 2020
androidx.swiperefreshlayout:swiperefreshlayout:1.1.0-rc01
1.1.0-beta01
থেকে কোনো পরিবর্তন ছাড়াই প্রকাশিত হয়েছে। সংস্করণ 1.1.0-rc01-এ এই কমিট রয়েছে।
সংস্করণ 1.1.0-beta01
4 মার্চ, 2020
androidx.swiperefreshlayout:swiperefreshlayout:1.1.0-beta01
1.1.0-alpha03
থেকে কোনো পরিবর্তন ছাড়াই প্রকাশিত হয়েছে। সংস্করণ 1.1.0-beta01-এ এই কমিট রয়েছে।
সংস্করণ 1.1.0-alpha03
9 অক্টোবর, 2019
androidx.swiperefreshlayout:swiperefreshlayout:1.1.0-alpha03
প্রকাশিত হয়েছে। সংস্করণ 1.1.0-alpha03-এ এই কমিট রয়েছে ।
নতুন বৈশিষ্ট্য
- অগ্রগতি নির্দেশকের পটভূমির রঙ সেট করতে আমাদের কাছে একটি নতুন শৈলী বৈশিষ্ট্য রয়েছে
R.styleable.SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor
। ( aosp/931124 )
এপিআই পরিবর্তন
-
requestDisallowInterceptTouchEvent(boolean)
এখন সর্বদা তার পিতামাতার কাছে প্রচার করে। দৃঢ়ভাবে নিরুৎসাহিত করার সময়, নতুন আচরণ setLegacyRequestDisallowInterceptTouchEventEnabled
এর সাথে অক্ষম করা যেতে পারে। ( aosp/1108540 )
বাগ ফিক্স
- নেস্টেড স্ক্রলিংয়ের সাথে স্থির সমস্যা যেখানে SwipeRefreshLayout এর একটি স্ক্রোলযোগ্য প্যারেন্ট (যেমন ViewPager2 ) এবং একটি স্ক্রোলযোগ্য শিশু রয়েছে৷ ( b/138314213 )
সংস্করণ 1.1.0-alpha02
জুলাই 2, 2019
androidx.swiperefreshlayout:swiperefreshlayout:1.1.0-alpha02
প্রকাশিত হয়েছে। এই সংস্করণে অন্তর্ভুক্ত কমিটগুলি এখানে পাওয়া যাবে।
বাগ ফিক্স
- SwipeRefreshLayout এর রিফ্রেশিং অবস্থার সংরক্ষণ এবং পুনরুদ্ধার বাস্তবায়ন করা হয়েছে
- SwipeRefreshLayout একটি RecyclerView এ এমবেড করা হলে ব্যবহারযোগ্যতা বাগ সংশোধন করা হয়েছে
সংস্করণ 1.1.0-alpha01
ডিসেম্বর 3, 2018
এপিআই পরিবর্তন
- aosp/737631 :
SwipeRefreshLayout
এখন NestedScrollingChild3
এবং NestedScrollingParent3
প্রয়োগ করে, যা নেস্টেড স্ক্রোলিং 3 পিতামাতা এবং শিশুদের নেস্টেড স্ক্রোলিং দূরত্বের তথ্য SwipeRefreshLayout
মাধ্যমে পাস করতে সক্ষম করে। যদি ডেভেলপার কোড বর্তমানে SwipeRefreshLayout.onNestedScroll(View, int, int, int, int, int)
ওভাররাইড করে, তাহলে সম্ভবত এটিকে আর বলা হবে না এবং SwipeRefreshLayout.onNestedScroll(View, int, int, int, int, int, int[])
পরিবর্তে ওভাররাইড করা উচিত। একইভাবে, SwipeRefreshLayout.dispatchNestedScroll(int, int, int, int, int[], int)
সম্ভবত আর বলা হবে না এবং এর পরিবর্তে SwipeRefreshLayout.dispatchNestedScroll(int, int, int, int, int[], int, int[])
ওভার করা উচিত।
এই পৃষ্ঠার কন্টেন্ট ও কোডের নমুনাগুলি Content License-এ বর্ণিত লাইসেন্সের অধীনস্থ। Java এবং OpenJDK হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-29 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-07-29 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# Swiperefreshlayout\n==================\n\n[Code Sample](https://github.com/android/views-widgets-samples) \nAPI Reference \n[androidx.swiperefreshlayout.widget](/reference/kotlin/androidx/swiperefreshlayout/widget/package-summary) \nImplement the swipe-to-refresh UI pattern. \n\n| Latest Update | Stable Release | Release Candidate | Beta Release | Alpha Release |\n|-------------------|--------------------------------------------------------------|-------------------|----------------------------------------------------------------------------|---------------|\n| February 12, 2025 | [1.1.0](/jetpack/androidx/releases/swiperefreshlayout#1.1.0) | - | [1.2.0-beta01](/jetpack/androidx/releases/swiperefreshlayout#1.2.0-beta01) | - |\n\nDeclaring dependencies\n----------------------\n\nTo add a dependency on SwipeRefreshLayout, you must add the Google Maven repository to your\nproject. Read [Google's Maven repository](/studio/build/dependencies#google-maven)\nfor more information.\n\nAdd the dependencies for the artifacts you need in the `build.gradle` file for\nyour app or module: \n\n### Groovy\n\n```groovy\ndependencies {\n implementation \"androidx.swiperefreshlayout:swiperefreshlayout:1.1.0\"\n}\n```\n\n### Kotlin\n\n```kotlin\ndependencies {\n implementation(\"androidx.swiperefreshlayout:swiperefreshlayout:1.1.0\")\n}\n```\n\nFor more information about dependencies, see [Add build dependencies](/studio/build/dependencies).\n\nFeedback\n--------\n\nYour feedback helps make Jetpack better. Let us know if you discover new issues or have\nideas for improving this library. Please take a look at the\n[existing issues](https://issuetracker.google.com/issues?q=componentid:460836%20status:open)\nin this library before you create a new one. You can add your vote to an existing issue by\nclicking the star button.\n\n[Create a new issue](https://issuetracker.google.com/issues/new?component=460836&template=1422576)\n\nSee the [Issue Tracker documentation](https://developers.google.com/issue-tracker)\nfor more information.\n\nVersion 1.2.0\n-------------\n\n### Version 1.2.0-beta01\n\nFebruary 12, 2025\n\n`androidx.swiperefreshlayout:swiperefreshlayout:1.2.0-beta01` is released. Version 1.2.0-beta01 contains [these commits](https://android.googlesource.com/platform/frameworks/support/+log/9f60cc700129e30cee9df020005c317fb39d32ec..7344269b2d862d014a647efafcd7735f0d53f1da/swiperefreshlayout/swiperefreshlayout).\n\n**API Changes**\n\n- Specified nullability of `SwipeRefreshLayout` method parameters and return types ([I006d1](https://android-review.googlesource.com/#/q/I006d15100662ca77db65dd0cf4735c65cee84dfd), [b/236497776](https://issuetracker.google.com/issues/236497776))\n\n**Bug Fixes**\n\n- This library now uses [JSpecify nullness annotations](https://jspecify.dev/), which are type-use. Kotlin developers should use the following compiler argument to enforce correct usage: `-Xjspecify-annotations=strict` (this is the default starting with version 2.1.0 of the Kotlin compiler). ([Iaf490](https://android-review.googlesource.com/#/q/Iaf49080833b450a7dbba982367bfd863a2ead6ad), [b/326456246](https://issuetracker.google.com/issues/326456246))\n\n### Version 1.2.0-alpha01\n\nJuly 22, 2020\n\n`androidx.swiperefreshlayout:swiperefreshlayout:1.2.0-alpha01` is released. [Version 1.2.0-alpha01 contains these commits.](https://android.googlesource.com/platform/frameworks/support/+log/6b97b146b743340c9d9b6fa54e735404374f2a5f..9f60cc700129e30cee9df020005c317fb39d32ec/swiperefreshlayout/swiperefreshlayout)\n\n**Bug Fixes**\n\n- `requestDisallowInterceptTouchEvent(boolean)` now honors the request like any other ViewGroup. While strongly discouraged, new behavior can be disabled with `setLegacyRequestDisallowInterceptTouchEventEnabled`. ([I968da](https://android-review.googlesource.com/#/q/I968da769d8400caf6f52c8a12595ee19fb4c0773), [b/141855018](https://issuetracker.google.com/issues/141855018))\n\nVersion 1.1.0\n-------------\n\n### Version 1.1.0\n\nJune 24, 2020\n\n`androidx.swiperefreshlayout:swiperefreshlayout:1.1.0` is released. [Version 1.1.0 contains these commits.](https://android.googlesource.com/platform/frameworks/support/+log/6563b7854e79a3f7182efe27ee726867a091b603..6b97b146b743340c9d9b6fa54e735404374f2a5f/swiperefreshlayout/swiperefreshlayout)\n\n**Major changes since 1.0.0**\n\n- `SwipeRefreshLayout` now implements `NestedScrollingChild3` and `NestedScrollingParent3`.\n\n### Version 1.1.0-rc01\n\nApril 15, 2020\n\n`androidx.swiperefreshlayout:swiperefreshlayout:1.1.0-rc01` is released with no changes since `1.1.0-beta01`. [Version 1.1.0-rc01 contains these commits.](https://android.googlesource.com/platform/frameworks/support/+log/666ae665acfcfa2a20eccc18e4494808169742f4..6563b7854e79a3f7182efe27ee726867a091b603/swiperefreshlayout/swiperefreshlayout)\n\n### Version 1.1.0-beta01\n\nMarch 4, 2020\n\n`androidx.swiperefreshlayout:swiperefreshlayout:1.1.0-beta01` is released with no changes since `1.1.0-alpha03`. [Version 1.1.0-beta01 contains these commits.](https://android.googlesource.com/platform/frameworks/support/+log/f14ad350142290622d1645e1d0e280cbe8ca4c2f..666ae665acfcfa2a20eccc18e4494808169742f4/swiperefreshlayout/swiperefreshlayout)\n\n### Version 1.1.0-alpha03\n\nOctober 9, 2019\n\n`androidx.swiperefreshlayout:swiperefreshlayout:1.1.0-alpha03` is released. [Version 1.1.0-alpha03 contains these commits](https://android.googlesource.com/platform/frameworks/support/+log/9a7b3cb32a2c7adac9b7af4bc2f996f1eb79fc12..f14ad350142290622d1645e1d0e280cbe8ca4c2f/swiperefreshlayout).\n\n**New features**\n\n- We have a new style attribute `R.styleable.SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor`to set the background color of the progress indicator. ([aosp/931124](https://android-review.googlesource.com/931124))\n\n**API changes**\n\n- `requestDisallowInterceptTouchEvent(boolean)` now always propagates up to its parents. While strongly discouraged, new behavior can be disabled with `setLegacyRequestDisallowInterceptTouchEventEnabled`. ([aosp/1108540](https://android-review.googlesource.com/1108540))\n\n**Bug fixes**\n\n- Fixed issue with nested scrolling where SwipeRefreshLayout has a scrollable parent (e.g. [ViewPager2](/jetpack/androidx/releases/viewpager2)) and a scrollable child. ([b/138314213](https://issuetracker.google.com/issues/138314213))\n\n### Version 1.1.0-alpha02\n\nJuly 2, 2019\n\n`androidx.swiperefreshlayout:swiperefreshlayout:1.1.0-alpha02` is released. The commits included in this version can be found [here](https://android.googlesource.com/platform/frameworks/support/+log/d9ca300b3f70db75744a6d743f85e3784287434a..9a7b3cb32a2c7adac9b7af4bc2f996f1eb79fc12/swiperefreshlayout).\n| **Note:** This version is dependent on the Java 8 programming language. Please read [Use Java 8 language features](/studio/write/java8-support) to learn how to use it in your project.\n\n**Bug fixes**\n\n- Implemented saving and restoring of the refreshing state of SwipeRefreshLayout\n- Fixed usability bug when SwipeRefreshLayout is embedded in a RecyclerView\n\n### Version 1.1.0-alpha01\n\nDecember 3, 2018\n\n**API changes**\n\n- [aosp/737631](): `SwipeRefreshLayout` now implements `NestedScrollingChild3` and `NestedScrollingParent3`, enabling nested scrolling 3 parents and children to pass consumed nested scrolling distance information through `SwipeRefreshLayout`. If developer code currently overrides `SwipeRefreshLayout.onNestedScroll(View, int, int, int, int, int)`, it will likely no longer be called and `SwipeRefreshLayout.onNestedScroll(View, int, int, int, int, int, int[])` should be overridden instead. Likewise, `SwipeRefreshLayout.dispatchNestedScroll(int, int, int, int, int[], int)` will likely no longer be called and `SwipeRefreshLayout.dispatchNestedScroll(int, int, int, int, int[], int, int[])` should be overridden instead."]]