কম্পোজ ফাউন্ডেশন

বিল্ডিং ব্লক ব্যবহার করার জন্য প্রস্তুত সহ জেটপ্যাক কম্পোজ অ্যাপ্লিকেশন লিখুন এবং আপনার নিজস্ব ডিজাইন সিস্টেম টুকরা তৈরি করতে ভিত্তি প্রসারিত করুন।
সর্বশেষ আপডেট স্থিতিশীল রিলিজ মুক্তির প্রার্থী বিটা রিলিজ আলফা রিলিজ
জুলাই 24, 2024 1.6.8 - 1.7.0-beta06 -

গঠন

কম্পোজ হল androidx এর মধ্যে 7টি Maven Group Id-এর সংমিশ্রণ। প্রতিটি গোষ্ঠীতে কার্যকারিতার একটি লক্ষ্যযুক্ত উপসেট রয়েছে, প্রতিটির নিজস্ব রিলিজ নোটের সেট রয়েছে।

এই টেবিলটি রিলিজ নোটের প্রতিটি সেটের গ্রুপ এবং লিঙ্কগুলি ব্যাখ্যা করে।

গ্রুপ বর্ণনা
compose.animation ব্যবহারকারীর অভিজ্ঞতাকে সমৃদ্ধ করতে তাদের জেটপ্যাক রচনা অ্যাপ্লিকেশনগুলিতে অ্যানিমেশন তৈরি করুন।
compose.compiler @Composable ফাংশন ট্রান্সফর্ম করুন এবং একটি Kotlin কম্পাইলার প্লাগইন দিয়ে অপ্টিমাইজেশান সক্ষম করুন।
compose.foundation বিল্ডিং ব্লক ব্যবহার করার জন্য প্রস্তুত সহ জেটপ্যাক কম্পোজ অ্যাপ্লিকেশন লিখুন এবং আপনার নিজস্ব ডিজাইন সিস্টেম টুকরা তৈরি করতে ভিত্তি প্রসারিত করুন।
compose.material মেটেরিয়াল ডিজাইন কম্পোনেন্ট ব্যবহারের জন্য প্রস্তুত জেটপ্যাক কম্পোজ UI তৈরি করুন। এটি রচনার উচ্চ স্তরের এন্ট্রি পয়েন্ট, যা www.material.io-তে বর্ণিত উপাদানগুলির সাথে মেলে এমন উপাদানগুলি প্রদান করার জন্য ডিজাইন করা হয়েছে৷
compose.material3 মেটেরিয়াল ডিজাইন 3 উপাদান সহ জেটপ্যাক কম্পোজ UI তৈরি করুন, মেটেরিয়াল ডিজাইনের পরবর্তী বিবর্তন। মেটেরিয়াল 3-এ আপডেটেড থিমিং এবং উপাদান এবং মেটেরিয়াল ইউ ব্যক্তিগতকরণ বৈশিষ্ট্য রয়েছে যেমন ডায়নামিক কালার, এবং নতুন Android 12 ভিজ্যুয়াল স্টাইল এবং সিস্টেম UI এর সাথে সমন্বয় করার জন্য ডিজাইন করা হয়েছে।
compose.runtime কম্পোজের প্রোগ্রামিং মডেল এবং স্টেট ম্যানেজমেন্টের মৌলিক বিল্ডিং ব্লক এবং কম্পোজ কম্পাইলার প্লাগইনকে লক্ষ্য করার জন্য মূল রানটাইম।
compose.ui লেআউট, অঙ্কন এবং ইনপুট সহ ডিভাইসের সাথে ইন্টারঅ্যাক্ট করার জন্য কম্পোজ UI এর মৌলিক উপাদানগুলি প্রয়োজন।

নির্ভরতা ঘোষণা করা

রচনার উপর নির্ভরতা যোগ করতে, আপনাকে অবশ্যই আপনার প্রকল্পে Google Maven সংগ্রহস্থল যোগ করতে হবে। আরও তথ্যের জন্য Google এর Maven সংগ্রহস্থল পড়ুন।

আপনার অ্যাপ বা মডিউলের জন্য build.gradle ফাইলে আপনার প্রয়োজনীয় আর্টিফ্যাক্টগুলির জন্য নির্ভরতা যোগ করুন:

গ্রোভি

dependencies {
    implementation "androidx.compose.foundation:foundation:1.6.8"
}

android {
    buildFeatures {
        compose true
    }

    composeOptions {
        kotlinCompilerExtensionVersion = "1.5.14"
    }

    kotlinOptions {
        jvmTarget = "1.8"
    }
}

কোটলিন

dependencies {
    implementation("androidx.compose.foundation:foundation:1.6.8")
}

android {
    buildFeatures {
        compose = true
    }

    composeOptions {
        kotlinCompilerExtensionVersion = "1.5.14"
    }

    kotlinOptions {
        jvmTarget = "1.8"
    }
}

নির্ভরতা সম্পর্কে আরও তথ্যের জন্য, বিল্ড নির্ভরতা যুক্ত করুন দেখুন।

প্রতিক্রিয়া

আপনার প্রতিক্রিয়া জেটপ্যাককে আরও ভাল করতে সাহায্য করে। আপনি যদি নতুন সমস্যা আবিষ্কার করেন বা এই লাইব্রেরির উন্নতির জন্য ধারনা পান তাহলে আমাদের জানান। আপনি একটি নতুন তৈরি করার আগে অনুগ্রহ করে এই লাইব্রেরিতে বিদ্যমান সমস্যাগুলি দেখুন৷ আপনি তারকা বোতামে ক্লিক করে একটি বিদ্যমান সমস্যায় আপনার ভোট যোগ করতে পারেন।

একটি নতুন সমস্যা তৈরি করুন

আরও তথ্যের জন্য ইস্যু ট্র্যাকার ডকুমেন্টেশন দেখুন।

সংস্করণ 1.7

সংস্করণ 1.7.0-beta06

জুলাই 24, 2024

androidx.compose.foundation:foundation-*:1.7.0-beta06 প্রকাশিত হয়েছে। সংস্করণ 1.7.0-beta06-এ এই কমিট রয়েছে।

সংস্করণ 1.7.0-beta05

10 জুলাই, 2024

androidx.compose.foundation:foundation-*:1.7.0-beta05 প্রকাশিত হয়েছে। সংস্করণ 1.7.0-beta05-এ এই কমিট রয়েছে।

বাগ ফিক্স

  • SnapFlingBehavior এবং পেজারে ন্যান মানগুলির চিকিত্সার জন্য ঠিক করুন।

সংস্করণ 1.7.0-beta04

জুন 26, 2024

androidx.compose.foundation:foundation-*:1.7.0-beta04 প্রকাশিত হয়েছে। 1.7.0-beta04 সংস্করণে এই কমিটগুলি রয়েছে।

বাগ ফিক্স

  • খুব বড় টেক্সট লাইন (যেমন 10k অক্ষর) পরিমাপ করার সময় ক্র্যাশ এড়িয়ে চলুন ( 8157ab )
  • নতুন BasicTextField ( 6b7575 ) এ ক্র্যাশ সৃষ্টিকারী খুব বড় পাঠের পরিমাপ ঠিক করে
  • সারি/কলাম পরিমাপের একটি আচরণ পরিবর্তনকে ফিরিয়ে দেয় যা নির্দিষ্ট পরিস্থিতিতে পাঠ্যের ব্যবহারকে ভেঙে দেয় ( 69e8ba )

সংস্করণ 1.7.0-beta03

জুন 12, 2024

androidx.compose.foundation:foundation-*:1.7.0-beta03 প্রকাশিত হয়েছে। 1.7.0-beta03 সংস্করণে এই কমিটগুলি রয়েছে।

সংস্করণ 1.7.0-beta02

29 মে, 2024

androidx.compose.foundation:foundation-*:1.7.0-beta02 প্রকাশিত হয়েছে। সংস্করণ 1.7.0-beta02-এ এই কমিট রয়েছে।

এপিআই পরিবর্তন

  • LazyLists এর জন্য বিদ্যমান পরীক্ষামূলক API-এর অনুরূপ LazyGrids এর প্রিফেচ আচরণ কনফিগার করার জন্য একটি পরীক্ষামূলক API যোগ করে। এর মধ্যে রয়েছে নেস্টেড LazyGrids এ আইটেম প্রিফেচ করার জন্য সমর্থন। LazyListPrefetchStrategy এর মতই, বাস্তবায়নের ডিফল্ট হল প্রতিটি গ্রিডের প্রথম 2টি নেস্টেড আইটেম প্রিফেচ করা, কিন্তু এটি নতুন LazyGridPrefetchStrategy(nestedPrefetchItemCount) এবং LazyListPrefetchStrategy#onNestedPrefetch দ্বারা কনফিগার করা যেতে পারে। ( I591c4 )
  • নাম পরিবর্তন করে SemanticsProperties.EditableIsEditable এবং SemanticsPropertyReceiver.editable val isEditable এ পরিবর্তন করা হয়েছে। সম্পত্তি এখন একটি বুলিয়ান এবং সর্বদা পাঠ্য ক্ষেত্র দ্বারা নির্দিষ্ট করা হয়। ( I8acd8 )
  • basicMarquee ডিফল্ট মানগুলিকে MarqueeDefaults অবজেক্টে সরানো হয়েছে। ( I12ff6 )
  • basicMarquee delayMillis পরামিতির নাম রিপিট করে repeatDelayMillis । ( I12ff6 )
  • লিঙ্কগুলি স্টাইল করার জন্য API আপডেট করুন: TextLinkStyles গুলিকে TextStyle এ সরানো হয়েছে এবং উপাদান থেকে TextDefaults সরিয়ে দেওয়া হয়েছে ( I5477b )

বাগ ফিক্স

  • এর উদ্দেশ্যকে আরও ভালভাবে প্রতিফলিত করার জন্য LayoutCoordinates.introducesMotionFrameOfReference LayoutCoordinates.introducesFrameOfReference করা হয়েছে। সেই পতাকার উপর ভিত্তি করে স্থানাঙ্ক গণনা করতে সম্পর্কিত ফাংশনের নাম পরিবর্তন করা হয়েছে। ( I3a330 )
  • MarqueeDefaults বৈশিষ্ট্য থেকে 'ডিফল্ট' সরানো হয়েছে। ( I1d8a0 )
  • MarqueeDefaults বৈশিষ্ট্য থেকে 'Marquee' সরানো হয়েছে। ( Iad4f4 )
  • TextStyle ক্লাস থেকে TextLinkStyles সরানো হয়েছে। পরিবর্তে, TextLinkStyles হল LinkAnntation কনস্ট্রাক্টরের অংশ এবং AnnotatedString.fromHtml পদ্ধতি ( I90b2b )
  • একটি বাগ সংশোধন করা হয়েছে যেখানে পেজার একটি বাউন্ডের দিকে ঝাঁপিয়ে পড়ার সময় স্ন্যাপ করবে যখন ইতিমধ্যেই বাউন্ডে সেটেল হয়ে গেছে। ( I9f373 , b/339171222 )
  • BTF2 এখন সঠিক মাউস নির্বাচন অঙ্গভঙ্গি আছে. ( Ibe8c6 )

বাহ্যিক অবদান

  • পুনরায় জমা দিন 'নির্ভুলতা উন্নত করতে প্রিফেচে ভিত্তিক কম্পোজ/মেজার সময় গণনা বিষয়বস্তু-টাইপ' ( Iea622 )
  • নির্ভুলতা উন্নত করতে প্রিফেচ-এর উপর ভিত্তি করে কম্পোজ/মেজার সময় গণনার বিষয়বস্তু-টাইপ করুন ( Ibccb1 )
  • সাধারণ উৎস সেট ( I070b2 ) থেকে WindowInsetsPadding মডিফায়ার উপলব্ধ করুন

সংস্করণ 1.7.0-beta01

14 মে, 2024

androidx.compose.foundation:foundation-*:1.7.0-beta01 প্রকাশিত হয়েছে। সংস্করণ 1.7.0-beta01-এ এই কমিট রয়েছে।

এপিআই পরিবর্তন

  • যোগ করা হয়েছে KeyboardOptions.shouldShowKeyboardOnFocus প্রপার্টি বাইনারি সামঞ্জস্যের জন্য লুকানো অবচয় হিসাবে ফিরে এসেছে। ( I15cfe )
  • Modifier.anchoredDraggable এখন RTL লেআউটে ব্যবহার করা হলে অনুভূমিক অভিযোজন সহ উপাদানগুলির জন্য ডিফল্টরূপে ড্র্যাগ ডেল্টাকে বিপরীত করে। ( I3c6d9 )
  • AnnotatedString.hasEqualsAnnotations এখন hasEqualAnnotations . ( I685c0 )
  • টেক্সটে মেটেরিয়াল থিমযুক্ত লিঙ্ক পাওয়ার জন্য API আপডেট করা হয়েছে। বিশেষত, থিমযুক্ত LinkAnnotations এবং থিমযুক্ত লিঙ্কগুলির সাথে HTML পার্স করার জন্য TextDefaults থেকে পদ্ধতিগুলি সরিয়ে দেওয়া হয়েছে। পরিবর্তে, একটি TextLinkStyles ক্লাস যোগ করা হয়েছে যা টেক্সট কম্পোজেবলের প্যারামিটার হিসাবে লিঙ্কগুলিকে স্টাইল করার অনুমতি দেয়। ( I31b93 )
  • onDragStarted এবং onDragStopped নন-সাসপেন্ড কলব্যাকগুলির সাথে প্রতিস্থাপিত। ( I59de8 )

বাগ ফিক্স

  • contentPadding ইনকামিং সীমাবদ্ধতার চেয়ে বড় হলে পেজার ক্র্যাশ করবে যেখানে একটি বাগ সংশোধন করা হয়েছে। পেজার এখন PageSize থেকে 0-তে ফেরত নেতিবাচক মানগুলিকে জোর করে। ( Iba5d8 , b/314008560 )

সংস্করণ 1.7.0-alpha08

1 মে, 2024

androidx.compose.foundation:foundation-*:1.7.0-alpha08 প্রকাশিত হয়েছে। সংস্করণ 1.7.0-alpha08-এ এই কমিট রয়েছে।

নতুন বৈশিষ্ট

  • কাটা, অনুলিপি, পেস্ট এবং নির্বাচন-সমস্ত ক্রিয়াগুলির জন্য আইটেম সহ BasicTextField এবং SelectionContainer রাইট-ক্লিক প্রসঙ্গ মেনু যোগ করা হয়েছে। ( if8c93 , Ia2b49 , I6f268 )

এপিআই পরিবর্তন

  • LazyLayout প্রিফেচ অনুরোধগুলি এখন জরুরী হিসাবে চিহ্নিত করা যেতে পারে, যার অর্থ আমরা আশা করি এই আইটেমটি পরবর্তী ফ্রেমে প্রয়োজন হবে এবং আগে থেকে আরও কাজ করা নিশ্চিত করতে ফ্রেম বাজেট উপেক্ষা করতে চাই ( Id513f )
  • introducesFrameOfReference জন্য isPositionedByParentWithDirectManipulation নাম পরিবর্তন করা হয়েছে। মনে রাখবেন যে এটির এখন বিপরীত প্রভাব রয়েছে, যার অর্থ ডিফল্টরূপে, বেশিরভাগ LayoutCoordinates রেফারেন্সের একটি ফ্রেম প্রবর্তন করে এবং, শুধুমাত্র যখন সরাসরি ম্যানিপুলেশনের অধীনে স্থাপন করা হয় তখন সম্পত্তিটি মিথ্যা হবে। শুধুমাত্র একটি রেফারেন্সের ফ্রেম প্রবর্তনকারীর সাথে অবস্থান অনুসন্ধান করতে, positionInLocalFrameOfReference(...) ব্যবহার করুন। অথবা একটি LookaheadScope থেকে positionInLocalLookaheadFrameOfReference । ( ifc5f7 )
  • LinkInteractionListener ( Iaa35c ) এর ভিতরে onClicked to onClick এর নাম পরিবর্তন করা হয়েছে
  • API কাউন্সিল প্রতিক্রিয়া অনুযায়ী getScrollViewportLength এর জন্য অ্যাকশন ল্যাম্বডা পরিবর্তন করুন। ( Ibc74a )
  • স্টাইলাস হ্যান্ডরাইটিং ডেলিগেশন API-এর নাম পরিবর্তন করা হয়েছে। ( Ica45f , b/327271923 )
  • TextInclusionStrategy.isInside নাম পরিবর্তন করে isIncludedParagraph/MultiParagraph#getRangeForRect() রিটার্ন টাইপটি বাতিলযোগ্য নয়। ( I51f26 )

বাগ ফিক্স

  • SelectionContainer এ সমস্ত পাঠ্য প্রাসঙ্গিক মেনুতে "সব নির্বাচন করুন" যোগ করা হয়েছে। ( Ib750e , b/240143283 )
  • reverseScrolling=true সহ পাত্রে স্ক্রল করার জন্য স্থায়ী দীর্ঘ স্ক্রিনশট ক্যাপচার। ( I7c59c )
  • একটি সমস্যা সমাধান করা হয়েছে যেখানে AnchoredDraggableState এর currentValue রাজ্যের সীমার কাছে যাওয়ার সময় পরিবর্তিত হবে। ( IEA30b , b/333846848 )

বাহ্যিক অবদান

  • এর দায়িত্বগুলিকে আরও ভালভাবে প্রতিফলিত করার জন্য PrefetchExecutor -> PrefetchScheduler নামকরণ করা হয়েছে। ( Ib9154 )
  • নেস্টেড LazyLists এ আইটেম প্রিফেচ করার জন্য সমর্থন যোগ করা হয়েছে (যেমন একটি LazyColumn যা নেস্টেড LazyRows রেন্ডার করে)। এই LazyLists এর জন্য স্ক্রল করার সময় এই পরিবর্তনটি ফ্রেম ড্রপ কমিয়ে দেবে বলে আশা করা হচ্ছে। বাস্তবায়ন ডিফল্ট হল প্রথম 2টি নেস্টেড আইটেম প্রিফেচ করা, তবে এই আচরণটি নতুন LazyLayoutPrefetchStrategy(nestedPrefetchItemCount) এবং LazyListPrefetchStrategy#onNestedPrefetch APIs দ্বারা নিয়ন্ত্রিত হতে পারে। ( I51952 )

সংস্করণ 1.7.0-alpha07

এপ্রিল 17, 2024

androidx.compose.foundation:foundation-*:1.7.0-alpha07 প্রকাশিত হয়েছে। সংস্করণ 1.7.0-alpha07-এ এই কমিট রয়েছে।

নতুন বৈশিষ্ট

  • একটি TextDefaults অবজেক্ট যোগ করা হয়েছে যাতে একটি LinkAnnotation তৈরি করার পদ্ধতি রয়েছে এবং HTML-ট্যাগযুক্ত স্ট্রিং পার্স করে যা লিঙ্কগুলিতে MaterialTheme প্রয়োগ করে। ( I98532 , b/139312671 )
  • LazyVerticalGrid এবং LazyHorizontalGrid এ আইটেমের উপস্থিতি এবং অন্তর্ধান অ্যানিমেশন সমর্থন যোগ করা হয়েছে। পূর্বে প্লেসমেন্ট (পুনঃক্রম) অ্যানিমেশন সমর্থন করার জন্য Modifier.animateItemPlacement() সংশোধক যোগ করা সম্ভব ছিল। আমরা এই সংশোধকটিকে অবমূল্যায়ন করেছি এবং Modifier.animateItem() নামে একটি নতুন অ-পরীক্ষামূলক সংশোধক প্রবর্তন করেছি যা আপনাকে তিনটি অ্যানিমেশন প্রকারকে সমর্থন করতে দেয়: চেহারা (ফেড ইন), অদৃশ্য হওয়া (বিবর্ণ হওয়া) এবং পুনরায় সাজানো৷ ( Ib7d12 , b/330510929 )
  • আইটেমের উপস্থিতি এবং অন্তর্ধান অ্যানিমেশন সমর্থন LazyVerticalStaggeredGrid এবং LazyHorizontalStaggeredGrid এ যোগ করা হয়েছে। পূর্বে প্লেসমেন্ট (পুনঃক্রম) অ্যানিমেশন সমর্থন করার জন্য Modifier.animateItemPlacement() সংশোধক যোগ করা সম্ভব ছিল। আমরা এই সংশোধকটিকে অবমূল্যায়ন করেছি এবং Modifier.animateItem() নামে একটি নতুন অ-পরীক্ষামূলক সংশোধক প্রবর্তন করেছি যা আপনাকে তিনটি অ্যানিমেশন প্রকারকে সমর্থন করতে দেয়: চেহারা (ফেড ইন), অদৃশ্য হওয়া (বিবর্ণ হওয়া) এবং পুনরায় সাজানো৷ ( I69bc9 , b/330511290 )

এপিআই পরিবর্তন

  • ContextMenuColors এবং সংশ্লিষ্ট LocalContextMenuTheme ProvidableCompositionLocal যোগ করে। টেক্সট ক্ষেত্র এবং নির্বাচনযোগ্য পাঠ্যের প্রসঙ্গ মেনুর রং স্থানীয় রচনা প্রদান করে পরিবর্তন করা যেতে পারে। ( IFa154 )
  • সাধারণ স্টাইলিং ছাড়াও টেক্সট লিঙ্কগুলি চাপানো স্টেট স্টাইলিং বিকল্প পেয়েছে, হোভার করা এবং ফোকাস করা হয়েছে। ( I5f864 , b/139312671 )
  • হাতের লেখার অঙ্গভঙ্গির জন্য ViewConfiguration.HandwritingGestureLineMargin প্রবর্তন করুন। BasicTextField জন্য হাতের লেখার অঙ্গভঙ্গি সমর্থন করুন। ( Ie6e13 , b/325660505 )
  • 1.7 রিলিজের জন্য DelegatableNode.scrollIntoView সরানো হয়েছে যেহেতু আমাদের কাছে সংশ্লিষ্ট API পৃষ্ঠের বাকি অংশ স্থিতিশীল করার সময় নেই। এই ফাংশনটি 1.8 ( I6cf61 , b/333421581 , b/332900232 ) এ পুনরায় চালু করা হবে
  • লেআউট স্থানাঙ্ক অনুসন্ধান করার সময়, আপনি এখন প্যারেন্ট লেআউট দ্বারা সেট করা অফসেট বাদ দিতে excludeDirectManipulationOffset আর্গুমেন্ট ব্যবহার করতে পারেন যা Placeable.PlacementScope.withDirectManipulationPlacement ব্যবহার করে তাদের সন্তানদের রেখেছে। একইভাবে, একটি লেআউট যা তার বাচ্চাদের অবস্থান ঘন ঘন পরিবর্তন করে এখন withDirectManipulationPlacement (যেমন স্ক্রোল, ডিফল্টরূপে বাস্তবায়িত) ব্যবহার করে তাদের স্থাপন করতে পারে। এটি অ্যানিমেট করার জন্য কী অফসেট করতে হবে এবং তাদের পদ্ধতির অ্যানিমেট করার সিদ্ধান্ত নেওয়ার সময় সরাসরি কী প্রয়োগ করতে হবে তা আলাদা করার সুযোগ পেয়ে এটি approachLayout ভিত্তিক অ্যানিমেশনগুলিকে আরও স্বজ্ঞাত হতে সাহায্য করে৷ ( I60ec7 )
  • LazyStaggeredGrid এর জন্য requestScrollToItem প্রবর্তন করুন। প্রতিটি পরিমাপ-পাসের জন্য, ক্লায়েন্ট এখন requestScrollToItem এ কল করে কী-এর উপর ভিত্তি করে সূচক বজায় রাখা থেকে অপ্ট-আউট করতে পারে। requestScrollToItem কল না করা পর্যন্ত এটি কোনোভাবেই বিদ্যমান আচরণ পরিবর্তন করে না। ( I63983 )
  • পেজারে requestScrollToPage প্রবর্তন করুন। প্রতিটি পরিমাপ-পাসের জন্য, ক্লায়েন্ট এখন requestScrollToPage এ কল করে কী-এর উপর ভিত্তি করে সূচক বজায় রাখা থেকে অপ্ট-আউট করতে পারে। requestScrollToPage কল না করা পর্যন্ত এটি কোনোভাবেই বিদ্যমান আচরণ পরিবর্তন করে না। ( IC4213 )
  • LazyGrids এর জন্য requestScrollToItem চালু করা হয়েছে। প্রতিটি পরিমাপ-পাসের জন্য, ক্লায়েন্ট এখন requestScrollToItem এ কল করে কী-এর উপর ভিত্তি করে সূচক বজায় রাখা থেকে অপ্ট-আউট করতে পারে। requestScrollToItem কল না করা পর্যন্ত এটি কোনোভাবেই বিদ্যমান আচরণ পরিবর্তন করে না। ( I0a7a0 )
  • ClickableText অবচিত হিসাবে চিহ্নিত করা হয়েছে। পাঠ্যটিতে লিঙ্ক যুক্ত করতে, আপনার লিঙ্কের সাথে সম্পর্কিত একটি LinkAnnotation সহ একটি AnnotatedString তৈরি করুন এবং এই AnnotatedString টি Text রচনাযোগ্য ( I34d4b , b/323346994 ) এ পাস করুন।
  • UrlAnnotation বাতিল করা হয়েছে, পরিবর্তে LinkAnnotation.Url ব্যবহার করুন। আপনি যদি ম্যাটেরিয়াল থিমিং ব্যবহার করে থাকেন, তাহলে TextDefaults অবজেক্ট ব্যবহার করুন যাতে ম্যাটেরিয়াল থিমিং এর সাথে টীকা তৈরি করা যায় ( I8d180 , b/323346545 )
  • String.parseAsHtml নাম পরিবর্তন করে AnnotatedString.Companion.fromHtml ( I43dcd )
  • parseAsHtml পদ্ধতিতে স্টাইলিং আর্গুমেন্ট ( linkStyle , focusedLinkStyle , hoveredLinkStyle ) এবং একটি লিঙ্ক ইন্টারঅ্যাকশন লিসেনার যোগ করা হয়েছে। HTML-ট্যাগযুক্ত স্ট্রিংকে <a> ট্যাগের সাথে পার্স করার সময়, পদ্ধতিটি এই জাতীয় প্রতিটি ট্যাগের জন্য একটি LinkAnnotation.Url তৈরি করবে এবং প্রতিটি টীকাতে স্টাইলিং অবজেক্ট এবং লিঙ্ক ইন্টারঅ্যাকশন লিসেনারকে পাস করবে। ( I7c977 )
  • LinkAnnotation এখন স্টেট-ভিত্তিক স্টাইলিং আর্গুমেন্ট এবং একটি LinkInteractionListener নেয়। একটি হাইপারলিঙ্ক পেতে AnnotatedString এ এই টীকা যোগ করুন। focusedState এবং/অথবা hoveredState পাস করে আপনি লিঙ্কগুলির জন্য ভিজ্যুয়াল কনফিগারেশন নির্ধারণ করতে পারেন যখন সেগুলি ফোকাস করা হয় এবং/অথবা হোভার করা হয়। ( I81ce4 , b/139312671 )
  • দীর্ঘ স্ক্রিনশটগুলির জন্য বৈশিষ্ট্য পতাকা সরানো হয়েছে৷ ( I28648 , b/329128246 )
  • LazyColumn এখন লম্বা স্ক্রিনশটে স্টিকি হেডার সঠিকভাবে রেন্ডার করবে। ( I8d239 , b/329296635 )
  • নতুন BasicTextField সাথে প্রবর্তিত বাকী পরীক্ষামূলক APIগুলির বেশিরভাগই স্থিতিশীল। ( I714e2 )
  • BasicSecureTextFieldtextObfuscationCharacter প্যারামিটার যোগ করা হয়েছে যা বিষয়বস্তু অস্পষ্ট করার সময় কোন অক্ষর ব্যবহার করতে হবে তা নিয়ন্ত্রণ করে। ( I0588b )
  • NestedScroll উত্সগুলির বর্ধিত সংজ্ঞা যা এখন অ্যানিমেশন (সাইড ইফেক্ট) এবং মাউস হুইল এবং কীবোর্ড ( UserInput ) অন্তর্ভুক্ত করে সেই উত্সগুলির বর্ধিত সংজ্ঞার জন্য মিটমাট করতে UserInput এবং SideEffect দ্বারা ড্র্যাগ এবং ফ্লিং প্রতিস্থাপিত হচ্ছে৷ ( I40579 )
  • LocalBringIntoViewSpec প্রবর্তন করুন, একটি প্ল্যাটফর্ম নির্ভর ফোকাস স্ক্রোলিং আচরণ যা স্ক্রোলযোগ্য মডিফায়ার স্তরে প্রয়োগ করা হয়। ( I27aa5 , b/317453911 )
  • TextFieldCharSequence সরানো হয়েছে। TextFieldBuffer.originalValues ​​কে TextFieldBuffer.originalText এবং TextFieldBuffer.originalSelection দিয়ে প্রতিস্থাপিত করা হয়েছে। ( I2c7d6 )
  • ImeOptions.hintLocales আর বাতিলযোগ্য নয়। আপনি যদি একটি খালি লোকেল তালিকা পাস করতে চান, তাহলে অনুগ্রহ করে LocaleList.Empty ব্যবহার করুন। ( IC5bc4 )
  • getOffsetDistanceInPagesgetOffsetFractionForPage নাম পরিবর্তন করা হয়েছে। ( IA05e2 )

বাগ ফিক্স

  • যখন InputTransformations next সাথে যুক্ত হয়, তখন তাদের KeyboardOptions এখন নতুন KeyboardOptions.merge পদ্ধতি ব্যবহার করে পৃথক বিকল্প দ্বারা সঠিকভাবে মার্জ করা হয়। ( IE5304 , b/295951492 )
  • AnchoredDraggableState এর targetValue এখন আর অবস্থানগত থ্রেশহোল্ড বিবেচনা করে না । এটির এখন 50% এর অন্তর্নিহিত থ্রেশহোল্ড রয়েছে, যার অর্থ দুটি অ্যাঙ্করের মধ্যবিন্দুতে targetValue পরিবর্তিত হয়। ( I82c2c )

বাহ্যিক অবদান

  • 2টি স্ক্রোল API ( I56a75 ) পুনঃনামকরণ করা হয়েছে

সংস্করণ 1.7.0-alpha06

3 এপ্রিল, 2024

androidx.compose.foundation:foundation-*:1.7.0-alpha06 প্রকাশিত হয়েছে। সংস্করণ 1.7.0-alpha06-এ এই কমিট রয়েছে।

নতুন বৈশিষ্ট

  • LazyColumn এবং LazyRow এ আইটেমের উপস্থিতি এবং অন্তর্ধান অ্যানিমেশন সমর্থন যোগ করা হয়েছে। পূর্বে প্লেসমেন্ট (পুনঃক্রম) অ্যানিমেশন সমর্থন করার জন্য Modifier.animateItemPlacement() সংশোধক যোগ করা সম্ভব ছিল। আমরা এই সংশোধকটিকে অবমূল্যায়ন করেছি এবং Modifier.animateItem() নামে একটি নতুন অ-পরীক্ষামূলক সংশোধক প্রবর্তন করেছি যা আপনাকে তিনটি অ্যানিমেশন প্রকারকে সমর্থন করতে দেয়: চেহারা (ফেড ইন), অদৃশ্য হওয়া (বিবর্ণ হওয়া) এবং পুনরায় সাজানো৷ ( I2d7f7 , b/150812265 )
  • LazyColumn/LazyRow এর ক্লায়েন্টরা এখন একটি নন-সাসপেন্ড LazyListState.requestToScroll এ কল করে আসন্ন পরিমাপ-পাসের কী-এর উপর ভিত্তি করে একটি সূচক বজায় রাখা থেকে অপ্ট-আউট করতে পারে। ( I98036 , b/209652366 )
  • স্টাইল করা স্ট্রিংগুলির জন্য parseAsHtml পদ্ধতি যোগ করা হয়েছে: এটি HTML ট্যাগ দ্বারা চিহ্নিত একটি স্ট্রিংকে AnnotatedString এ রূপান্তর করতে দেয়। মনে রাখবেন যে সমস্ত ট্যাগ সমর্থিত নয়, উদাহরণস্বরূপ আপনি এখনও বুলেট তালিকা প্রদর্শন করতে সক্ষম হবেন না। ( I84d3d )
  • অফিসিয়াল Android API ( ScrollCaptureCallback ) ব্যবহার করে কম্পোজ স্ক্রোল পাত্রে দীর্ঘ স্ক্রিনশটগুলির জন্য পরীক্ষামূলক সমর্থন প্রয়োগ করা হয়েছে। এই বৈশিষ্ট্যটি পরীক্ষামূলক এবং বর্তমানে সমস্ত ক্ষেত্রে সঠিকভাবে পরিচালনা নাও করতে পারে৷ যে কারণে এটি বর্তমানে ডিফল্টরূপে অক্ষম করা হয়েছে। অপ্ট-ইন করতে, ComposeFeatureFlag_LongScreenshotsEnabled পতাকাটিকে সত্যে সেট করুন৷ এই পতাকা 1.7 বিটা আগে সরানো হবে. ( I2b055 , b/329296471 )
  • GraphicsLayer দৃষ্টান্ত স্থাপন এবং রেন্ডারিংয়ে আরও নমনীয়তা প্রদান করতে নতুন GraphicsLayer API প্রবর্তন করুন এবং GraphicsLayer সংশোধক দৃষ্টান্তগুলি নির্দিষ্ট করতে কম্পোজেবল বাস্তবায়নের সাথে সমন্বয় করার প্রয়োজন ছাড়াই অন্তর্নিহিত রেন্ডারিং বৈশিষ্ট্যগুলিকে সমর্থন করুন৷

এপিআই পরিবর্তন

  • সমস্ত KeyboardOptions প্যারামিটারের এখন ডিফল্টরূপে একটি অনির্দিষ্ট মান রয়েছে। KeyboardOptions.merge পদ্ধতি যোগ করা হয়েছে।
  • KeyboardOptions.autoCorrect থেকে autoCorrectEnabled এ পুনঃনামকরণ করা হয়েছে এবং এটিকে বাতিলযোগ্য করা হয়েছে, যেখানে নাল নির্দেশ করে কোনো মান নির্দিষ্ট করা হয়নি। ( IA8ba0 , b/295951492 )
  • outOfBoundsPageCount নাম পরিবর্তন করে beyondViewportPageCount করা হয়েছে। ( I129c6 )
  • fun ClipEntry.getMetadata() val ClipEntry.clipMetadata এ পরিবর্তিত হয়েছে। ( I50155 )
  • TextFieldState.valueAsFlow() সরানো হয়েছে। snapshotFlow { state.text } , অথবা snapshotFlow { TextFieldCharSequence(state.text, state.selection) } ( I7d629 ) ব্যবহার করতে পছন্দ করুন
  • পুনর্গঠিত InputTransformation.transformInput পরামিতি। সরানো হয়েছে originalValue: TextFieldCharSequence । পরিবর্তে TextFieldBuffer এখন একই নামের সাথে এই মান বহন করে। এছাড়াও valueWithChanges: TextFieldBuffer প্যারামিটার মুছে ফেলা হয়েছে। TextFieldBuffer এখন ফাংশনের রিসিভার সুযোগ। ( I919cc )
  • BasicTextField(state) ভেরিয়েন্ট এবং BasicSecureTextField এখন সফ্টওয়্যার কীবোর্ড দ্বারা গৃহীত পদক্ষেপগুলি প্রক্রিয়া করতে KeyboardActions এর পরিবর্তে KeyboardActionHandler ব্যবহার করে। ( I58dda )
  • "জাল" টেক্সট ইনপুট ক্ষেত্রগুলিতে স্টাইলাস হস্তাক্ষর সমর্থন করার জন্য স্টাইলাস হস্তাক্ষর প্রতিনিধি API। ( I9c09c , b/327271923 )
  • showKeyboardOnFocus দেখাতে KeyboardOptions.shouldShowKeyboardOnFocus নাম পরিবর্তন করা হয়েছে। ( Ib4b7a , b/295951492 )
  • Modifier.contentReceiver থেকে hintMediaTypes প্যারামিটার সরানো হয়েছে। ডেভেলপারদের ইতিমধ্যেই প্রাপ্ত TransferableContent এর মিডিয়া টাইপ চেক করতে উৎসাহিত করা হয়েছে কারণ এটি কনফিগার করা hintMediaTypes এর সাথে বেমানান হতে পারে। ( I82f99 )
  • BasicSecureTextField এর পরামিতি পুনরায় সাজানো হয়েছে। BasicSecureTextField এর জন্য একই ডিফল্টগুলি যথাযথ রেখে সম্পূর্ণ KeyboardOptions ক্লাসের পক্ষে keyboardType এবং imeAction প্যারামিটারগুলি সরানো হয়েছে। এছাড়াও scrollState প্যারামিটার মুছে ফেলা হয়েছে। ( Ibbfa9 )
  • TextFieldState.text এর ধরন TextFieldCharSequence থেকে শুধু CharSequence এ পরিবর্তিত হয়েছে। অতএব, যোগ করা TextFieldState.selection: TextRange এবং TextFieldState.composition: TextRange? রাষ্ট্রীয় বস্তু থেকে সরাসরি বর্তমান নির্বাচন এবং রচনা মান পড়তে।
  • TextFieldState.forEachTextValue সরানো হয়েছে। ( আইডিবি২এ২ )
  • ClipboardManager.getClipMetadata এবং ClipboardManager.hasClip ফাংশন সরানো হয়েছে। বর্তমান ক্লিপ এন্ট্রির মেটাডেটা পড়তে অনুগ্রহ করে clipEntry.getMetadata() ব্যবহার করুন। এছাড়াও ClipboardManager.getClip এর ফলাফল পরীক্ষা করুন যদি এটি শূন্য হয় বা না বোঝার জন্য ক্লিপবোর্ডে বর্তমান ক্লিপ আছে কিনা। ( I50498 )
  • ClipboardManager.setClip এখন ক্লিপবোর্ড সাফ করতে সক্ষম হওয়ার জন্য নাল গ্রহণ করে। ( I7d2e9 )
  • ReceiveContentListener একটি ফাংশন ইন্টারফেসে রূপান্তরিত হয়. এছাড়াও Modifier.receiveContent ওভারলোড যা একটি ল্যাম্বডা নেয় তা সরিয়ে ফেলা হয় যেহেতু ReceiveContentListener এখন একটি ফাংশন ইন্টারফেস।
  • Modifier.receiveContent এর নাম পরিবর্তন করে Modifier.contentReceiver রাখা হয়েছে। ( I1e6af )
  • TransferableContent.consumeEach নাম পরিবর্তন করে TransferableContent.consume করা হয়েছে। ( I1e462 )
  • rememberTextFieldState একটি স্থিতিশীল API এ স্নাতক হয়েছে। ( I37999 )

বাগ ফিক্স

  • একটি বাগ সংশোধন করা হয়েছে যেখানে BasicTextField(state) ভেরিয়েন্ট CJK(কম্পোজিশন ভিত্তিক) কীবোর্ডের সাথে কাজ করে না। ( I54425 )
  • একটি বাগ সংশোধন করা হয়েছে যেখানে Modifier.dragAndDropTarget() Modifier.Node পুনঃব্যবহারের সাথে নির্দিষ্ট পরিস্থিতিতে পুরানো ডেটা উল্লেখ করতে পারে। ( I05bb1 )
  • একটি সাম্প্রতিক চুক্তি পরিবর্তন প্রত্যাবর্তন করা হয়েছে যেখানে AnchoredDraggableState#anchoredDrag কলগুলি একটি anchoredDrag অপারেশনের শেষে স্ন্যাপ হবে৷ ( I95715 )

সংস্করণ 1.7.0-alpha05

20 মার্চ, 2024

androidx.compose.foundation:foundation-*:1.7.0-alpha05 প্রকাশিত হয়েছে। সংস্করণ 1.7.0-alpha05-এ এই কমিট রয়েছে।

এপিআই পরিবর্তন

  • হাইপারলিঙ্ক স্টাইল করার জন্য পরীক্ষামূলক LocalTextLinkStyle কম্পোজিশন স্থানীয় সরানো হয়েছে। ( Iebfa7 )
  • onLinkClicked যুক্তি দিয়ে BasicText এর পরীক্ষামূলক ওভাররাইড সরানো হয়েছে। হাইপারলিঙ্ক সমর্থনের জন্য একটি প্রতিস্থাপন API ভবিষ্যতে অনুসরণ করবে। ( I107d5 )
  • TextFieldState এবং TextFieldBuffer এর অধীনে কোডপয়েন্ট সম্পর্কিত পদ্ধতি এবং বৈশিষ্ট্যগুলি সরানো হয়েছে। এছাড়াও অবশিষ্ট নির্বাচন এবং রচনা সম্পর্কিত API থেকে inChars প্রত্যয়গুলি সরানো হয়েছে। ( Ief7ce )
  • AnchoredDraggable এর currentValue এখন একটি অ্যাঙ্কর পয়েন্টের মধ্য দিয়ে যাওয়ার সময় আপডেট হবে। পূর্ববর্তী currentValue শব্দার্থবিদ্যা পেতে settledValue ব্যবহার করুন, শুধুমাত্র একটি অ্যাঙ্করে সেটেল করার সময় আপডেট করা হয়। অগ্রগতি এখন একটি বৈশিষ্ট্যের পরিবর্তে একটি ফাংশন (একটি শুরু এবং শেষ বিন্দু প্রয়োজন) হিসাবে উন্মুক্ত করা হয়েছে। ( Ibe6e8 , b/318707189 , b/298271489 , b/294991954 )
  • BasicTextField(state) , TextFieldState , InputTransformation , OutputTransformation , TextFieldLineLimits , TextFieldDecorator স্থিতিশীল হতে স্নাতক হয়েছে৷ ( I9582b )
  • নিম্ন-স্তরের IME-সম্পর্কিত পরীক্ষা এবং অন্যান্য নিম্ন-স্তরের IME ব্যবহারের ক্ষেত্রে লিখতে সাহায্য করার জন্য InterceptPlatformTextInput চালু করা হয়েছে। PlatformTextInputTestOverride বাতিল করা হয়েছে। ( I862ed , b/322680547 )
  • restrictedConstraints() কে দুটি পদ্ধতিতে বিভক্ত করুন: fitPrioritizingWidth() এবং fitPrioritizingHeight() ( I6d7fd )

বাহ্যিক অবদান

  • সর্বশেষ স্ক্রোল অ্যাকশনের জন্য স্ক্রোলের দিক পরীক্ষা করতে 2টি নতুন API isLastScrollForward / isLastScrollBackward যোগ করা হয়েছে, এখনও স্ক্রোল অ্যাকশন না থাকলে মিথ্যা ফেরত দিন। ( I63a0e )

সংস্করণ 1.7.0-alpha04

6 মার্চ, 2024

androidx.compose.foundation:foundation-*:1.7.0-alpha04 প্রকাশিত হয়েছে। সংস্করণ 1.7.0-alpha04-এ এই কমিট রয়েছে।

এপিআই পরিবর্তন

  • অ্যান্ড্রয়েড ইউ ( I002e4 ) এর পরে ডিভাইসগুলিতে স্টাইলাস হস্তাক্ষর বৈশিষ্ট্য সমর্থন করে
  • একটি পছন্দের ভাষা প্রিসেট করতে নির্দিষ্ট লোকেল সহ IME গুলিকে ইঙ্গিত করার ক্ষমতা সহ TextFields প্রদান করতে KeyboardOptionshintLocales যোগ করা হয়েছে৷ ( Id18c2 )
  • এক্সপেরিমেন্টাল BasicTextField2 এবং BasicSecureTextField ওভারলোডগুলি সরানো হয়েছে যা value: String এবং onValueChange: () -> String প্যারামিটার৷ ( I568b4 )
  • InputTransformation এ একটি ঐচ্ছিক applySemantics ফাংশন যোগ করুন যাতে এটি প্রয়োগ করা হয়েছে BasicTextField2 এর শব্দার্থবিদ্যাকে প্রভাবিত করতে। ( I74a2f , b/170648072 )
  • এই CL-তে আমরা GetScrollViewportLength শব্দার্থিক ক্রিয়া যুক্ত করছি যাতে আমরা a11y সিস্টেমে কম্পোজে স্ক্রোল করা উপাদানগুলির সম্পর্কে তথ্য পাইপ করতে পারি। এই CL ফাউন্ডেশন স্ক্রোলযোগ্য তালিকায় উল্লিখিত সম্পত্তির ব্যবহারও প্রযোজ্য। ( IC5fa2 )
  • BasicTextField2 নাম পরিবর্তন করে BasicTextField রাখা হয়েছে। ( IE5713 )
  • FocusRequester.createRefs এখন স্থিতিশীল ( I4d92c , b/261436820 )
  • সংশোধক নোডগুলিকে সরাসরি scrollIntoView অনুরোধ করার অনুমতি দেওয়ার জন্য DelegatableNode.scrollIntoView() চালু করা হয়েছে। ( I2b3b7 , b/299939840 )
  • সংশোধক নোডগুলিকে স্থানীয় কম্পোজিশন না পড়ে বর্তমান অ্যান্ড্রয়েড View পেতে অনুমতি দেওয়ার জন্য DelegatableNode.requireView() চালু করা হয়েছে৷ ( I40768 )
  • প্রাসঙ্গিক ফ্লো রো স্কোপ এবং কনটেক্সচুয়াল ফ্লো কলাম স্কোপের মধ্যে প্রাসঙ্গিক লেআউট তথ্য প্রবর্তন, নির্দিষ্ট অবস্থানে থাকার জন্য রেখা সূচক, অবস্থান এবং সর্বোচ্চ প্রস্থ এবং উচ্চতার সীমাবদ্ধতা রয়েছে। সর্বাধিক প্রস্থ/উচ্চতা অতিক্রম করা আইটেমগুলি পরবর্তী লাইনে প্রবাহিত হতে পারে বা ওভারফ্লো সেটিংসের উপর ভিত্তি করে বাদ দেওয়া যেতে পারে। ( Id13f8 , b/292114798 )

বাগ ফিক্স

  • একটি বাগ সংশোধন করা হয়েছে যেখানে নির্দিষ্ট পরিস্থিতিতে TextField টগলিং enabled বা readOnly অ্যাট্রিবিউট ক্র্যাশের কারণ হবে৷ ( Iae17b )

সংস্করণ 1.7.0-alpha03

21 ফেব্রুয়ারি, 2024

androidx.compose.foundation:foundation-*:1.7.0-alpha03 প্রকাশিত হয়েছে। সংস্করণ 1.7.0-alpha03 এই কমিট ধারণ করে।

এপিআই পরিবর্তন

  • একটি Modifier.Node এর বর্তমান LayoutCoordinates পেতে একটি উপায় হিসাবে DelegatableNode.requireLayoutCoordinates() চালু করা হয়েছে onPlaced ওভাররাইড করার প্রয়োজন ছাড়াই এবং স্থানাঙ্কগুলিকে একটি সম্পত্তিতে সঞ্চয় করার প্রয়োজন নেই৷ ( IA8657 )
  • একটি Modifier.Node পাওয়ার উপায় হিসাবে DelegatableNode.currentLayoutCoordinates প্রবর্তন করা হয়েছে। onPlaced ওভাররাইড করার প্রয়োজন ছাড়াই নোডের বর্তমান LayoutCoordinates নিজে একটি সম্পত্তিতে স্থানাঙ্কগুলি সংরক্ষণ করা হয়েছে। ( আইয়াইবা )
  • AnchoredDraggable দ্বারা ব্যবহৃত DraggableAnchors অ্যাঙ্করগুলিতে পারফরম্যান্স অপ্টিমাইজেশন। ( I89cff )
  • androidx.compose.foundation.text2 প্যাকেজের অধীনে BasicTextField2 এবং সম্পর্কিত APIগুলিকে androidx.compose.foundation.text এ সরানো হয়েছে। ( I9f635 )
  • BasicTextField2 আর CodepointTransformation প্যারামিটার গ্রহণ করে না। BasicSecureTextField বা OutputTransformation ব্যবহার করুন। ( Id34ff )
  • শুধুমাত্র দুটি AnnotatedStrings এর টীকা তুলনা করার পদ্ধতি যোগ করা হয়েছে। ( I32659 )
  • MaxLines এবং Overflow সহ ContextualFlowRow এবং বর্ধিত FlowRow / Column সাথে পরিচয় করিয়ে দেওয়া হচ্ছে। আমরা ContextualFlowRow এবং ContextualFlowColumn এর আত্মপ্রকাশের পাশাপাশি, এখন maxLines এবং ওভারফ্লো সমর্থন সমন্বিত পরীক্ষামূলক FlowRow এবং FlowColumn বর্ধিতকরণ ঘোষণা করতে পেরে উত্তেজিত। এই আপডেটটি পারফরম্যান্সের সর্বোত্তম উপাদান প্রদান করার জন্য ডিজাইন করা হয়েছে, যেখানে ContextualFlow* একটি ছোট maxLines কনফিগারেশন এবং গতিশীল +N আরও বোতাম ব্যবহার করে প্রচুর সংখ্যক আইটেমের জন্য উপযুক্ত, এবং FlowRow এবং FlowColumn অল্প সংখ্যক আইটেমের জন্য উপযুক্ত, কম 100 টিরও বেশি আইটেম। গুরুত্বপূর্ণ: FlowRow বা FlowColumn এ বিদ্যমান আচরণ বজায় রাখার জন্য যেখানে সমস্ত আইটেম তৈরি করা হয়েছে তা নির্বিশেষে তারা ক্রস অক্ষের সর্বোচ্চ মাপসই করে, overflow সেট করুন FlowRowOverflow.Visible বা FlowColumnOverflow.Visible প্রাথমিককরণের সময় দৃশ্যমান। ক্রিয়াশীল এই নতুন বৈশিষ্ট্যগুলির উদাহরণগুলির জন্য ContextualFlowRowSample এবং FlowRowSample অন্বেষণ করুন৷ ( Ib9135 , b/293577082 )

বাগ ফিক্স

  • কার্সার অ্যানিমেশন আর অন এবং অফ স্টেটের মধ্যে ফ্রেমের অনুরোধ করে না। ( IA2253 )
  • KeyboardOptions 'অপ্রচলিত কপি কনস্ট্রাক্টর এখন সঠিকভাবে সমস্ত বৈশিষ্ট্য কপি করবে। ( if12de )

সংস্করণ 1.7.0-alpha02

7 ফেব্রুয়ারি, 2024

androidx.compose.foundation:foundation-*:1.7.0-alpha02 প্রকাশিত হয়েছে। সংস্করণ 1.7.0-alpha02 এই কমিট ধারণ করে।

এপিআই পরিবর্তন

  • HorizontalPager , VerticalPager এবং PagerState স্থিতিশীল হিসাবে উন্নীত হয়৷ ( I67660 , b/316966909 )
  • LocalTextLinkStyle কম্পোজিশন স্থানীয় যোগ করা হয়েছে যা অ্যাপ জুড়ে টেক্সটে লিঙ্কের স্টাইল পরিবর্তন করতে দেয়। আপনি যদি অ্যাপে আপনার নিজস্ব থিম ব্যবহার করেন, তাহলে আপনার থিমিং অনুসারে এই রচনাটি স্থানীয়ভাবে সেট করা উচিত। উপাদান থিম ব্যবহার করার সময় ডিফল্টভাবে লিঙ্কের রঙ উপাদানের প্রাথমিক রঙে সেট করা হবে। ( I7eb10 )
  • receiveContent মডিফায়ার চালু করা হয়েছে যা ডেভেলপারদের জেটপ্যাক কম্পোজে সমৃদ্ধ কন্টেন্ট পাওয়ার উপায় প্রদান করে।
  • receiveContent সফ্টওয়্যার কীবোর্ড দ্বারা বা ক্লিপবোর্ড পেস্ট অ্যাকশনের মাধ্যমে প্রদত্ত সমৃদ্ধ সামগ্রী গ্রহণ করতে BasicTextField2 -এর সাথে একীভূত হয়। ( I81b72 )
  • এই পরিবর্তনে আমরা অন্যান্য ব্যবহারের ক্ষেত্রে আনলক করতে এবং আরও বেশি নমনীয়তা প্রদান করতে পেজারে SnapFlingBehavior TargetedFlingBehavior সাথে প্রতিস্থাপন করছি। ( I762ea )
  • এই পরিবর্তনে আমরা স্ন্যাপিং এপিআইগুলিকে স্থিতিশীল করে তুলছি। আমরা কিছু টেস্টিং কোডও পরিষ্কার করছি এবং Snapping-এ আরও নমুনা যোগ করছি। ( Id8da9 )
  • TargetedFlingBehavior প্রবর্তন করুন, একটি FlingBehavior যা চলমান অ্যানিমেশনের অবস্থা এবং এটির টার্গেট স্ক্রোল অফসেট সম্পর্কে তথ্য প্রচারের অনুমতি দেয়। ( I6a207 )

বাগ ফিক্স

  • BasicTextField2 এখন টাইপ করার সময় কার্সারটিকে দৃশ্যের বাইরে রাখে বা ইনপুটের কারণে দৃশ্যের বাইরে চলে যায়। ( Ieb856 , b/237190748 )

বাহ্যিক অবদান

  • LazyLists এর প্রিফেচ আচরণ কনফিগার করার জন্য একটি পরীক্ষামূলক API যোগ করে। ( I022a4 )

সংস্করণ 1.7.0-alpha01

24 জানুয়ারী, 2024

androidx.compose.foundation:foundation-*:1.7.0-alpha01 প্রকাশিত হয়েছে। সংস্করণ 1.7.0-alpha01 এই কমিট ধারণ করে।

নতুন বৈশিষ্ট

  • একটি নতুন Indication API যোগ করা হয়েছে, IndicationNodeFactory । এটি পূর্ববর্তী (এখন অবচয়) rememberUpdatedInstance API-এর তুলনায় আরও বেশি পারফরম্যান্ট Indication বাস্তবায়নের দিকে নিয়ে যায়। মাইগ্রেশন সংক্রান্ত তথ্যের জন্য, developer.android.com দেখুন।
  • clickable / combinedClickable / selectable / toggleable এখন একটি বাতিলযোগ্য MutableInteractionSource প্যারামিটার গ্রহণ করে। যদি নাল থাকে, এবং প্রদত্ত Indication একটি IndicationNodeFactory হয়, তাহলে Indication অলসভাবে তৈরি করা যেতে পারে যখন প্রয়োজন হয়, যা কর্মক্ষমতা উন্নত করে। আপনি যদি MutableInteractionSource উত্থাপন না করেন এবং ব্যবহার না করেন, তাহলে নাল পাস করার পরামর্শ দেওয়া হয়।

এপিআই পরিবর্তন

  • AnchoredDraggableDecayAnimation প্রবর্তন করুন, এই পরিবর্তনটি AnchoredDraggable এ একটি decayAnimationSpec প্যারামিটার যোগ করে যা অ্যাঙ্করগুলির একটিতে সেটেল করার সময় ক্ষয় অ্যানিমেশন ব্যবহার করার অনুমতি দেয়। পরিবর্তনের মধ্যে রয়েছে বিদ্যমান animationSpec নাম পরিবর্তন করে snapAnimationSpec এ প্রতিটি স্পেকের ব্যবহারের ক্ষেত্রে বোঝার জন্য।
  • BasicTextField2 পরীক্ষামূলক ব্যবহারের জন্য উপলব্ধ। এটি BasicTextField এর সাথে মোটামুটি বৈশিষ্ট্যের সমতা থাকা উচিত এবং আচরণ উত্পাদন-প্রস্তুত হওয়া উচিত। যাইহোক, API আপাতত পরীক্ষামূলক রয়ে গেছে। স্থিতিশীল করার আগে, এটির নাম পরিবর্তন করে BasicTextField করা হবে এবং একই প্যাকেজে সরানো হবে।
  • BasicTextField2 এর জন্য OutputTransformation API-এর প্রথম খসড়া প্রবর্তন করেছে। এই API পুরানো BasicTextField VisualTransformation বেশিরভাগ ব্যবহারের ক্ষেত্রে প্রতিস্থাপন করে। তবে এটি এখনও সম্পূর্ণ হয়নি, এবং কিছু জিনিস সঠিকভাবে কাজ করবে না, তবে আমরা আপনার ব্যবহারের ক্ষেত্রে API ব্যবহারযোগ্যতার বিষয়ে কোনো প্রতিক্রিয়ার প্রশংসা করব। ( aosp/2708848 )
  • চালু করা হয়েছে LinkAnnotation যা টেক্সটে লিঙ্ক এবং ক্লিকযোগ্য যোগ করার অনুমতি দেয়। লিঙ্ক বৈশিষ্ট্য এখনও সম্পূর্ণ হয়নি এবং আরো API পরিবর্তন আসছে.
  • receiveContent মডিফায়ার চালু করা হয়েছে যা ডেভেলপারদের জেটপ্যাক কম্পোজে সমৃদ্ধ কন্টেন্ট পাওয়ার উপায় প্রদান করে।
  • receiveContent সফ্টওয়্যার কীবোর্ড দ্বারা প্রদত্ত সমৃদ্ধ সামগ্রী গ্রহণ করতে বা ক্লিপবোর্ড থেকে পেস্টের মাধ্যমে BasicTextField2 এর সাথে একীভূত হয়।
  • KeyboardOptions.shouldShowKeyboardOnFocus আপনাকে ফোকাসে একটি সফ্টওয়্যার কীবোর্ডের অনুরোধ করার জন্য BasicTextField এর ডিফল্ট আচরণ নিষ্ক্রিয় করতে দেয়।
  • TextInputService এবং LocalTextInputService এখন অবহেলিত। পরিবর্তে প্ল্যাটফর্ম IME API-এর সাথে সরাসরি একীভূত করতে PlatformTextInputModifierNode ব্যবহার করুন। ( aosp/2862698 )
  • Indication#rememberUpdatedInstance অবমুক্ত করা হয়েছে। এটি একটি উচ্চ অনিবার্য কর্মক্ষমতা শাস্তি আছে, এবং অন্যান্য অপ্টিমাইজেশান বাধা দেয়. পরিবর্তে, আপনার নতুন IndicationNodeFactory API ব্যবহার করা উচিত।

বাগ ফিক্স

  • VisualTransformation পাস হলে BasicTextField এখন অফসেট ম্যাপিংয়ের একটি ছোট নির্বাচন প্রাক-প্রমাণ করবে। এটি সাধারণ কোডিং ত্রুটিগুলি ধরতে সাহায্য করে যা পরবর্তী পরিমাপ বা ড্র পাসে অপুনরুদ্ধারযোগ্য ব্যতিক্রমের দিকে নিয়ে যায়। কম্পোজিশনের সময় থ্রো করার মাধ্যমে, ডেভেলপাররা প্রোডাকশন ক্র্যাশ এড়াতে সাহায্য করে ডেভেলপমেন্টের সময় এই ত্রুটিগুলি দেখতে পাবেন। ( I0fd42 )
  • যদি আপনি একটি অবৈধ সূচক ( b/316401857 ) এর জন্য একটি অবৈধ সূচক ফেরত দেন তাহলে VisualTransformation নিক্ষেপ করবে না

সংস্করণ 1.6

সংস্করণ 1.6.8

জুন 12, 2024

androidx.compose.foundation:foundation-*:1.6.8 প্রকাশিত হয়েছে। সংস্করণ 1.6.8- এ এই কমিটগুলি রয়েছে।

সংস্করণ 1.6.7

1 মে, 2024

androidx.compose.foundation:foundation-*:1.6.7 প্রকাশিত হয়েছে। সংস্করণ 1.6.7- এ এই কমিটগুলি রয়েছে।

সংস্করণ 1.6.6

এপ্রিল 17, 2024

androidx.compose.foundation:foundation-*:1.6.6 প্রকাশিত হয়েছে। সংস্করণ 1.6.6- এ এই কমিট রয়েছে।

বাগ ফিক্স

  • একটি বাগ সংশোধন করা হয়েছে যেখানে নির্দিষ্ট পরিস্থিতিতে TextField টগলিং enabled বা readOnly অ্যাট্রিবিউট ক্র্যাশের কারণ হবে৷ ( Iae17b )

সংস্করণ 1.6.5

3 এপ্রিল, 2024

androidx.compose.foundation:foundation-*:1.6.5 প্রকাশিত হয়েছে। সংস্করণ 1.6.5- এ এই কমিটগুলি রয়েছে।

বাগ ফিক্স

  • সারি/কলামে হার্ড-টু-রিপ্রোডিউস বাগগুলিতে ডিবাগিং লগ যোগ করে: ( b/300280216 এবং b/297974033 )

সংস্করণ 1.6.4

20 মার্চ, 2024

androidx.compose.foundation:foundation-*:1.6.4 প্রকাশিত হয়েছে। সংস্করণ 1.6.4- এ এই কমিটগুলি রয়েছে।

বাগ ফিক্স

  • একটি দীর্ঘ-প্রেস-এরপর-টেন-টেন-নির্বাচন অঙ্গভঙ্গি যা ড্র্যাগের প্রথম ফ্রেমে পাঠ্যের লেআউট সীমার বাইরে চলে যায় আর ক্র্যাশ হয় না। ( Icdf90 , b/325307463 )

সংস্করণ 1.6.3

6 মার্চ, 2024

androidx.compose.foundation:foundation-*:1.6.3 প্রকাশিত হয়েছে। সংস্করণ 1.6.3- এ এই কমিটগুলি রয়েছে।

সংস্করণ 1.6.2

21 ফেব্রুয়ারি, 2024

androidx.compose.foundation:foundation-*:1.6.2 প্রকাশিত হয়েছে। সংস্করণ 1.6.2-এ এই কমিট রয়েছে।

বাগ ফিক্স

  • AnimateContentSize ঠিকভাবে রিসেট হচ্ছে না ঠিক করুন। ( I07051 )
  • কিছু পরিস্থিতিতে পাঠ্যের intrinsicHeight ওভার-ক্যাশ করা হবে এমন সমস্যাটি ঠিক করুন। ( 3cd398 , b/217910352 )

সংস্করণ 1.6.1

7 ফেব্রুয়ারি, 2024

androidx.compose.foundation:foundation-*:1.6.1 প্রকাশিত হয়েছে। সংস্করণ 1.6.1-এ এই কমিট রয়েছে।

বাগ ফিক্স

  • সীমার উপরে স্ক্রোল করার সময় স্ট্যাগার্ড গ্রিড পরিমাপ ঠিক করুন। ( bffc39 )
  • বড় মাত্রা সহ লেআউটের জন্য চেক যোগ করুন। ( e74af5 )
  • স্তব্ধ গ্রিডের শুরুতে 0-আকারের আইটেমের বসানো ঠিক করুন। ( 785f94 )
  • onForgotten-এর মতো একই ক্রমে onRelease কলব্যাকে কল করুন। ( 31ce3b )

সংস্করণ 1.6.0

24 জানুয়ারী, 2024

androidx.compose.foundation:foundation-*:1.6.0 প্রকাশিত হয়েছে। সংস্করণ 1.6.0 এই কমিট ধারণ করে.

1.5.0 থেকে গুরুত্বপূর্ণ পরিবর্তন

  • নতুন সংশোধক Modifier.anchoredDraggable যা পূর্বনির্ধারিত অ্যাঙ্করগুলির সেটের মধ্যে টেনে আনতে এবং অ্যানিমেট করার ক্ষমতা আনলক করে। এই মডিফায়ারটি Modifier.swipeable এর প্রতিস্থাপনের উদ্দেশ্যে তৈরি করা হয়েছে। মাইগ্রেশন গাইডে Modifier.swipeable থেকে কীভাবে এটি ব্যবহার করবেন এবং মাইগ্রেট করবেন তা শিখুন।
  • অ্যাপ্লিকেশন এবং উপাদানগুলির মধ্যে ড্র্যাগ এবং ড্রপ কার্যকারিতা যোগ করা হয়েছে৷ শুরু করতে DragAndDropTarget , Modifier.dragAndDropSource এবং অন্যান্য API গুলি দেখুন
  • Modifier.draggable2D হল নতুন মডিফায়ার যা সহজে 2d ড্র্যাগিং সমর্থনের জন্য অনুমতি দেয়। নমুনা দেখুন।
  • AndroidExternalSurface এবং AndroidEmbeddedExternalSurface যোগ করা হয়েছে যাতে কম্পোজে পৃষ্ঠ-চালিত উপাদান যোগ করা সহজ হয়
  • Pager এবং snapFlingBehaviour বিভিন্ন API পরিবর্তন এবং উন্নতি
  • বিভিন্ন ফোকাস, টেক্সট এবং ইনসেট API গুলিকে স্থিতিশীল API-এ উন্নীত করা হয়েছে

সংস্করণ 1.6.0-rc01

জানুয়ারী 10, 2024

androidx.compose.foundation:foundation-*:1.6.0-rc01 প্রকাশিত হয়েছে। সংস্করণ 1.6.0-rc01-এ এই কমিট রয়েছে।

এপিআই পরিবর্তন

  • DragAndDropTarget() এক্সটেনশন কনস্ট্রাক্টর সরানো হয়েছে। object: DragAndDropTarget {} । ( I32318 )

সংস্করণ 1.6.0-beta03

13 ডিসেম্বর, 2023

androidx.compose.foundation:foundation-*:1.6.0-beta03 প্রকাশিত হয়েছে। 1.6.0-beta03 সংস্করণে এই কমিট রয়েছে।

বাগ ফিক্স

  • অসীম সীমাবদ্ধতার সাথে পরিমাপ করা খুব বড় পাঠকে প্রভাবিত করে এমন ক্র্যাশ ঠিক করুন। ( I1a7df , b/312294386 )
  • PlatformImeOptions এখন একটি ইন্টারফেসের পরিবর্তে একটি কংক্রিট ক্লাস। ( if40a4 )

সংস্করণ 1.6.0-beta02

নভেম্বর 29, 2023

androidx.compose.foundation:foundation-*:1.6.0-beta02 প্রকাশিত হয়েছে। সংস্করণ 1.6.0-beta02-এ এই কমিট রয়েছে।

বাগ ফিক্স

  • রিলেআউট-শুধু স্ক্রোল করার পরে canScroll আপডেট না হওয়ার জন্য সংশোধন করুন। ( I60a86 )
  • ছোট স্ক্রোল করার পরে Modifier.animateItemPlacement() এবং LookaheadScope এর জন্য ঠিক করুন। ( I3a2b7 )

সংস্করণ 1.6.0-beta01

15 নভেম্বর, 2023

androidx.compose.foundation:foundation-*:1.6.0-beta01 প্রকাশিত হয়েছে। সংস্করণ 1.6.0-beta01-এ এই কমিট রয়েছে।

এপিআই পরিবর্তন

  • DragAndDropTarget সংশোধক এখন স্পষ্টভাবে DragAndDropTarget গ্রহণ করে এবং একটি ড্র্যাগ এবং ড্রপ সেশন বেছে নেওয়ার জন্য একটি ল্যাম্বডা রয়েছে। DragAndDropModifierNode এর জন্য এখন দুটি ফ্যাক্টরি ফাংশন রয়েছে। একটি স্থানান্তর গ্রহণের জন্য এবং একটি ডেটা স্থানান্তরের জন্য ( I69481 )
  • ফ্লোট হিসাবে উপস্থাপনের জন্য maximumFlingVelocity আপডেট করা হয়েছে। maximumFlingVelocity ঐক্য সম্পর্কে আরও স্পষ্ট হওয়ার জন্য আপডেট করা ডকুমেন্টেশন। ( I8adc7 )
  • DragAndDropModifierNode কারখানায় onDragAndDropStart নামকরণ করা হয়েছে acceptDragAndDropTransfer

    একটি ড্র্যাগ এবং ড্রপ সেশন থেকে গ্রহণ করার জন্য dragAndDropTarget Modifier acceptsDragAndDropTransfer যুক্ত করা হয়েছে। এই ল্যাম্বদা একটি ড্র্যাগ এবং ড্রপ সেশনে আগ্রহী হলে একটি কার্যকর DragAndDropTarget ফেরত দেয়। ড্র্যাগ ইভেন্টগুলি প্রক্রিয়াজাতকরণের জন্য অন্যান্য ল্যাম্বডাস এটি দ্বারা প্রতিস্থাপন করা হয়েছে।

    ড্র্যাগ এবং ড্রপ সেশনগুলি ( আইইবিএফ 3 এ ) থেকে গ্রহণের জন্য একটি DragAndDropTarget কারখানা ফাংশন যুক্ত করা হয়েছে

  • AnchoredDraggable startDragImmediately প্রকাশ করা এটি ব্যবহার করার সময় টেনে আনার অঙ্গভঙ্গিগুলি সনাক্ত করার জন্য নিয়ন্ত্রণ দেয়। যখন উইজেটটি কোনও লক্ষ্য নোঙ্গরে অ্যানিমেট করা হয় তখন এটি সেট করা দরকারী। নমুনা দেখুন। ( আই 6 ডি 13 , বি/285139987 )

  • ফাউন্ডেশন টুলটিপ এপিআইগুলি এখন @ExperimentalFoundationApi ( আই 30 বি 0 বি )

  • DragAndDropInfo সরানো DrawScope টাইপ DragAndDropModifierNode.drag হিসাবে transferData

    DragAndDropTarget একক বিমূর্ত পদ্ধতি হওয়ার পরিবর্তে নির্দিষ্ট ড্রাগ এবং ড্রপ ইভেন্টগুলির জন্য পদ্ধতি রয়েছে

    DragAndDropModifierNode জন্য কারখানার ফাংশনে onDragAndDropEvent onDragAndDropStart নামকরণ করা হয়েছে আরও ভালভাবে যোগাযোগ করার জন্য যে প্রদত্ত DragAndDropTarget কেবলমাত্র প্রদত্ত ড্র্যাগ এবং ড্রপ সেশনের জন্য বৈধ, কেবলমাত্র

    DragAndDropEventType সরানো হয়েছে ( i645b1 )

  • PlatformTextInputModifierNode.runTextInputSession নামকরণ করা হয়েছে establishTextInputSession ( I03cd0 )

  • TextSubstitution দ্বারা OriginalText প্রতিস্থাপন করুন। ( Ifa5a8 )

  • PlatformTextInputModifierNode.textInputSession runTextInputSession করা হয়েছে। ( Ie9c6b )

  • ভবিষ্যতে পুনরায় ব্যবহার করার জন্য ধরে রাখা SubcomposeLayout বাচ্চারা (এবং এটির উপর ভিত্তি করে LazyColumn মতো লেআউটগুলি) নিষ্ক্রিয় বলে বিবেচিত হয়। এই জাতীয় নোডগুলি পরীক্ষা করার জন্য নতুন assertIsDeactivated() টেস্ট এপিআই চালু করা হয়েছিল। পরীক্ষার বাকি এপিআইগুলি ডিফল্টরূপে নিষ্ক্রিয় নোডগুলি ফিল্টার করবে। ( I2EF84 , ​​খ/187188981 )

  • Modifier.magnifier clippingEnabled প্যারামিটারটির নামকরণ করা হয়েছে clip

  • Modifier.magnifier এর magnifierCenter প্যারামিটার.ম্যাগনিফায়ারকে একই ডিফল্ট আচরণ সংরক্ষণ করা বাতিল করা হয়। ( I6aa66 )

  • মেটেরিয়াল SwipeToReveal এপিআই (কার্ড এবং চিপগুলির জন্য) এখন স্লট ভিত্তিক এপিআই (কমপোজ দ্বারা প্রস্তাবিত হিসাবে) উপর নির্ভর করে সেই স্লটগুলি তৈরি করার জন্য ডেটা ক্লাস ভিত্তিক দৃষ্টান্তের পরিবর্তে। এটি একটি ব্রেকিং পরিবর্তন, দয়া করে নতুন এপিআই কীভাবে ব্যবহার করবেন সে সম্পর্কে উদাহরণগুলির জন্য ডেমো এবং নমুনা কোডটি দেখুন। ( Ia8943 )

বাগ ফিক্স

  • PageSize.Fixed জন্য সমান এবং হ্যাশকোড বাস্তবায়ন করুন। ( Ie3ede , খ/300134276 )
  • এমন একটি বাগ স্থির করে যা BasicText লেআউটটি সঙ্কুচিত না হয়ে যায় যখন minWidth পরিবর্তিত হয় এবং minWidth প্রাথমিক পরিমাপের সীমাবদ্ধতা maxWidth ( আইডিবি 19 সি ) এর চেয়ে কম
  • ArcLine সুইপ গ্রেডিয়েন্টের জন্য রেন্ডারার সমর্থন যুক্ত করুন। ( I4d5bb )
  • উইন্ডো ইনসেট পরিবর্তনের সাথে বাইনারি সামঞ্জস্যতার সমস্যাটি ঠিক করুন ( আইইইই 695 )
  • মাইক্রোব্যাঞ্চমার্কগুলি এটি ছাড়া আরও ভাল পারফরম্যান্স দেখায় বলে মেটেরিয়াল 3 চিপ/বোতামের জন্য উপাদান কোর স্তর সরান। ( I55555 )

সংস্করণ 1.6.0-Alpha08

18 অক্টোবর, 2023

androidx.compose.foundation:foundation-*:1.6.0-alpha08 প্রকাশিত হয়েছে। সংস্করণ 1.6.0-ALPHA08 এ এই কমিটগুলি রয়েছে।

নতুন বৈশিষ্ট

  • Modifier.draggable2D হ'ল নতুন মডিফায়ার যা সহজ 2D টেনে আনার সমর্থন দেয়। নমুনা দেখুন ( ID95F5 , বি/214412658 )

এপিআই পরিবর্তন

  • Modifier.dragAndDrawSource onDrawDragShadow লাম্বদাটির নামকরণ করা হয়েছে drawDragDecoration এবং DragAndDropInfo আকারের প্যারামিটারটি dragDecorationSize নামকরণ করা হয়েছে। ( ID0E30 , খ/303904810 )
  • BasicTextField2 এর decorationBox প্যারামিটারটির নামকরণ করা হয়েছে decorator । এর ধরণটিও একটি সমতুল্য মজাদার ইন্টারফেস TextFieldDecorator পরিবর্তিত হয়েছে। ( আই 23 সি 1 সি )

বাগ ফিক্স

  • onValueChange প্রয়োজনীয়তা সম্পর্কিত BasicTextField উন্নত ডকুমেন্টেশন। ( I90fc9 , বি/160257648 )

সংস্করণ 1.6.0-Alpha07

4 অক্টোবর, 2023

androidx.compose.foundation:foundation-*:1.6.0-alpha07 প্রকাশিত হয়েছে। সংস্করণ 1.6.0-ALPHA07 এর মধ্যে এই কমিট রয়েছে।

এপিআই পরিবর্তন

  • কাস্টম পাঠ্য সম্পাদকদের জন্য পরীক্ষা লেখার জন্য PlatformTextInputMethodTestOverride প্রবর্তিত। ( আইডি 159 বি )
  • AndroidExternalSurface GraphicsSurface নামকরণ করা হয়েছে ( আই 11680 )
  • অ-লিনিয়ার ফন্ট স্কেলিং অক্ষম করতে অস্থায়ী পতাকাটি DisableNonLinearFontScalingInCompose আপনার যদি সেগুলি পরিষ্কার করার জন্য সময় প্রয়োজন হয় তবে আপনার পরীক্ষাগুলিতে DisableNonLinearFontScalingInCompose = true সেট করুন। এই পতাকাটি রচনা 1.6.0-BETA01 এ সরানো হবে। ( আইসি 9486 )
  • ColorList এবং ColorSet সংগ্রহগুলি যুক্ত করা হয়েছে যা বরাদ্দ এড়ায়। ( I744 বিডি )
  • এই পরিবর্তনটি shortSnapVelocityThreshold সরিয়ে দেয় যা SnapLayoutInfoProvider বাস্তবায়নের বাস্তবায়নের বিশদ হিসাবে রূপান্তরিত হয়েছে। ( I65f6d )
  • ড্র্যাগ এবং ড্রপ সেশনগুলি শুরু করার জন্য dragAndDropSource মডিফায়ার যুক্ত করে এবং ড্র্যাগ এবং ড্রপ সেশনগুলি থেকে প্রাপ্তির জন্য dragAndDropTarget মডিফায়ার ( আইবি 7828 , বি/286038936 )
  • SnapPositionInLayout ডকুমেন্টেশন এবং অবস্থান পদ্ধতি আপডেট করুন। SnapPositionInLayout পজিশন পদ্ধতিতে সামগ্রী প্যাডিংগুলি পরিচয় করিয়ে দিন। ( ID7938 , খ/300116110 )
  • TextFieldState UndoState যুক্ত করা হয়েছে যা ব্যবহারকারীর দ্বারা করা পরিবর্তনগুলি পূর্বাবস্থায়/পুনরায় করার ক্ষমতা সরবরাহ করে। ( আইসিসি 024 )

বাগ ফিক্স

সংস্করণ 1.6.0-Alpha06

20 সেপ্টেম্বর, 2023

androidx.compose.foundation:foundation-*:1.6.0-alpha06 প্রকাশিত হয়েছে। সংস্করণ 1.6.0-ALPHA06 এর মধ্যে এই কমিট রয়েছে।

নতুন বৈশিষ্ট

  • SurfaceView এবং TextureView: GraphicsSurface() এবং EmbeddedGraphicsSurface() । এটি একটি পরীক্ষামূলক এপিআই এবং এটি পরিবর্তন এবং পরিবর্তনের সাপেক্ষে। ( I9ddb2 )
  • Modifier.magnifier() এখন একটি স্থিতিশীল এপিআই। এর মধ্যে সংশোধক নিজেই ইনলাইন প্যারামিটারগুলির পক্ষে MagnifierStyle অপসারণ অন্তর্ভুক্ত। ( I83bec , খ/298381260 , বি/262367109 , বি/261438887 )

এপিআই পরিবর্তন

  • ScrollScope updateCurrentPage এবং updateTargetPage প্রবর্তিত, এটি PagerState.scroll মাধ্যমে অ্যানিমেটেড স্ক্রোলের কাস্টমাইজেশনের অনুমতি দেওয়ার জন্য প্রয়োজনীয় শেষ টুকরা। ( I9cad5 , খ/267744105 , বি/243786897 )
  • SnapFlingBehavior থেকে ঘনত্ব সরান। SnapLayoutInfoProvider সমস্ত বাস্তবায়নের ইতিমধ্যে ঘনত্ব অ্যাক্সেস করার একটি উপায় রয়েছে, রিসিভার স্কোপটি সরানো যেতে পারে যা SnapFlingBehavior এবং SnapLayoutInfoProviders উভয়েরই কম জটিল বাস্তবায়নের দিকে পরিচালিত করবে। ( I153c3 )
  • আরও সংশোধক স্থিতিশীল হিসাবে চিহ্নিত। ( I56af1 , খ/298046462 )
  • SnapLayoutInfoProvider থেকে SnapStepSize সরানো হয়েছে। গণনাটি লেআউট তথ্য ব্যবহার করে করা উচিত এবং অ্যাপ্রোচ বা অফসেটগুলি স্ন্যাপিংয়ের মাধ্যমে সরবরাহ করা উচিত। ( আইএফ 320 সি )

আচরণ পরিবর্তন

  • কমপোজ এখন আরও ভাল পঠনযোগ্যতা এবং অ্যাক্সেসযোগ্যতার জন্য অ-রৈখিক ফন্ট স্কেলিং ব্যবহার করে। যখন ফন্ট স্কেল> 100% সিস্টেম সেটিংসে, ছোট পাঠ্য সাধারণত আকারে বৃদ্ধি পাবে তবে ইতিমধ্যে-বৃহত্তর পাঠ্যটি কেবল কিছুটা বাড়বে। এছাড়াও, এসপিতে সংজ্ঞায়িত লাইন উচ্চতাগুলি স্বয়ংক্রিয়ভাবে 100% স্কেল উদ্দেশ্যযুক্ত উচ্চতার সাথে সমানুপাতিক থাকার জন্য সামঞ্জস্য করবে। আরও তথ্যের জন্য ফন্ট স্কেলিং সেরা অনুশীলনগুলি দেখুন। ( আই 11518 )

বাগ ফিক্স

সংস্করণ 1.6.0-alpha05

6 সেপ্টেম্বর, 2023

androidx.compose.foundation:foundation-*:1.6.0-alpha05 -*:1.6.0-Alpha05 প্রকাশিত হয়েছে। সংস্করণ 1.6.0-ALPHA05 এ এই কমিটগুলি রয়েছে।

এপিআই পরিবর্তন

  • BasicSecureTextField জন্য ওভারলোডগুলি যুক্ত করুন যা বর্তমান BasicTextField এপিআইয়ের মতোই সেই মানটি পরিবর্তন করতে একটি অপরিবর্তনীয় মান এবং একটি কলব্যাক গ্রহণ করে। ( আইএ 4882 )
  • এপিআই 33 এবং তারও বেশি উপরে ভাসমান উইন্ডোগুলি পরিষ্কার রাখতে পছন্দ করে হিসাবে চিহ্নিত করতে Modifier.preferKeepClear() যুক্ত করুন। ( আইবি 51 ডি 5 , বি/297260115 )
  • ScrollView এবং RecyclerView মতো ভিউ উপাদানগুলিতে ঝাঁকুনির বেগ ViewConfiguration.ScaledMaximumFlingVelocity ক্যাপড করা হয় C রচনাটি এখন maximumFlingVelocity নিজস্ব সংস্করণ রয়েছে যা এখন Draggable জন্য প্রযোজ্য। ( আইবিএফ 974 )
  • অবনমিত Pager এবং PagerState ওভারলোডগুলি সরানো হয়েছে। ( Iea07e )
  • compose.foundation BasicTooltipBox PlainTooltip TooltipBox RichTooltipBox PlainTooltipBox RichTooltip ( I79e1d )

সংস্করণ 1.6.0-alpha04

23 আগস্ট, 2023

androidx.compose.foundation:foundation-*:1.6.0-alpha04 প্রকাশিত হয়েছে। সংস্করণ 1.6.0-ALPHA04 এ এই কমিটস রয়েছে।

এপিআই পরিবর্তন

  • লাইফসাইকেল পরিচালনা এবং সাবকোপজিশনগুলির পুনরায় ব্যবহারের জন্য ReusableComposition ইন্টারফেস যুক্ত করুন। ( I812d1 , খ/252846775 )
  • Modifier.focusGroup স্থিতিশীল এপিআইগুলিতে পদোন্নতি দেওয়া হয়েছে। ( I7ffa3 )
  • BasicTextField2 এর জন্য ওভারলোডগুলি যুক্ত করুন যা বর্তমান BasicTextField এপিআইয়ের মতোই সেই মানটি পরিবর্তন করতে একটি অপরিবর্তনীয় মান এবং একটি কলব্যাক গ্রহণ করে। ( I3f2b8 )
  • GridItemSpan::currentLineSpan এখন একটি স্থিতিশীল এপিআই। ( আইসিসি 29 সি )
  • contentDescription গ্রহণ করে এমন ক্যানভাস এখন একটি স্থিতিশীল এপিআই। ( আইবি 3 ডি 29 )
  • ScrollState viewportSize প্রবর্তিত, পরিমাপের পরে ScrollState ব্যবহার করে এমন উপাদানটির viewPort আকার জানার একটি উপায়। ( I8b85a , খ/283102682 )
  • এমন একটি সমস্যা স্থির করেছেন যেখানে পেজারে প্রিফেচিং দৃষ্টিভঙ্গিতে আচরণের সাথে মেলে না। ( I93352 , বি/289088847 )
  • Modifier.consumeWindowInsets(PaddingValues) এখন স্থিতিশীল।
    • Deprecated Modifier.consumedWindowInsets এপিআই এখন সরানো হয়েছে। পরিবর্তে Modifier.consumeWindowInsets ব্যবহার করুন। ( Id72bb )

সংস্করণ 1.6.0-alpha03

9 আগস্ট, 2023

androidx.compose.foundation:foundation-*:1.6.0-alpha03 প্রকাশিত হয়েছে। সংস্করণ 1.6.0-ALPHA03 এ এই কমিটগুলি রয়েছে।

এপিআই পরিবর্তন

  • LazyLayout ওভারলোড যুক্ত হয়েছে, এটি LazyLayoutItemProvider একটি ল্যাম্বডা গ্রহণ করে, এটি আগের মতো সাধারণ বস্তু নয়। পূর্ববর্তী ওভারলোডটি হ্রাস করা হয়। ( I42a5a )
  • privateImeOptions কনফিগার করার জন্য সমর্থন যুক্ত করা হয়েছে ( আইডিবি 772 )

বাগ ফিক্স

  • স্থির পাঠ্য ক্ষেত্রগুলি কীবোর্ড দেখায় এবং যখন readOnly সত্য হয় তখন সম্পাদনাযোগ্য হওয়া। ফোকাস করার সময় readOnly সত্য থেকে মিথ্যা পরিবর্তিত হলে কীবোর্ডটি দেখানো হয়নি তাও স্থির করে। ( I34a19 , খ/246909589 )

সংস্করণ 1.6.0-Alpha02

জুলাই 26, 2023

androidx.compose.foundation:foundation-*:1.6.0-alpha02 প্রকাশিত হয়েছে। সংস্করণ 1.6.0-ALPHA02 এ এই কমিটগুলি রয়েছে।

এপিআই পরিবর্তন

  • Pager একটি পরিমাপ পাসের পরে সংগৃহীত তথ্য সহ PagerLayoutInfo পরিচয় করিয়ে দেয়। PageInfo , Pager একক পরিমাপ করা পৃষ্ঠা সম্পর্কে তথ্যও পরিচয় করিয়ে দেয়। ( IAD003 , খ/283098900 )
  • কমপোজেবলগুলিতে অনুমোদিত ইনপুটগুলি নির্দিষ্ট করার জন্য অতিরিক্ত টীকাগুলি ( i51109 )
  • টেস্টগুলিতে ফোকাসের জন্য অনুরোধ করার জন্য আরও সুবিধাজনক এবং আবিষ্কারযোগ্য উপায় হিসাবে SemanticsNodeInteraction.requestFocus যুক্ত করা হয়েছে। ( Ie8722 )
  • সম্পূর্ণরূপে পুনরায় ডিজাইন করা PlatformTextInput* এপিআই। ( I6c93a , বি/274661182 , বি/267235947 , বি/277380808 )
  • SoftwareKeyboardController এবং LocalSoftwareKeyboardController আর পরীক্ষামূলক নয়। LocalSoftwareKeyboardController এখন একটি সঠিক CompositionLocal । ( I4c364 )
  • Modifier.transformable এখন canPan প্যারামিটারে প্যান ডেল্টা সরবরাহ করে যাতে প্যানের দিকনির্দেশ নির্ধারণ বা এটি অস্বীকার করার জন্য সহায়তা করে। ( I692aa , খ/266829800 )
  • সুপারক্লাস AbstractComposeView ( আইএসিডি 74 , বি/269479941 ) প্রসারিত করতে মডিফায়ার consumeWindowInsets আপডেট করে

সংস্করণ 1.6.0-alpha01

জুন 21, 2023

androidx.compose.foundation:foundation-*:1.6.0-alpha01 প্রকাশিত হয়েছে। সংস্করণ 1.6.0-alpha01-এ এই কমিট রয়েছে।

নতুন বৈশিষ্ট

  • ফাউন্ডেশনে একটি নতুন AnchoredDraggable এপিআই প্রবর্তন করেছে। এটি এমন উপাদানগুলি তৈরি করতে ব্যবহার করা যেতে পারে যা মডেল নীচের শিটগুলির মতো পৃথক রাজ্যের মধ্যে টেনে আনতে পারে। এই এপিআই উপাদানের Swipeable এপিআই প্রতিস্থাপন করে। ( I4a2ed )

এপিআই পরিবর্তন

  • সমর্থন InputConnection#requestCursorUpdates ( আই 0 সি 69 বি )
  • কাস্টম অ্যানিমেশন স্পেসগুলির অনুমতি দেওয়ার জন্য scrollAnimationSpec প্রবর্তন করেছে। BringIntoViewCalculator আপডেট BringIntoViewScroller ( আইডিবি 741 )
  • লোড করতে ব্যর্থ হওয়া সম্পদ পাথের বিবরণ সহ বিটম্যাপ সম্পদগুলি লোড করার চেষ্টা করার সময় নিক্ষিপ্ত থ্রোয়েবলগুলি মোড়ানো মোড়কে ResourceResolutionException টাইপ যুক্ত করুন। ( I19f44 , খ/230166331 , বি/278424788 )
  • পাঠ্য অনুবাদ সমর্থন করার জন্য শব্দার্থবিজ্ঞানের বৈশিষ্ট্য এবং ক্রিয়া যুক্ত করা হয়েছে। ( I4a6bc )
  • একটি BringIntoViewCalculator এপিআই প্রবর্তন করেছে যা Scrollable মতো উপাদানগুলি কীভাবে bringIntoView অনুরোধগুলিতে প্রতিক্রিয়া জানায় তা কাস্টমাইজ করতে ব্যবহার করা যেতে পারে। BringIntoViewCalculator একটি উদাহরণকে acception চ্ছিকভাবে গ্রহণ করতে স্ক্রোলযোগ্য ওভারলোড পরিবর্তন করেছে। ( আইএএফ 5 এএফ )

বাগ ফিক্স

  • আপনি যদি এটি স্মরণ না করে রচনাটিতে একটি MutableInteractionSource তৈরি করে থাকেন তবে সতর্ক করার জন্য একটি লিন্ট চেক যুক্ত করেছেন, মিউটেবল স্টেট / Animatable তৈরির জন্য লিন্ট চেকগুলির অনুরূপ। ( I5daae )
  • মাউস দ্বারা নির্বাচনের জন্য সমর্থন যুক্ত করা হয়েছে। স্পর্শ ভিত্তিক নির্বাচন শব্দ দ্বারা প্রসারিত হবে এবং চরিত্র দ্বারা সঙ্কুচিত হবে। ( আইসি 0 সি 6 সি , বি/180639271 )
  • যুক্ত FocusTargetModifierNode ইন্টারফেস যা কাস্টম FocusTarget তৈরি করতে ব্যবহার করা যেতে পারে। ( I9790e )

সংস্করণ 1.5

সংস্করণ 1.5.4

18 অক্টোবর, 2023

androidx.compose.foundation:foundation-*:1.5.4 প্রকাশিত হয়েছে। সংস্করণ 1.5.4 এ এই কমিটস রয়েছে।

সংস্করণ 1.5.3

4 অক্টোবর, 2023

androidx.compose.foundation:foundation-*:1.5.3 প্রকাশিত হয়েছে। এই সংস্করণটির কোনও পরিবর্তন নেই।

সংস্করণ 1.5.2

27 সেপ্টেম্বর, 2023

androidx.compose.foundation:foundation-*:1.5.2 প্রকাশিত হয়েছে। সংস্করণ 1.5.2 এ এই কমিটস রয়েছে।

বাগ ফিক্স

  • পাঠ্যটিতে একটি বাগ স্থির করে যা শব্দার্থবিজ্ঞানগুলি অবৈধ হলে নির্দিষ্ট পরিস্থিতিতে ক্র্যাশ হয়ে যায়।

সংস্করণ 1.5.1

6 সেপ্টেম্বর, 2023

androidx.compose.foundation:foundation-*:1.5.1 প্রকাশিত হয়েছে। সংস্করণ 1.5.1 এই কমিট ধারণ করে.

বাগ ফিক্স

  • স্থির পাঠ্য ক্ষেত্রগুলি কীবোর্ড দেখায় এবং যখন readOnly সত্য হয় তখন সম্পাদনাযোগ্য হওয়া। ফোকাস করার সময় readOnly সত্য থেকে মিথ্যা পরিবর্তিত হলে কীবোর্ডটি দেখানো হয়নি তাও স্থির করে। ( I34a19 , খ/246909589 )

সংস্করণ 1.5.0

9 আগস্ট, 2023

androidx.compose.foundation:foundation-*:1.5.0 প্রকাশিত হয়েছে। সংস্করণ 1.5.0 এই কমিট ধারণ করে.

1.4.0 থেকে গুরুত্বপূর্ণ পরিবর্তন

  • Modifier.clickable Modifier.draggable Modifier.scrollable Modifier.Node
  • পেজার স্থায়িত্বের উন্নতি। অনেক বাগ সম্বোধন করা হয়েছে।
  • pageCount প্যারামিটারগুলি এখন পেজারের পরিবর্তে PagerState বাস করে

সংস্করণ 1.5.0-rc01

জুলাই 26, 2023

androidx.compose.foundation:foundation-*:1.5.0-rc01 প্রকাশিত হয়েছে। 1.5.0-rc01 সংস্করণে এই কমিট রয়েছে।

বাগ ফিক্স

  • প্রিমিটিভগুলির জন্য তাদের সম্পর্কিত বিশেষায়িত ধরণের কলগুলি mutableStateOf() কল করার পরামর্শ দেওয়ার জন্য একটি al চ্ছিক পরিদর্শন উপলব্ধ। এর লিন্ট আইডি হ'ল AutoboxingStateCreation । পূর্বে, এই পরিদর্শনটি সমস্ত প্রকল্পের জন্য ডিফল্টরূপে সক্ষম করা হয়েছিল। অ্যান্ড্রয়েড স্টুডিওর সম্পাদক এবং আপনার প্রকল্পের লিন্ট আউটপুটগুলিতে এই সতর্কতাটি দেখতে, আপনার build.gradle অভ্যন্তরে warning "AutoboxingStateCreation" ঘোষণা করে তথ্যগত থেকে সতর্কতা (বা উচ্চতর) এ তার তীব্রতা পরিবর্তন করুন build.gradle.kts

        android {
            lint {
                warning "AutoboxingStateCreation"
            }
            ...
        }
    

সংস্করণ 1.5.0-BETA03

জুন 28, 2023

androidx.compose.foundation:foundation-*:1.5.0-beta03 প্রকাশিত হয়েছে। সংস্করণ 1.5.0-BETA03 এ এই কমিটগুলি রয়েছে।

সংস্করণ 1.5.0-BETA02

7 জুন, 2023

androidx.compose.foundation:foundation-*:1.5.0-beta02 প্রকাশিত হয়েছে। সংস্করণ 1.5.0-BETA02 এ এই কমিটগুলি রয়েছে।

সংস্করণ 1.5.0-beta01

24 মে, 2023

androidx.compose.foundation:foundation-*:1.5.0-beta01 প্রকাশিত হয়েছে। সংস্করণ 1.5.0-beta01-এ এই কমিট রয়েছে।

এপিআই পরিবর্তন

  • হার্ট রেট এবং প্রতিদিনের পদক্ষেপগুলি সরবরাহ করতে PlatformDataProvider প্রয়োগ করুন। SensorGateway ইন্টারফেসটি পাবলিক এপিআই থেকে সরানো হয়েছে। ( I55b84 )

বাগ ফিক্স

  • অলস তালিকা/গ্রিড/ইত্যাদি চলাকালীন বরাদ্দ হ্রাস করুন। পরিমাপ ( iaf9e2 )
  • স্ন্যাপশট প্রয়োগ করার সময় হ্রাস হ্রাস ( i65C09 )
  • স্প্রিং অ্যানিমেশনগুলি থেকে বরাদ্দ সরানো হয়েছে ( ie9431 )
  • TextLayout থেকে বরাদ্দ সরানো হয়েছে ( i0fd11 )
  • পয়েন্টার বেগ ট্র্যাকিংয়ে একাধিক বরাদ্দ মুছে ফেলা ( i26bae )

সংস্করণ 1.5.0-alpha04

10 মে, 2023

androidx.compose.foundation:foundation:1.5.0-alpha04 Foundation:1.5.0-Alpha04 এবং androidx.compose.foundation:foundation-layout:1.5.0-alpha04 Foundation-Layout:1.5.0-Alpha04 প্রকাশিত হয়েছে। সংস্করণ 1.5.0-alpha04 এই কমিট ধারণ করে।

এপিআই পরিবর্তন

  • সম্পূর্ণ প্যারামিটার তালিকার সাথে অপ্টিমাইজড TextStyle.merge(...) যুক্ত করা হয়েছে। ( আইএডি 234 , বি/246961787 )
  • একটি SnapLayoutInfoProvider পরিচয় করিয়ে দিন যা LazyGridState সাথে ব্যবহার করা যেতে পারে। ( I92134 , বি/269237141 , বি/260914964 )
  • অলস স্তম্ভিত গ্রিডস আইটেমের সুযোগের জন্য পরীক্ষামূলক Modifier.animateItemPlacement() যুক্ত করা হয়েছিল। অটোমেশন অবস্থান পরিবর্তন/পুনরায় অর্ডার অ্যানিমেশনগুলি অর্জনের জন্য আপনি এটি আইটেমগুলিতে প্রয়োগ করতে পারেন। ( আই 4 বি 62 ডি , বি/257034719 )
  • GridCells.FixedSize স্থিতিতে প্রচার করুন। FixedSize একটি LazyGrid সংজ্ঞায়িত করে যেখানে প্রতিটি কোষ ক্রস অক্ষের উপর সঠিক আকার নেয়, ক্রস অক্ষের বিন্যাস দ্বারা বিতরণ করা অবশিষ্ট স্থান সহ। ( I8542f )
  • পেজারের জন্য রিসিভার স্কোপ PagerScope এবং একটি প্রদত্ত পৃষ্ঠা অফসেট গণনার জন্য একটি ইউটিলিটি ফাংশন প্রবর্তিত। ( আইএফ 2577 )
  • স্ন্যাপ ফ্লিং আচরণ তৈরি করার সময় snapPositionalThreshold পরিচয় করিয়ে দিন। পেজারে শর্ট স্ন্যাপিংয়ের জন্য একটি অবস্থানগত প্রান্তিক নির্দিষ্ট করতে এই প্যারামিটারটি ব্যবহার করুন। ( If8f7f )
  • calculateSnappingOffset সাথে SnapLayoutInfoProvider.calculateSnappingOffsetBounds প্রতিস্থাপন করেছেন। এই নতুন পদ্ধতিতে আমরা কেবল পরবর্তী অফসেটটিতে স্ন্যাপ করার জন্য অনুরোধ করছি। সীমাগুলির গণনা বাস্তবায়ন স্তরে সম্পাদন করা উচিত কারণ এটি কীভাবে ঘটতে পারে তার উপর নির্ভর করে এটি পৃথক হতে পারে। ( I923a4 )
  • LazyStaggeredGrid এপিআইগুলিকে স্থিতিশীল হিসাবে পদোন্নতি দেওয়া হয়েছে। ( I633a5 )
  • Horizontal/VerticalPager থেকে pageCount সরান। এটি রাজ্য সৃষ্টিতে সরবরাহ করা উচিত। pageCount গ্রহণ করার জন্য আপডেট করা PagerState এবং rememberPagerState । ( আইইবি 52 ডি , বি/266965072 )
  • Horizontal/VerticalPager থেকে pageCount সরান। এটি রাজ্য সৃষ্টিতে সরবরাহ করা উচিত। pageCount গ্রহণ করার জন্য আপডেট করা PagerState এবং rememberPagerState । ( আইএফএ 3 সিবি , বি/266965072 )
  • পেজারের SnapFlingBehavior shortSnapVelocityThreshold পরিচয় করিয়ে দিন। ( I7379e , বি/275579012 )
  • একটি FlowRowScope এবং FlowColumnScope যুক্ত করে। ( I54fe2 )

বাগ ফিক্স

  • যখন সীমাবদ্ধতাগুলি minWidth এবং minHeight আর ক্র্যাশ হয় না তখন পাঠ্যে শব্দার্থবিজ্ঞান পেতে কল করে। ( আইবিডি 072 )
  • স্থির রিগ্রেশন যেখানে কীবোর্ড Dialog মধ্যে ডায়ালগগুলি তৈরি করা হয় না এমন ডায়ালগগুলির ভিতরে পাঠ্য ক্ষেত্রগুলির জন্য প্রদর্শন করছিল না। ( I82551 , খ/262140644 )

সংস্করণ 1.5.0-alpha03

এপ্রিল 19, 2023

androidx.compose.foundation:foundation:1.5.0-alpha03 Foundation:1.5.0-Alpha03 এবং androidx.compose.foundation:foundation-layout:1.5.0-alpha03 Foundation-Layout:1.5.0-Alpha03 প্রকাশিত হয়েছে। সংস্করণ 1.5.0-alpha03 এই কমিট ধারণ করে।

এই প্রকাশটি রচনাটির জন্য নতুন পাঠ্য রেন্ডারিং স্ট্যাক সক্ষম করে। নতুন স্ট্যাকটি পারফরম্যান্স অপ্টিমাইজড এবং আপনার কোনও দৃশ্যমান পরিবর্তন দেখা উচিত নয়।

আপনি যদি রেন্ডারযুক্ত পাঠ্যের পরিবর্তনগুলি দেখতে পান তবে আচরণের পার্থক্যটি নিশ্চিত করতে আপনি NewTextRendering1_5 = false সেট করে ডিবাগ করতে পারেন। এটি সেট করা পুনরুদ্ধার জোর করবে। বাগ হিসাবে কোনও আচরণের পার্থক্য ফাইল করুন।

ডিবাগ পতাকাটি 1.5 বিটা 01 রিলিজের আগে সরানো হবে (( আইএডিএ 23 , বি/246960758 )

এপিআই পরিবর্তন

সংস্করণ 1.5.0-alpha02

5 এপ্রিল, 2023

androidx.compose.foundation:foundation:1.5.0-alpha02 Foundation:1.5.0-Alpha02 এবং androidx.compose.foundation:foundation-layout:1.5.0-alpha02 Foundation-layout:1.5.0-Alpha02 প্রকাশিত হয়েছে। সংস্করণ 1.5.0-alpha02 এই কমিট ধারণ করে।

এপিআই পরিবর্তন

  • LazyGrid স্থির আকারের কোষগুলির জন্য সমর্থন যুক্ত করা এবং ক্রস অক্ষের বিন্যাসের সাথে তাদের সাজানো। ( I83ed9 , খ/235121277 , বি/267942510 )
  • LazyStaggeredGrid স্থির আকারের লেনগুলির জন্য সমর্থন যুক্ত করা এবং ক্রস অক্ষের বিন্যাসের সাথে তাদের সাজানো। ( I7d519 )
  • TalkBack মতো অ্যাক্সেসিবিলিটি পরিষেবাদির মাধ্যমে এখন AnnotatedString এস -তে UrlAnnotation s খোলা যেতে পারে। ( আইএফ 4 ডি 82 , বি/253292081 )
  • পাঠ্য ক্ষেত্রগুলির জন্য InsertTextAtCursor শব্দার্থবিজ্ঞানের ক্রিয়া যুক্ত করা হয়েছে। ( আই 11 এড 5 )
  • পাঠ্য সম্পর্কিত পরীক্ষার ক্রিয়াগুলি (যেমন performTextInput ) এখন ক্ষেত্রটিতে ক্লিক করার পরিবর্তে শব্দার্থবিজ্ঞানের ক্রিয়াটি ব্যবহার করে সরাসরি ফোকাসের জন্য অনুরোধ করবে। ( I6ed05 )
  • FlowRow এবং FlowColumn verticalArrangement এবং horizontalArrangement ব্যবহার করে ক্রস অক্ষের ব্যবধান/বিন্যাসের জন্য সমর্থন যুক্ত করে। আমরা FlowRow/FlowColumn শীর্ষ-স্তরের verticalAlignment এবং অনুভূমিককরণ এবং horizontalAlignment সরিয়ে ফেলি। বিকাশকারীরা পরিবর্তে Modifier.align ব্যবহার করতে পারেন। এটি verticalAlignment এবং verticalArrangement নামকরণ কনভেনশনগুলির মধ্যে বিভ্রান্তি হ্রাস করে। ( I87b60 , বি/268365538 )

সংস্করণ 1.5.0-alpha01

22 মার্চ, 2023

androidx.compose.foundation:foundation:1.5.0-alpha01 Foundation:1.5.0-Alpha01 এবং androidx.compose.foundation:foundation-layout:1.5.0-alpha01 Foundation-Layout:1.5.0-Alpha01 প্রকাশিত হয়েছে। সংস্করণ 1.5.0-alpha01 এই কমিট ধারণ করে।

এপিআই পরিবর্তন

  • নতুন মডিফায়ার সিস্টেমটি ব্যবহার করার জন্য পাঠ্য এবং BasicText রিফ্যাক্ট করা হয়েছে। এটি অনেক ক্ষেত্রে যথেষ্ট পারফরম্যান্সের উন্নতির দিকে পরিচালিত করে। কোনও পরিবর্তন দৃশ্যমান হওয়া উচিত। ( আইএফ 1 ডি 17 , বি/246961435 )
  • পাঠ্য সম্পাদক নোডগুলিতে আইএমই অ্যাকশনটি অনুরোধ করার জন্য PerformImeAction শব্দার্থবিজ্ঞানের ক্রিয়া যুক্ত করেছে। ( আইসি 606 এফ , বি/269633506 )

বাগ ফিক্স

  • Modifier.hoverable ইন্টার্নাল আপডেট হয়েছে। hoverable মডিফায়ার কেবল পরিদর্শককে সক্ষম করা থাকলে প্রদর্শিত হবে। ( I82103 )

সংস্করণ 1.4

সংস্করণ 1.4.3

3 মে, 2023

androidx.compose.foundation:foundation:1.4.3 Foundation:1.4.3 এবং androidx.compose.foundation:foundation-layout:1.4.3 Foundation-layout:1.4.3 কোনও পরিবর্তন ছাড়াই প্রকাশিত হয় না (কেবল একটি সংস্করণ বাম্প)।

সংস্করণ 1.4.2

এপ্রিল 19, 2023

androidx.compose.foundation:foundation:1.4.2 Foundation:1.4.2 এবং androidx.compose.foundation:foundation-layout:1.4.2 layout:1.4.2 প্রকাশিত হয়েছে। সংস্করণ 1.4.2 এ এই কমিটস রয়েছে।

সংস্করণ 1.4.1

5 এপ্রিল, 2023

androidx.compose.foundation:foundation:1.4.1 Foundation:1.4.1 এবং androidx.compose.foundation:foundation-layout:1.4.1 layout:1.4.1 প্রকাশিত হয়েছে। সংস্করণ 1.4.1 এ এই কমিটস রয়েছে।

সংস্করণ 1.4.0

22 মার্চ, 2023

androidx.compose.foundation:foundation:1.4.0 Foundation:1.4.0 এবং androidx.compose.foundation:foundation-layout:1.4.0 layout:1.4.0 প্রকাশিত হয়েছে। সংস্করণ 1.4.0 এই কমিট ধারণ করে.

1.3.0 থেকে গুরুত্বপূর্ণ পরিবর্তন

  • Text এবং TextField ইমোজি কমপ্যাট ইন্টিগ্রেশন যুক্ত করা হয়েছে, পাশাপাশি নিম্ন স্তরের অনুচ্ছেদ। ইমোজিকম্প্যাট কনফিগার করা হলে এটি ডিফল্টরূপে সক্ষম করা হয়।
  • EmojiCompat PlatformParagraphStyle ব্যবহার করে একটি নির্দিষ্ট পাঠ্যে কনফিগার করা যেতে পারে।
  • LazyStaggeredGrid সম্পূর্ণ লাইন স্প্যান সমর্থন যুক্ত করা হয়েছে (i28252)
  • ClickableText (i6938f) এ পরীক্ষামূলক onHover যুক্ত করা হচ্ছে
  • runComposeUiTest ফাংশনের জন্য নতুন পরীক্ষামূলক ওভারলোডগুলি প্রবর্তন করে এবং create*ComposeRule যা CoroutineContext প্যারামিটারগুলি গ্রহণ করে। প্রসঙ্গটি পরীক্ষার রচনা এবং যে কোনও LaunchedEffect এবং rememberCoroutineScope() সংমিশ্রণে কলগুলির জন্য ব্যবহৃত হবে। ( আই 10614 , বি/265177763 )
  • FlowRow এবং FlowColumn এখন @ExperimentalFoundationApi হিসাবে উপলব্ধ যা মূল অক্ষগুলিতে পর্যাপ্ত জায়গা না থাকলে একটি নতুন লাইনে ভেঙে যাবে এমন উপাদানগুলির আরও নমনীয় সারি এবং কলাম ভিত্তিক বিন্যাসের অনুমতি দেয়। ( I3a7b2 )
  • Modifier.basicMarquee() একটি স্ক্রোলিং মার্কি প্রভাব সহ সামগ্রী প্রদর্শনের জন্য পরীক্ষামূলক হিসাবে উপলব্ধ। ( আই 2 ডিএফ 44 , বি/139321650 )

সংস্করণ 1.4.0-rc01

8 মার্চ, 2023

androidx.compose.foundation:foundation:1.4.0-rc01 Foundation:1.4.0-rc01 এবং androidx.compose.foundation:foundation-layout:1.4.0-rc01 Foundation-Layout:1.4.0-RC01 প্রকাশিত হয়েছে। সংস্করণ 1.4.0-rc01-এ এই কমিট রয়েছে।

এপিআই পরিবর্তন

  • প্ল্যাটফর্ম এপিআই-তে সরাসরি কথা বলে কাস্টম পাঠ্য ইনপুট বাস্তবায়নগুলি তৈরির জন্য নতুন নিম্ন-স্তরের PlatformTextInputAdapter এপিআই প্রবর্তন করেছে। ( I58df4 )
  • LazyStaggeredGrid বিপরীত বিন্যাসের জন্য সমর্থন যুক্ত করুন। ( I3ef4a )

বাগ ফিক্স

  • BasicTextField SetText শব্দার্থবিজ্ঞান অ্যাকশন এখন আইএমই আপডেট এবং পরীক্ষার ফাংশন (যেমন performTextReplacement ) হিসাবে একই কোড পাথ ব্যবহার করে পাঠ্য বাফারটি আপডেট করবে।
  • পাঠ্য পরীক্ষার ফাংশনগুলি performTextClearance , performTextReplacement এবং performTextSelection এখন SemanticsActions ব্যবহার করে। ( I0807d , খ/269633168 , বি/269624358 )

সংস্করণ 1.4.0-BETA02

22 ফেব্রুয়ারি, 2023

androidx.compose.foundation:foundation:1.4.0-beta02 Foundation:1.4.0-beta02 এবং androidx.compose.foundation:foundation-layout:1.4.0-beta02 Foundation-Layout:1.4.0-beta02 প্রকাশিত হয়েছে। 1.4.0-beta02 সংস্করণে এই কমিট রয়েছে।

এপিআই পরিবর্তন

  • একটি নতুন Modifier.Node.onReset() কলব্যাক যুক্ত করা হয়েছে যাতে আপনাকে কিছু স্থানীয় রাষ্ট্রকে পুনরায় সেট করতে দেয় যখন Layout পুনরায় ব্যবহার করা হবে (উদাহরণস্বরূপ LazyColumn এর আইটেম হিসাবে) কেসটি সঠিকভাবে পরিচালনা করতে দেয়। ফোকাসযুক্ত রাষ্ট্রটি সঠিকভাবে পুনরায় সেট করতে ফিক্স FocusTargetModifierNode । ( I65495 , বি/265201972 )
  • ক্যানভাসে পাঠ্য অঙ্কন করার সময় বিভিন্ন মিশ্রণ অ্যালগরিদমগুলিকে সমর্থন করার জন্য DrawScope.drawText , Paragraph.paint এবং MultiParagraph.paint পদ্ধতিগুলিতে BlendMode প্যারামিটার যুক্ত করা হয়েছে। ( I57508 )
  • modifierElementOf() এপিআই মুছে ফেলা। পরিবর্তে সরাসরি ModifierNodeElement থেকে প্রসারিত করুন। ( Ie6d21 )

বাগ ফিক্স

  • নির্বাচন হ্যান্ডলগুলি সামঞ্জস্য করা আর কোনও আংশিক চরিত্র নির্বাচন করতে পারে না। ( আইডিড 1 )
  • খালি TextField সিটিআরএল+ব্যাকস্পেস ( আই 0427 এফ , বি/244185537 ) ক্র্যাশ করুন

সংস্করণ 1.4.0-beta01

ফেব্রুয়ারী 8, 2023

androidx.compose.foundation:foundation:1.4.0-beta01 Foundation:1.4.0-beta01 এবং androidx.compose.foundation:foundation-layout:1.4.0-beta01 Foundation-Layout:1.4.0-BETA01 প্রকাশিত হয়েছে। সংস্করণ 1.4.0-beta01-এ এই কমিট রয়েছে।

নতুন বৈশিষ্ট

  • ১.৩ সাল থেকে, Text এবং TextField ইমোজি কমপ্যাট ইন্টিগ্রেশন, পাশাপাশি নিম্ন স্তরের অনুচ্ছেদে যুক্ত হয়েছে। ইমোজিকম্প্যাট কনফিগার করা হলে এটি ডিফল্টরূপে সক্ষম করা হয়।
  • EmojiCompat PlatformParagraphStyle ব্যবহার করে একটি নির্দিষ্ট পাঠ্যে কনফিগার করা যেতে পারে।

এপিআই পরিবর্তন

  • রচনাগুলি প্রস্থান করে এমন আইটেমগুলি ধরে রাখতে সমস্ত LazyLayouts ব্যবহৃত PinnableContainer এপিআইয়ের সাধারণ বাস্তবায়ন যুক্ত করা হয়েছে, তবে এখনও সক্রিয় হওয়া দরকার। ( If45a4 )
  • PinnableContainer.PinnedHandle.unpin() নামকরণ করা হয়েছিল release() ( i4667a ) প্রকাশের জন্য।

বাহ্যিক অবদান

  • LazyListLayoutInfo , LazyGridLayoutInfo এবং LazyStaggeredGridItemInfo ( আই 52fad ) এ mainAxisItemSpacing সম্পত্তি যুক্ত করা হয়েছে

সংস্করণ 1.4.0-আলফা 05

25 জানুয়ারী, 2023

androidx.compose.foundation:foundation:1.4.0-alpha05 Foundation:1.4.0-Alpha05 এবং androidx.compose.foundation:foundation-layout:1.4.0-alpha05 Foundation-Layout:1.4.0-Alpha05 প্রকাশিত হয়েছে। সংস্করণ 1.4.0-ALPHA05 এ এই কমিটগুলি রয়েছে।

নতুন বৈশিষ্ট

  • LazyStaggeredGrid সম্পূর্ণ লাইন স্প্যান সমর্থন যুক্ত করা হয়েছে ( i28252 )
  • ClickableText ( i6938f ) এ পরীক্ষামূলক onHover যুক্ত করা হচ্ছে
  • runComposeUiTest ফাংশনের জন্য নতুন পরীক্ষামূলক ওভারলোডগুলি প্রবর্তন করে এবং create*ComposeRule যা CoroutineContext প্যারামিটারগুলি গ্রহণ করে। প্রসঙ্গটি পরীক্ষার রচনা এবং যে কোনও LaunchedEffect এবং rememberCoroutineScope() সংমিশ্রণে কলগুলির জন্য ব্যবহৃত হবে। ( আই 10614 , বি/265177763 )

এপিআই পরিবর্তন

  • OverscrollEffect প্রাক/পোস্ট এপিআইগুলিকে সম্মিলিত 'ডেকোরেটর' applyToScroll এবং applyToFling ক্রিয়াকলাপগুলিতে মার্জ করে। নতুন এপিআই আকারের সাথে কীভাবে একটি ওভারক্রোল প্রভাব প্রয়োগ করা যায় তার উদাহরণগুলির জন্য ডকুমেন্টেশনে আপডেট হওয়া নমুনাগুলি দেখুন। ( I8a9c4 , খ/255554340 )
  • ইনলাইন/অবমূল্যায়িত-লুকানো ফাংশনগুলির আরও প্রকার/বাতিলযোগ্যতা ( i24f91 )
  • TextStyle LineBreak এবং Hyphens এপিআইগুলি স্থিতিতে স্নাতক হয়। ( আইসি 1 ই 1 ডি )

বাগ ফিক্স

  • টেক্সট ক্ষেত্রগুলিতে কার্সারটি এখন অ্যানিমেশনগুলি অক্ষম থাকলেও ঝলকানো চালিয়ে যাবে। ( I95e70 , বি/265177763 )
  • Modifier.basicMarquee এখন অ্যানিমেশনগুলি সিস্টেম সেটিংসে অক্ষম থাকলেও অ্যানিমেট করে। ( আই 23389 , বি/262298306 , বি/265177763 )

বাহ্যিক অবদান

  • TextInputSession এবং TextInputService notifyFocusedRect পদ্ধতিগুলি আবার অবমূল্যায়ন করা হয় না। ( I23a04 , খ/262648050 )

সংস্করণ 1.4.0-আলফা 04

11 জানুয়ারী, 2023

androidx.compose.foundation:foundation:1.4.0-alpha04 Foundation:1.4.0-Alpha04 এবং androidx.compose.foundation:foundation-layout:1.4.0-alpha04 Foundation-layout:1.4.0-Alpha04 প্রকাশিত হয়েছে। সংস্করণ 1.4.0-ALPHA04 এ এই কমিটগুলি রয়েছে।

নতুন বৈশিষ্ট

  • FlowRow এবং FlowColumn এখন @ExperimentalFoundationApi হিসাবে উপলব্ধ যা মূল অক্ষগুলিতে পর্যাপ্ত জায়গা না থাকলে একটি নতুন লাইনে ভেঙে যাবে এমন উপাদানগুলির আরও নমনীয় সারি এবং কলাম ভিত্তিক বিন্যাসের অনুমতি দেয়। ( I3a7b2 )
  • Modifier.basicMarquee() একটি স্ক্রোলিং মার্কি প্রভাব সহ সামগ্রী প্রদর্শনের জন্য পরীক্ষামূলক হিসাবে উপলব্ধ। ( আই 2 ডিএফ 44 , বি/139321650 )

এপিআই পরিবর্তন

  • FocusRequesterModifier FocusRequesterNode ( আই 7 এফ 4 ডি 7 , বি/247708726 , বি/255352203 , বি/253043481 , বি/24716483 , বি/25452934 , বি/2518401112 , বি/2580112 , বি/2580112 এর পক্ষে অবমূল্যায়িত হয়
  • variationSettings সহ AndroidFont কনস্ট্রাক্টর এখন একটি স্থিতিশীল এপিআই, এবং নতুন ধরণের ফন্ট বর্ণনাকারী তৈরি করতে ব্যবহার করা যেতে পারে। ( I5adcc , খ/261565807 )
  • PinnableContainer এপিআই প্রবর্তিত একটি রচনা স্থানীয় মাধ্যমে অলস তালিকা দ্বারা প্রচারিত যা বর্তমান আইটেমটি পিন করতে দেয়। এর অর্থ এই জাতীয় আইটেমটি যখন ভিউ থেকে দূরে স্ক্রোল করা হয় তখন নিষ্পত্তি করা হবে না। উদাহরণস্বরূপ, Modifier.focusable() এই প্রক্রিয়াটির মাধ্যমে বর্তমান ফোকাসযুক্ত আইটেমটি পিন করবে। ( আইবি 8881 , বি/259274257 , বি/195049010 )
  • এই অপারেশনগুলির জটিলতা আরও ভাল মডেল করতে এবং আরও প্রান্তের কেসগুলি পরিচালনা করার জন্য স্ক্রোলেবলগুলি যেভাবে bringIntoViewRequesters এবং ফোকাসেবলগুলিতে প্রতিক্রিয়া জানায় তা পুনরায় লিখুন। ( I2e5fe , খ/241591211 , বি/192043120 , বি/237190748 , বি/230756508 , বি/239451114 )
  • অবনমন-লুকানো ফাংশনগুলির আরও রিটার্ন টাইপ বাতিলযোগ্যতা ( Ibf7b0 )
  • Static(default) বা অ্যানিমেটেড হিসাবে পাঠ্যকে সংজ্ঞায়িত করতে TextStyle পরীক্ষামূলক TextMotion যুক্ত করা হয়েছে। TextMotion.Animated ব্যবহার করুন an অ্যানিমেশনের মাধ্যমে পাঠ্য স্কেল, অনুবাদ বা ঘোরানো হলে অ্যানিমেটেড। ( I24dd7 )
  • অ্যান্ড্রয়েড প্ল্যাটফর্মের জন্য ফোকাস নেভিগেশন আচরণটি ঠিক করতে TextFieldFocusModifier যুক্ত করুন ( I00303 )
  • প্রতিস্থাপন maxSize: IntSize আকারের সাথে drawText ইন্টিজ আর্গুমেন্ট size: Size অন্যান্য DrawScope ফাংশনগুলির সাথে ইনলাইন হতে হবে। size Size.Unspecified সেট করা হয় un ( আইসিডি 27 ডি )

বাগ ফিক্স

  • আরও প্রাকৃতিক অনুভূতির জন্য SnapFlingBehaviour স্ন্যাপিং ফিজিক্সে সামঞ্জস্য।

পরিচিত সমস্যা

  • androidx.compose.foundation:1.4.0-alpha03 থেকে androidx.compose.foundation:1.4.0-alpha04 এ আপডেট করার সময়, আপনি একটি java.lang.NoSuchFieldError ত্রুটি অনুভব করতে পারেন। এখানেই সমস্যাটি অরগানিকভাবে রিপোর্ট করা হয়েছিল। একটি ফিক্স জমা দেওয়া হয়েছে, এবং পরবর্তী রচনা আপডেটে উপলব্ধ হবে। চারপাশে একটি কাজ হিসাবে, আপনার androidx.compose.material এবং androidx.compose.material3 লাইব্রেরিগুলিকে সর্বশেষ সংস্করণে (1.1.0-আলফা 04) আপডেট করুন বা আপনার androidx.compose.foundation 1.4.0-আলফা 03 এ ডাউনগ্রেড করুন।

সংস্করণ 1.4.0-আলফা 03

7 ডিসেম্বর, 2022

androidx.compose.foundation:foundation:1.4.0-alpha03 Foundation:1.4.0-Alpha03 এবং androidx.compose.foundation:foundation-layout:1.4.0-alpha03 Foundation-Layout:1.4.0-Alpha03 প্রকাশিত হয়েছে। সংস্করণ 1.4.0-Alpha03 এ এই কমিটগুলি রয়েছে।

এপিআই পরিবর্তন

  • একটি কমপোজ বিধি ব্যবহার করে ইউআই পরীক্ষায়, সমস্ত ফ্রেম কলব্যাকগুলি চলমান শেষ না হওয়া পর্যন্ত withFrameNanos কলব্যাকস চলাকালীন পুনরায় শুরু করা ধারাবাহিকতা প্রেরণ করা হবে না। এটি সাধারণত চলাকালীন রচনার আচরণের সাথে মেলে। যাইহোক, পুরানো আচরণের উপর নির্ভর করে এমন পরীক্ষাগুলি ব্যর্থ হতে পারে। এটি কেবলমাত্র কোডকে প্রভাবিত করবে যা সরাসরি withFrameNanos বা withFrameMillis কল ​​করে এবং কলব্যাকের বাইরে যুক্তিযুক্ত সেই ফাংশনগুলিতে পাস করা উচিত যা কলব্যাকগুলির ভিতরে সরানোর প্রয়োজন হতে পারে। উদাহরণগুলির জন্য এই সিএল -এ অ্যানিমেশন পরীক্ষার পরিবর্তনগুলি দেখুন।
  • On চ্ছিক onPerformTraversals: (Long) -> Unit withFrameNanos কলব্যাকগুলির পরে কোড চালানোর জন্য TestMonotonicFrameClock কনস্ট্রাক্টর এবং ফ্যাক্টরি ফাংশনে ইউনিট প্যারামিটার তবে কলারদের করুটাইনগুলি পুনরায় শুরু করার আগে কোড চালানোর জন্য। ( আইডিবি 413 , বি/254115946 , বি/222093277 , বি/255802670 )
  • পৃষ্ঠা অ্যাক্সেসযোগ্যতার ক্রিয়াগুলি প্রবর্তন করুন: PageUp , PageDown , PageLeft , PageRight । নোট করুন যে এগুলি কেবল এপিআই 29 থেকে পাওয়া যায়। ( আইডিএ 4 অ্যাব )
  • পেজার পদ্ধতিতে কমপোজেবলগুলি দেখানোর একটি উপায় HorizontalPager এবং VerticalPager পরিচয় করিয়ে দিন। পেজারদের নিয়ন্ত্রণের পাশাপাশি পেজারের বর্তমান অবস্থা সম্পর্কে ক্যোয়ারী সম্পর্কিত তথ্য PagerState । প্রবর্তিত PageSize , কোনও পেজারের পৃষ্ঠার আকার নিয়ন্ত্রণের একটি উপায়, এটি পেজারগুলির মতো ক্যারোসেল তৈরি করতে ব্যবহার করা যেতে পারে। PagerSnapDistance প্রবর্তিত, পেজারের ঝাঁকুনির আচরণে কীভাবে স্ন্যাপিং কাজ করবে তা নিয়ন্ত্রণের একটি উপায়। ( I01120 )
  • ঝাঁকুনিটি কোথায় স্থির হবে তা বুঝতে সহায়তা করার জন্য SnapFlingBehavior.performFling একটি ওভারলোডের পরিচয় করিয়ে দেয়। ( I569f6 )
  • OverscrollEffect#isEnabled অপসারণ করা হয়েছে। এই পতাকাটি মনে রাখতে এবং সেট করার প্রয়োজনের পরিবর্তে, আপনি যেসব ক্ষেত্রে ওভারক্রোলটি দেখাতে চান না সে ক্ষেত্রে কেবল ইভেন্টগুলি ওভারক্রোল এফেক্টে প্রেরণ করবেন না (উদাহরণস্বরূপ যদি ScrollableState#canScrollForward/backward উভয়ই মিথ্যা প্রত্যাবর্তন করে)। ( আই 1 এ 4 বি 0 , বি/255554340 , বি/255557085 )
  • ScrollableState#canScrollForward এবং ScrollableState#canScrollBackward যুক্ত করা হয়েছে যে কোনও ScrollableState উভয় দিকের স্ক্রোল করার ঘর আছে কিনা তা জিজ্ঞাসা করতে (এটি তার পরিসরের সর্বনিম্ন / সর্বোচ্চ সর্বাধিক কিনা)। এই ScrollableState বিদ্যমান বাস্তবায়নের সাথে পিছনের সামঞ্জস্যের জন্য সত্যের ডিফল্ট। গ্রাহকরা এটি ব্যবহারকারীর কাছে ইঙ্গিতটি দেখানোর জন্য এটি ব্যবহার করতে পারেন যে এখনও স্ক্রোল করার জায়গা রয়েছে এবং এটি অপ্রয়োজনীয় কাজ হ্রাস করার জন্য কোনও প্রদত্ত দিকের স্ক্রোল করার কোনও জায়গা নেই এমন ScrollableStates ডেল্টা প্রেরণ এড়াতেও ব্যবহার করা যেতে পারে। ( আইডিএফ 1 এ 0 , বি/255557085 )
  • পূর্বপুরুষদের স্ক্রোল তথ্য জিজ্ঞাসা করতে একটি সংশোধক এপিআই যুক্ত করা হয়েছে। ( আই 2 বিএ 9 ডি , বি/203141462 )
  • ইন্টারঅ্যাকশনগুলি সঠিকভাবে বিলম্ব করতে Clickable করতে ব্যবহৃত হয়, যখন অঙ্গভঙ্গিগুলি স্ক্রোল ইভেন্টে পরিণত হতে পারে।
  • স্থির Clickables যখন কোনও Scrollable ViewGroup ভিতরে ব্যবহৃত হয় তখন সঠিকভাবে বিলম্বিত হয় না।
  • অঙ্গভঙ্গিগুলি স্ক্রোল ইভেন্টে পরিণত হতে পারে এমন ক্ষেত্রে প্রেসগুলি সঠিকভাবে বিলম্ব করতে আপডেট করা ড্রয়ার এবং শীটগুলি।
  • snapStepSize নামকরণ আপডেট করুন SnapLayoutInfoProvider অন্যান্য পদ্ধতির সাথে সামঞ্জস্যপূর্ণ হতে। ( Ife67c )
  • Compose করতে EmojiCompat যুক্ত করা হয়েছে ( আইবিএফ 6 এফ 9 , বি/139326806 )
  • consumedWindowInsets() consumeWindowInsets() এবং withConsumedWindowInsets()onConsumedWindowInsetsChanged() এ এবং সংশোধকগুলিকে সর্বজনীন করে তুলেছে। ( Ie44e1 )

বাগ ফিক্স

  • Modifier.animateItemPlacement() এবং অলস গ্রিডগুলির সাথে ক্র্যাশটি স্থির করা হয়েছিল। এটি কিছু পরিস্থিতিতে ঘটছিল যখন নতুন আইটেমগুলি গণনা ছোট হয় তবে আগেরটি। ( I0bcac , খ/253195989 )

সংস্করণ 1.4.0-alpha02

9 নভেম্বর, 2022

androidx.compose.foundation:foundation:1.4.0-alpha02 Foundation:1.4.0-Alpha02 এবং androidx.compose.foundation:foundation-layout:1.4.0-alpha02 Foundation-Layout:1.4.0-Alpha02 প্রকাশিত হয়েছে। সংস্করণ 1.4.0-alpha02 এই কমিট ধারণ করে।

এপিআই পরিবর্তন

  • awaitFirstDown এবং waitForUpOrCancellation এখন বৃহত্তর নমনীয়তার জন্য একটি PointerEventPass গ্রহণ করুন। ( I7579a , বি/212091796 )
  • অলস* এপিআইএস ( আই 12197 ) থেকে beyondBoundCount এপিআই ছাড়িয়ে যান
  • ভিউপোর্ট আইটেমগুলি রচনা এবং স্থাপনের জন্য অলস এপিআইগুলিতে প্যারামিটার প্রবর্তিত ( i69e89 , বি/172029355 )
  • BasicText এবং BasicTextField minLines প্যারামিটার যুক্ত করা হয়েছে। এটি লাইনের সংখ্যার ক্ষেত্রে এই কম্পোজেবলগুলির সর্বনিম্ন উচ্চতা সেট করতে দেয় ( i24294 , বি/122476634 )

সংস্করণ 1.4.0-alpha01

24 অক্টোবর, 2022

androidx.compose.foundation:foundation:1.4.0-alpha01 Foundation:1.4.0-Alpha01 এবং androidx.compose.foundation:foundation-layout:1.4.0-alpha01 Foundation-Layout:1.4.0-Alpha01 প্রকাশিত হয়েছে। 1.4.0-alpha01 সংস্করণে এই কমিট রয়েছে।

এপিআই পরিবর্তন

  • অঙ্গভঙ্গি ডিটেক্টরগুলির জন্য একটি নতুন পদ্ধতি, awaitEachGesture() যুক্ত করা হয়েছিল। এটি forEachGesture() এর অনুরূপ কাজ করে তবে অঙ্গভঙ্গিগুলির ওভার লুপটি পুরোপুরি AwaitPointerEventScope মধ্যে কাজ করে যাতে ঘটনাগুলি পুনরাবৃত্তির মধ্যে হারিয়ে যেতে পারে না।
  • forEachGesture() awaitEachGesture() এর পক্ষে অবমূল্যায়ন করা হয়েছে কারণ এটি ইভেন্টগুলি অঙ্গভঙ্গির মধ্যে হারিয়ে যেতে দেয়। ( আইএফএফসি 3 এফ , বি/251260206 )
  • WindowInsets.imeAnimationSourc যুক্ত করা হয়েছে.মিনিমেশনস ই এবং WindowInsets.imeAnimationTarget অ্যানিমেশন অগ্রগতি নির্ধারণ করতে এবং অ্যানিমেশন শেষ হওয়ার পরে আইএমই কোথায় থাকবে তা জানতে। ( I356f1 , বি/217770337 )

সংস্করণ 1.3

সংস্করণ 1.3.1

9 নভেম্বর, 2022

androidx.compose.foundation:foundation:1.3.1 Foundation:1.3.1 এবং androidx.compose.foundation:foundation-layout:1.3.1 layout:1.3.1 প্রকাশিত হয়েছে। সংস্করণ 1.3.1 এই কমিট ধারণ করে.

বাগ ফিক্স

  • BeyondBoundsLayout পারফরম্যান্স ইস্যু ঠিক করুন ( এওএসপি/2255266 )
  • ContentInViewModifier will not read layout coordinates unless attached ( aosp/2241316 )

সংস্করণ 1.3.0

24 অক্টোবর, 2022

androidx.compose.foundation:foundation:1.3.0 and androidx.compose.foundation:foundation-layout:1.3.0 are released. সংস্করণ 1.3.0 এই কমিট ধারণ করে.

1.2.0 থেকে গুরুত্বপূর্ণ পরিবর্তন

  • Experimental versions of LazyVerticalStaggeredGrid and LazyHorizontalStaggeredGrid were introduced.
  • SnapFlingBehavior , rememberSnapFlingBehavior and other corresponding APIs were added as experimental.
  • Modifier.clickable , Modifier.toggleable , and Modifier.selectable now show ripples if clicked with the keyboard or d-pad on a remote control.

সংস্করণ 1.3.0-rc01

5 অক্টোবর, 2022

androidx.compose.foundation:foundation:1.3.0-rc01 and androidx.compose.foundation:foundation-layout:1.3.0-rc01 are released. সংস্করণ 1.3.0-rc01-এ এই কমিট রয়েছে।

এপিআই পরিবর্তন

  • Introduced lowVelocityAnimationSpec used by the approach step when there's not enough fling velocity to decay. ( Iaeb27 )
  • Added new experimental API Hyphens to support automatic hyphenation in Text ( Iaa869 )

Version 1.3.0-beta03

21শে সেপ্টেম্বর, 2022

androidx.compose.foundation:foundation:1.3.0-beta03 and androidx.compose.foundation:foundation-layout:1.3.0-beta03 are released. Version 1.3.0-beta03 contains these commits.

এপিআই পরিবর্তন

  • Add options to customize line breaking in Text. ( I86907 )
  • BringIntoViewResponder s are now able to get the most up-to-date bounds of a request while processing it. ( If86a5 , b/241591211 )
  • Introduce support for spacings between items to experimental Staggered Grid ( I10b82 )
  • Introduce content padding to experimental Staggered Grid ( I342ea )
  • Changed size:IntSize argument with constraints: Constraints in TextMeasurer.measure method to support minimum width constraints. ( I37530 , b/242707525 )
  • Added Modifier.withConsumedWindowInsets() to get consumed WindowInsets for use outside windowInsetsPadding .
  • Added MutableWindowInsets to allow easily changing WindowInsets without recomposition. ( I7fd28 , b/237019262 , b/243119659 )

সংস্করণ 1.3.0-BETA02

7 সেপ্টেম্বর, 2022

androidx.compose.foundation:foundation:1.3.0-beta02 and androidx.compose.foundation:foundation-layout:1.3.0-beta02 are released. সংস্করণ 1.3.0-BETA02 এর মধ্যে এই কমিট রয়েছে।

এপিআই পরিবর্তন

  • Initial version of experimental StaggeredGrid ( Ia48be )
  • Renamed FocusDirection.In and FocusDirection.Out to FocusDirection.Enter and FocusDirection.Exit ( Ia4262 , b/183746982 )
  • Introduced a rememberSnapFlingBehavior overload that provides a quick way of enabling snapping in LazyLists . ( Ifb48a )
  • Replaced the snapFlingBehavior factory with a concrete SnapFlingBehavior class. Scoped SnapLayoutInfoProvider methods to Density to make Dp<->Px conversions easier for the API users. ( I54a11 )
  • Update LazyLayoutMeasureScope.measure to return list of placeables, highlighting desired immutability of the returned value. ( I48b7c )
  • Introduced SnapLayoutInfoProvider which takes a LazyListState to create an instance of SnapLayoutInfoProvider that can be used to enable a snap FlingBehavior for LazyLists . ( I2dd10 )

বাগ ফিক্স

  • Refactors AwaitPointerEventScope#awaitLongPressOrCancellation to match other await functions ( I646e6 )

সংস্করণ 1.3.0-beta01

24 আগস্ট, 2022

androidx.compose.foundation:foundation:1.3.0-beta01 and androidx.compose.foundation:foundation-layout:1.3.0-beta01 are released. সংস্করণ 1.3.0-beta01-এ এই কমিট রয়েছে।

এপিআই পরিবর্তন

  • Removed pointerPosition from OverscrollEffect - effects that care about pointer position can use Modifier.pointerInput { } in the effectModifier to get the current pointer position instead. ( I9f606 , b/241239306 )
  • Exposed AwaitPointerEventScope#awaitLongPressOrCancellation as additional building block for more complex gesture detection ( I04374 , b/181577176 )
  • Introduced lazyListSnapLayoutInfoProvider to enable snapping in Lazy Lists. ( I3ecdf )
  • Introduced SnapFlingBehavior , a fling behavior that enables list snapping. Provide an instance of SnapLayoutInfoProvider with information about your snapping layout. ( Ie754c )

সংস্করণ 1.3.0-আলফা 03

10 আগস্ট, 2022

androidx.compose.foundation:foundation:1.3.0-alpha03 and androidx.compose.foundation:foundation-layout:1.3.0-alpha03 are released. সংস্করণ 1.3.0-ALPHA03 এ এই কমিটগুলি রয়েছে।

এপিআই পরিবর্তন

  • Resource Fonts now support setting font variation settings (API 26+). ( I900dd , b/143703328 )
  • Variable font support in DeviceFontFamilyNameFont ( Ic1279 , b/143703328 )
  • Removed experimental annotation from PlatformTextStyle and LineHeightStyle . ( I64bef )
  • Text fields will now throw more detailed exceptions when the OffsetMapping provided by a VisualTransformation returns invalid indices. ( Ie73f9 , b/229378536 )
  • Introduce experimental APIs to share item provider logic between Lazy layouts. ( Ic891c )
  • ScrollableDefaults.reverseDirection() is not experimental anymore. ( Iba646 )
  • Deprecated SemanticsModifier.id and moved the semantics id to LayoutInfo.semanticsId instead. ( Iac808 , b/203559524 )
  • checkScrollableContainerConstraints() is not experimental anymore. ( I2c290 )
  • Modifier.clipScrollableContainer() is not experimental anymore. ( Ia2b44 )
  • Deprecate TextInputService.show|hideSoftwareKeyboard . Please use SoftwareKeyboardController instead in app code and TextInputSession in IME-management code. ( I14e4c , b/183448615 )

সংস্করণ 1.3.0-আলফা 02

জুলাই 27, 2022

androidx.compose.foundation:foundation:1.3.0-alpha02 and androidx.compose.foundation:foundation-layout:1.3.0-alpha02 are released. সংস্করণ 1.3.0-ALPHA02 এ এই কমিটস রয়েছে।

এপিআই পরিবর্তন

  • Added drawText extension function on DrawScope to provide a way to draw multi-styled text on composables and modifiers that operate on a DrawScope like Canvas and drawBehind . ( I16a62 , b/190787898 )

বাগ ফিক্স

  • Soft keyboard will now be hidden when a text field is disabled while focused. ( I6e3e4 , b/237308379 )
  • When adding InputEventChange events to Velocity Tracker we will consider now deltas instead of positions, this will guarantee the velocity is correctly calculated for all cases even if the target element moves ( Icea9d , b/216582726 , b/223440806 , b/227709803 )
  • When a scrollable has a focused child, it will now correctly scroll to keep the focused child in view when its size is decreased, even when the size is animated. ( I80867 , b/230756508 , b/220119990 )
  • Fixed a crash where TextField is cleared and refilled while selection is active. ( I1235b , b/208655565 , b/214253689 )

সংস্করণ 1.3.0-alpha01

জুন 29, 2022

androidx.compose.foundation:foundation:1.3.0-alpha01 and androidx.compose.foundation:foundation-layout:1.3.0-alpha01 are released. সংস্করণ 1.3.0-alpha01-এ এই কমিট রয়েছে।

এপিআই পরিবর্তন

  • Introduced the UrlAnnotation annotation type and associated methods to support TalkBack link support in AnnotatedString s. ( I1c754 , b/231495122 )

বাগ ফিক্স

  • BasicTextField cursorBrush may now be animated without restarting the cursor timer. ( I812e6 , b/236383522 )

সংস্করণ 1.2

সংস্করণ 1.2.1

10 আগস্ট, 2022

androidx.compose.foundation:foundation:1.2.1 and androidx.compose.foundation:foundation-layout:1.2.1 are released. সংস্করণ 1.2.1 এ এই কমিটস রয়েছে।

সংস্করণ 1.2.0

জুলাই 27, 2022

androidx.compose.foundation:foundation:1.2.0 and androidx.compose.foundation:foundation-layout:1.2.0 are released. সংস্করণ 1.2.0 এই কমিট ধারণ করে.

1.1.0 থেকে গুরুত্বপূর্ণ পরিবর্তন

  • LazyVerticalGrid and LazyHorizontalGrid are stable now.
  • You can now specify a content type for items in Lazy lists and grids. This will allow the components to reuse elements more efficiently.
  • Lazy lists and grids now have userScrollEnabled param which allows to disable scrolling via the user gestures.
  • A new experimental API called LazyLayout was added. It It is the API we use internally to power Lazy lists and grids.
  • OverscrollEffect API has been introduced as experimental. You can define custom overscroll effects as well as adding a standard platform one to custom scrollable containers.
  • Nested scrolling interoperability APIs have been introduced to allow for interoperability between views and compose scrolling actors.
  • Mouse and trackpad scrolling has been added to all scrolling containers.

Version 1.2.0-rc03

জুন 29, 2022

androidx.compose.foundation:foundation:1.2.0-rc03 and androidx.compose.foundation:foundation-layout:1.2.0-rc03 are released. Version 1.2.0-rc03 contains these commits.

  • No changes since 1.2.0-rc02.

Version 1.2.0-rc02

22 জুন, 2022

androidx.compose.foundation:foundation:1.2.0-rc02 and androidx.compose.foundation:foundation-layout:1.2.0-rc02 are released. Version 1.2.0-rc02 contains these commits.

সংস্করণ 1.2.0-rc01

15 জুন, 2022

androidx.compose.foundation:foundation:1.2.0-rc01 and androidx.compose.foundation:foundation-layout:1.2.0-rc01 are released. সংস্করণ 1.2.0-rc01-এ এই কমিট রয়েছে।

এপিআই পরিবর্তন

  • An experimental OverscrollEffect has been introduced to allow for custom overscroll effects, alongside the Modifier.scrollable overloads that accept it.
  • Experimental LocalOverScrollConfiguration has been moved from foundation.gesture to foundation package and renamed to LocalOverscrollConfiguration ( If19fb , b/204650733 )
  • Interfaces in compose libraries are now built using jdk8 default interface methods ( I5bcf1 )
  • Introduced an experimental api checkScrollableContainerConstraints() which allows to check that we do not nest scrollable containers. You can use it when create your own scrollable lazy layouts via LazyLayout . ( Id6fab , b/233352497 )
  • Removed deprecated LazyVerticalGrid from androidx.compose.foundation.lazy package. The new stable api is located in androidx.compose.foundation.lazy.grid ( I73c76 , b/225192009 )

Version 1.2.0-beta03

জুন 1, 2022

androidx.compose.foundation:foundation:1.2.0-beta03 and androidx.compose.foundation:foundation-layout:1.2.0-beta03 are released. Version 1.2.0-beta03 contains these commits.

এপিআই পরিবর্তন

  • Added new experimental IntervalList and MutableIntervalList . It allows to represent some list of values via multiple intervals. It will be useful when you want to define your own dsl similar to the one used by LazyColumn where list items can be defined via multiple item/items calls. ( I2d05e , b/228580728 )

বাগ ফিক্স

  • Clarified the documentation for WindowInsets.ime to state that ime insets are reported as far back as API 23, but only animated on 30+. ( Ia7fc0 , b/230756508 )
  • Pressing the forward delete key when the cursor is at the end of a text field will no longer crash.
  • DeleteSurroundingTextCommand and DeleteSurroundingTextInCodePointsCommand now require their constructor arguments to be non-negative. ( Ica8e6 , b/199919707 )

সংস্করণ 1.2.0-BETA02

18 মে, 2022

androidx.compose.foundation:foundation:1.2.0-beta02 and androidx.compose.foundation:foundation-layout:1.2.0-beta02 are released. সংস্করণ 1.2.0-BETA02 এ এই কমিটগুলি রয়েছে।

  • Downloadable font resolution that does not change the layout size of Text or TextField previously would not redraw, leading to stale font display. This bugfix ensures that text layout always triggers redraw (b/229727404). ( I1d49e , b/229727404 )

সংস্করণ 1.2.0-beta01

11 মে, 2022

androidx.compose.foundation:foundation:1.2.0-beta01 and androidx.compose.foundation:foundation-layout:1.2.0-beta01 are released. সংস্করণ 1.2.0-beta01-এ এই কমিট রয়েছে।

নতুন বৈশিষ্ট

  • This is the first beta release of 1.2!

এপিআই পরিবর্তন

  • Added experimental BeyondBoundsInterval that can be used by custom implementations of LazyList when they layout items beyond visible bounds ( Ifabfb , b/184670295 )
  • LineHeightBehavior is renamed as LineHeightStyle
  • LineVerticalAlignment is renamed as LineHeightStyle.Alignment
  • Renames LineHeightTrim is renamed as LineHeightStyle.Trim
  • Default constructor values from LineHeightStyle is removed ( I582bf , b/181155707 )
  • Added default values for the optional members of LazyLayoutItemProvider interface. ( Iba8a0 )
  • In the LazyLayoutItemProvider api instead of a factory returning the composable lambda by index we now have a simpler composable function Item accepting the index. ( Id2196 )
  • LazyLayoutItemsProvider is renamed to LazyLayoutItemProvider ( I0638c )
  • LazyLayoutItemsProvider.itemsCount is renamed to itemCount ( Id409c )
  • Added Brush to TextStyle and SpanStyle to provide a way to draw text with gradient coloring. ( I53869 , b/187839528 )
  • trimFirstLineTop , trimLastLineBottom attributes of LineHeightBehavior changed into a single enum: LineHeightTrim . LineHeightTrim have values of 4 states defined by two booleans: FirstLineTop , LastLineBottom , Both and None ( Ifc6a5 , b/181155707 )
  • Added LineHeightBehavior to the TextStyle and ParagraphStyle. LineHeightBehavior controls whether line height is applied to the top of the first line and to the bottom of the last line. It also defines the alignment of line in the space provided by TextStyle ( lineHeight ).

    For example it is possible to get a behavior similar to what CSS defines via LineHeightBehavior(alignment = LineVerticalAlignment.Center, trimFirstLineTop=false, trimLastLineBottom = false) .

  • trimFirstLineTop , trimLastLineBottom configurations works correctly only when includeFontPadding is false. ( I97332 , b/181155707 )

  • Added experimental imeNestedScroll() modifier so that developers can control the IME through scrolling. ( I60759 )

বাগ ফিক্স

  • Fixed regression where text fields would not hide the keyboard when removed from the composition while focused. ( I7a410 , b/230536793 , b/225541817 )
  • Support ellipsis when height is limited and doesn't fit all text lines ( Ie528c , b/168720622 )
  • BringIntoViewRequester.bringIntoView will now always suspend until the request is either completed or was interrupted by a newer, non-overlapping request. Overlapping requests will be queued. ( I43e7f , b/216790855 )
  • Concurrent BringIntoViewRequester.bringIntoView calls for rectangles that are completely overlapping will now only honor the larger rectangle's request. ( I34be7 , b/216790855 , b/184760918 )
  • Turned on default includeFontPadding . It is possible to turn off the includeFontPadding using TextStyle.platformTextStyle attribute. In the near future we will change the default behavior however until that time this allows us to better integrate line height improvements (aosp/2058653) and solve TextField clipping issues. ( I01423 , b/171394808 )
  • Modifier.bringIntoViewRequester no longer uses onGloballyPositioned . ( I630f5 )

বাহ্যিক অবদান

  • MouseInjectionScope.scroll(delta = someDelta) is now inverted on Android if we scroll vertically (if someDelta is positive, it will scroll downward) ( Ifb697 , b/224992993 )

সংস্করণ 1.2.0-আলফা 08

20 এপ্রিল, 2022

androidx.compose.foundation:foundation:1.2.0-alpha08 and androidx.compose.foundation:foundation-layout:1.2.0-alpha08 are released. সংস্করণ 1.2.0-ALPHA08 এ এই কমিটগুলি রয়েছে।

এপিআই পরিবর্তন

  • Display all available weights for systems fonts on Android when using FontFamily.SansSerif . This will use fallback font names like sans-serif-medium internally on API 21-28. This is a behavior change as previously only weights 400 and 700 were supported on API 21-28. ( I380fe , b/156048036 , b/226441992 )
  • Paragraph and MultiParagraph are now accepting Constraints parameter. Passing Constraints.maxHeight is a no-op at the moment but will allow to do some calculation in the future, like ellipsizing based on the height. ( I6afee , b/168720622 )
  • SubcomposeSlotReusePolicy.getSlotsToRetain() now accepts a custom MutableSet-like class which doesn't allow adding new items in it. ( Icd314 )
  • Partial consumption (down OR position) has been deprecated in PointerInputChange . You can use consume() to consume the change completely. You can use isConsumed to determine whether or not someone else has previously consumed the change.
  • PointerInputChange::copy() now always makes a shallow copy. It means that copies of PointerInputChange will be consumed once one of the copies is consumed. If you want to create an unbound PointerInputChange , use constructor instead. ( Ie6be4 , b/225669674 )
  • New experimental LazyLayout API is introduced. This allows you to build your own components like LazyColumn of LazyVerticalGrid . Note that the API is in its early stages and can be changed in the future releases. ( Iba2bc , b/166591700 )
  • AndroidFont now takes typefaceLoader as a constructor parameter. ( I2c971 )
  • WindowInsets companion now exposes the visibility (whether they are on the screen, regardless of whether they intersect with the window) and the size they could be if they are available on the device, but not currently active. ( I65182 , b/217770337 )

সংস্করণ 1.2.0-Alpha07

6 এপ্রিল, 2022

androidx.compose.foundation:foundation:1.2.0-alpha07 and androidx.compose.foundation:foundation-layout:1.2.0-alpha07 are released. সংস্করণ 1.2.0-ALPHA07 এর মধ্যে এই কমিটগুলি রয়েছে।

এপিআই পরিবর্তন

  • Added a PinnableParent API that allows children of lazy layouts to prevent the currently composed items from being disposed ( Ibbdd0 , b/184670295 )
  • LazyListLayoutInfo and LazyGridLayoutInfo now have beforeContentPadding and afterContentPadding fields ( I3b628 , b/200920410 )
  • Added KeyboardType.Decimal as an alternative to Keyboard.Number for specifically including decimal separator in IME. ( Iec4c8 , b/209835363 )
  • Add new font descriptor Font(DeviceFontFamilyName) to optionally lookup system-installed fonts during font fallback chains. ( I30468 , b/219754572 )
  • PointerEventType.Scroll and PointerEvent.scrollDelta are stable APIs now ( I574c5 , b/225669674 )
  • Added temporary compatibility configuration for includeFontPadding in TextStyle/ParagraphStyle. includeFontPadding can be changed via TextStyle(platformStyle = PlatformTextStyle(includeFontPadding = true/false)) . This is a temporary configuration option to enable migration and will be removed. ( If47be , b/171394808 )
  • Updated FontFamily.Resolver to integrate System-wide bold text accessibility setting ( I6c1e7 )
  • The consumeWindowInsets extension property of ComposeView allows developers to disable consumption of Android WindowInsets. This allows separate ComposeViews in the hierarchy to each apply WindowInsets without interfering with each other. ( I0ef08 , b/220943142 )

সংস্করণ 1.2.0-আলফা 06

23 মার্চ, 2022

androidx.compose.foundation:foundation:1.2.0-alpha06 and androidx.compose.foundation:foundation-layout:1.2.0-alpha06 are released. সংস্করণ 1.2.0-ALPHA06 এর মধ্যে এই কমিট রয়েছে।

এপিআই পরিবর্তন

  • Added RequestFocus semantics action to request focus on the focusable target. ( I17b71 )
  • FocusOrder has now been merged into FocusProperties and focusProperties() now has all the capabilities of focusOrder() . FocusOrder and focusOrder() have been deprecated. focusOrder() that accepts a focusRequester should be replaced with a focusRequester() modifier in combination with focusProperties() . This allows the modifiers to have a stronger separation of concerns. ( I601b7 )
  • WindowInsets.asPaddingValues(Density) was added to allow developers to do the conversion without needing to be in composition. ( I94c35 )
  • Updated parsing of vector drawables to support auto mirroring to flip the content of a VectorPainter if the current layout direction is RTL. ( I79cd9 , b/185760237 )

বাগ ফিক্স

  • Scroll modifiers ( Modifier.verticalScroll() , Modifier.horizontalScroll() , and Modifier.scrollable() ) will now scroll to keep the focused composable visible if the scroll area is resized and the focused composable was previously visible.
  • TextFields will now be kept above the keyboard when they are focused and the keyboard is shown, when inside a non-lazy scrollable and the soft input mode is ADJUST_RESIZE . ( I4a485 , b/190539358 , b/192043120 , b/216842427 )

সংস্করণ 1.2.0-আলফা 05

9 মার্চ, 2022

androidx.compose.foundation:foundation:1.2.0-alpha05 and androidx.compose.foundation:foundation-layout:1.2.0-alpha05 are released. সংস্করণ 1.2.0-ALPHA05 এর মধ্যে এই কমিট রয়েছে।

এপিআই পরিবর্তন

  • LazyVerticalGrid and LazyHorizontalGrid are now stable. ( I307c0 )
  • LazyGridItemInfo.Unknown was replaced with separate LazyGridItemInfo.UnknownRow and LazyGridItemInfo.UnknownColumn ( I56d51 )
  • LazyVerticalGrid / LazyHorizontalGrid and all related apis were moved into .grid subpackage. Please update your imports from androidx.compose.foundation.lazy to androidx.compose.foundation.lazy.grid . ( I2d446 , b/219942574 )
  • Text: includeFontPadding is now turned off by default. The clipping issues as a result of includeFontPadding=false is handled and no clipping should occur for tall scripts. ( I31c84 , b/171394808 )
  • Measured interface now exposes parentData property ( I3313f )
  • Introduced experimental Modifier.onFocusedBoundsChanged to allow observing the bounds of child focusables. ( I14283 , b/220030968 , b/190539358 , b/192043120 , b/216842427 )
  • LazyHorizontalGrid was added. ( I61ae7 , b/191238807 )
  • Added a new LazyVerticalGrid API to define cross axis sizes ( I17723 )
  • Added FocusGroup modifier ( I64bc0 , b/213508274 , b/184670295 )

বাগ ফিক্স

  • WindowInsets.toString() will now show the correct values. ( I1585d )

বাহ্যিক অবদান

  • Updated to use Kotlinx coroutines 1.6.0 ( I3366d )

সংস্করণ 1.2.0-আলফা 04

23 ফেব্রুয়ারি, 2022

androidx.compose.foundation:foundation:1.2.0-alpha04 and androidx.compose.foundation:foundation-layout:1.2.0-alpha04 are released. সংস্করণ 1.2.0-ALPHA04 এর মধ্যে এই কমিট রয়েছে।

এপিআই পরিবর্তন

  • BringIntoViewResponders are no longer required to manually pass requests up to parent responders, and are instead required to immediately return the rectangle they want their parent to bring into view. ( I8e66a )
  • Support async font loading in Text ( I77057 , b/214587005 )
  • LazyVerticalGrid now supports line breaking before items with span not fitting inside the current line. ( I05c40 , b/207462103 )
  • Renamed excludeFromSystemGestures to systemGesturesExclusion ( I19526 )
  • LazyVerticalGrid now supports reverseLayout. ( I6d7d7 , b/215572963 , b/211753558 )
  • Add WindowInsets.only() method to allow developers to include only dimensions from the WindowInsets. ( I14c94 , b/217768486 )
  • Added ComposableTarget , ComposableTargetMarker and ComposableOpenTarget that allows compile time reporting of when a composable function is called targeting an applier it was not designed to use.

    In most cases the annotations can be inferred by the compose compiler plugin so using these annotation directly should be rare . The cases that cannot be inferred include creating and using a custom applier, abstract composable functions (such as interface methods), fields or global variables that are composable lambdas (local variables and parameters are inferred), or when using ComposeNode or a related composable functions .

    For custom appliers the composable functions that calls ComposeNode or ReusableComposeNode need to add a CompoableTarget annotation for the function and any composable lambda parameter types. It is recommended, however, to create an annotation that is annotated with ComposableTargetMarker and then the marked annotation be used instead of ComposableTarget directly. A composable annotation marked with ComposableTargetMarker is equivalent to a ComposbleTarget with the fully qualified name of the attribute class as the applier parameter. For an example of using ComposableTargetMarker see anroidx.compose.ui.UiComposable . ( I38f11 )

বাগ ফিক্স

  • Now it is allowed to pass negative scroll offsets into LazyGridState.scrollToItem() and LazyGridState.animateScrollToItem() . ( I025c6 , b/211753558 )
  • Support async font loading for TextField. ( Icc4bf , b/214587005 )

সংস্করণ 1.2.0-Alpha03

ফেব্রুয়ারী 9, 2022

androidx.compose.foundation:foundation:1.2.0-alpha03 and androidx.compose.foundation:foundation-layout:1.2.0-alpha03 are released. সংস্করণ 1.2.0-ALPHA03 এ এই কমিটগুলি রয়েছে।

এপিআই পরিবর্তন

  • notifyFocusedRect methods in TextInputSession and TextInputService are now deprecated and won't be called. Use BringIntoViewRequester instead. ( Ia4302 , b/192043120 , b/216842427 , b/178211874 )
  • Animations were enabled for items of lazy grids with Modifier.animateItemPlacement(). ( Ib6621 , b/211753218 )
  • BringIntoViewRequester now propagates requests to the hosting Android View. ( Ia7a51 )
  • FontFamilyResolver is now available via LocalFontFamilyResolver.current
    • Added createFontFamilyResolver(context) and createFontFamilyResolver(context, coroutineScope) to create new FontFamily resolvers outside of compose usage.
    • Paragraph and MultiParagraph now take FontFamily.Resolver
    • TextLayoutResult.layoutInput.fontFamilyResolver now contains the resolver used for this layout, deprecated TextLayoutResult.layoutInput.resourceLoader as it is no longer used. ( Id5a45 , b/174162090 )
  • Added AndroidFont , a new low-level API for providing new types of font resource descriptors on Android. For example, loading fonts from an app-specific backend, optionally locating pre-installed fonts on-device, or loading a font from a resource not provided by the current Font factories.
    • Expanded Font.ResourceLoaded API to support optional and async font loading. It is not recommended that application developers use this API directly. To add new types of fonts see AndroidFont.
    • Font.AndroidResourceLoader extension function allows construction of a Font.ResourceLoader when outside of composition.
    • Added loadingStrategy parameter to resource-based fonts, to allow async loading when resource font references downloadable fonts XML. ( Ie5aea , b/174162090 )
  • Typeface(FontFamily) constructor is deprecated. This was previously used to preload fonts, which may take up to 10 seconds for downloadable fonts. With downloadable fonts, this call may block for 10 seconds. Instead use FontFamilyResolver.preload
    • fontResource(FontFamily): Typeface is deprecated. This was previously used to preload fonts, which may take up to 10 seconds for downloadable fonts. Instead use FontFamilyResolver.preload ( If8e7c , b/174162090 )
  • You can now specify the content type for the items of LazyVerticalGrid - item/items functions on LazyGridScope now accept such parameter. Providing such information helps item composition reusing logic to make it more efficiently and only reuse the content between the items of similar type. ( I7b355 , b/215372836 )
  • LazyListLayoutInfo and LazyGridLayoutInfo now have new properties: viewportSize , orientation , reverseLayout ( Ifc8ed , b/200920410 )
  • You can now specify the content type for the items of LazyColumn/LazyRow - item/items functions on LazyListScope now accept such parameter. Providing such information helps item composition reusing logic to make it more efficiently and only reuse the content between the items of similar type. ( I26506 )
  • SubcomposeLayoutState constructor accepting maxSlotsToRetainForReuse is now deprecated. Instead there is a new constructor accepting SubcomposeSlotReusePolicy - a new interface allowing more granular control on what slots should be retained for the future reuse. ( I52c4d )
  • Adds Modifiers for WindowInsets, both for padding and sizing. This allows some content to extend into the inset area, and still have primary content stay out of the inset area. For example, windowInsetsPadding can be used to pad the content area to avoid areas that may be fully or partially covered. ( Id0395 , b/213942085 )

বাগ ফিক্স

  • TextFields will now be kept above the keyboard when they are focused and the keyboard is shown, when the soft input mode is ADJUST_PAN . ( I8eaeb , b/190539358 , b/192043120 )
  • Desktop uses composition local for FontFamily.Resolver
    • Desktop FontLoader is deprecated
    • New createFontFamilyResolver factory on Desktop ( I6bbbb , b/174162090 )
  • The soft keyboard input type no longer flickers when changing focus between text fields. ( I1bf50 , b/187746439 )
  • Text fields no longer require an extra back press when the cursor handle is showing. ( Ideb4b , b/205726883 )
  • Text selection magnifier behavior has been polished to match the platform magnifier. ( Idd918 , b/206833278 )

সংস্করণ 1.2.0-আলফা 02

জানুয়ারী 26, 2022

androidx.compose.foundation:foundation:1.2.0-alpha02 and androidx.compose.foundation:foundation-layout:1.2.0-alpha02 are released. সংস্করণ 1.2.0-ALPHA02 এ এই কমিটগুলি রয়েছে।

এপিআই পরিবর্তন

  • Added NonRestartableComposable to methods that are overloads of existing methods without complex logic. This reduces compiler generated memoization checks (equals) for all parameters which are repeated in the inner function that is called. ( I90490 )
  • Added excludeFromSystemGesture Modifiers for easy access to Android's setSystemGestureExclusionRects ( I46f07 )

বাগ ফিক্স

  • Text selection magnifier behavior has been polished to match the platform magnifier. ( Idd918 , b/206833278 )
  • LazyColumn , LazyRow , Modifier.verticalScroll and other containers that use Modifier.scrollable now support mouse wheel scrolling. ( I2b5e1 , b/198214718 )

সংস্করণ 1.2.0-alpha01

জানুয়ারী 12, 2022

androidx.compose.foundation:foundation:1.2.0-alpha01 and androidx.compose.foundation:foundation-layout:1.2.0-alpha01 are released. সংস্করণ 1.2.0-alpha01-এ এই কমিট রয়েছে।

এপিআই পরিবর্তন

  • New parameter userScrollEnabled was added to LazyColumn , LazyRow , and LazyVerticalGrid in order to allow users to temporarily or permanently disable the user initiated scroll via touch gestures or accessibility actions. Scrolling programmatically via the methods on the state will still be allowed. ( I7eae9 , b/201150093 )
  • Add onSizeChanged callback to magnifier modifier. ( I6879f )
  • The magnifier widget now shows when dragging selection handles in a SelectionContainer . ( I30b38 , b/139320979 )

বাগ ফিক্স

  • Fixes TextField cursor handle not hiding when scrolled out of view. ( I14552 , b/208883748 )

নির্ভরতা আপডেট

  • Now depends on Kotlin 1.6.10 .

সংস্করণ 1.1

সংস্করণ 1.1.1

23 ফেব্রুয়ারি, 2022

androidx.compose.foundation:foundation:1.1.1 and androidx.compose.foundation:foundation-layout:1.1.1 are released. Version 1.1.1 contains these commits.

বাগ ফিক্স

সংস্করণ 1.1.0

ফেব্রুয়ারী 9, 2022

androidx.compose.foundation:foundation:1.1.0 and androidx.compose.foundation:foundation-layout:1.1.0 are released. সংস্করণ 1.1.0 এই কমিট ধারণ করে.

1.0.0 সাল থেকে গুরুত্বপূর্ণ পরিবর্তন

  • Stable support for the Android 12 Overscroll effect
  • Improvements to touch target sizing
  • Note that, with respect to Compose 1.0, Material components will expand their layout space to meet Material accessibility guidelines for touch target size . For instance, Button touch target will expand to a minimum size of 48x48dp, even if you set the Button's size to be smaller. This aligns Compose Material to the same behavior of Material Design Components, providing consistent behavior if you mix Views and Compose. This change also ensures that when you create your UI using Compose Material components, minimum requirements for touch target accessibility will be met.
  • Stable support for Navigation Rail
  • Graduates a number of previously experimental APIs to stable
  • Support for newer versions of Kotlin

সংস্করণ 1.1.0-আরসি 03

জানুয়ারী 26, 2022

androidx.compose.foundation:foundation:1.1.0-rc03 and androidx.compose.foundation:foundation-layout:1.1.0-rc03 are released. Version 1.1.0-rc03 contains these commits.

বাগ ফিক্স

  • Updated to support Compose Material 1.1.0-rc03

সংস্করণ 1.1.0-rc01

15 ডিসেম্বর, 2021

androidx.compose.foundation:foundation:1.1.0-rc01 and androidx.compose.foundation:foundation-layout:1.1.0-rc01 are released. সংস্করণ 1.1.0-rc01-এ এই কমিট রয়েছে।

বাগ ফিক্স

  • Now it is allowed to pass negative scroll offsets into LazyListState.scrollToItem() and LazyListState.animateScrollToItem() . ( Iceb90 , b/184252837 )
  • Fixed a bug that caused missing accessibility scroll actions ( I7cbfb )

সংস্করণ 1.1.0-beta04

ডিসেম্বর 1, 2021

androidx.compose.foundation:foundation:1.1.0-beta04 and androidx.compose.foundation:foundation-layout:1.1.0-beta04 are released. Version 1.1.0-beta04 contains these commits.

নতুন বৈশিষ্ট

  • Updated to be compatible with Kotlin 1.6.0

এপিআই পরিবর্তন

  • Cleaned up nullability in androidx.core.view ( I7078a , b/204917439 )
  • Experimental APIs were added that allow to consume PointerInputchange as a whole or check whether it was consumed or not. ( I2e59d )
  • Show a magnifier widget when dragging the cursor or selection handles inside text fields. ( I5391e , b/203781358 )

বাগ ফিক্স

  • Fix text handles not moving when IME visibility changes. ( I25f2e )

Version 1.1.0-beta03

17 নভেম্বর, 2021

androidx.compose.foundation:foundation:1.1.0-beta03 and androidx.compose.foundation:foundation-layout:1.1.0-beta03 are released. Version 1.1.0-beta03 contains these commits.

এপিআই পরিবর্তন

  • Support for horizontal spans was added to LazyVerticalGrid. ( I7e2fa , b/176758183 )
  • Experimental ability to animate Lazy lists item positions was added. There is a new modifier available within LazyItemScope called Modifier.animateItemPlacement() . ব্যবহারের উদাহরণ:

      var list by remember { mutableStateOf(listOf("A", "B", "C")) }
      LazyColumn {
          item {
              Button(onClick = { list = list.shuffled() }) {
                  Text("Shuffle")
              }
          }
          items(list, key = { it }) {
              Text("Item $it", Modifier.animateItemPlacement())
          }
      }
    
    • When you provide a key via LazyListScope.item or LazyListScope.items this modifier will enable item reordering animations. Aside from item reordering all other position changes caused by events like arrangement or alignment changes will also be animated. ( I59e7b , b/150812265 )

সংস্করণ 1.1.0-beta02

3 নভেম্বর, 2021

androidx.compose.foundation:foundation:1.1.0-beta02 and androidx.compose.foundation:foundation-layout:1.1.0-beta02 are released. Version 1.1.0-beta02 contains these commits.

বাগ ফিক্স

  • Ripples and other indications will now only be delayed if they are inside a Modifier.scrollable() container, instead of always being delayed for a down event. ( Ibefe0 , b/203141462 )
  • Added experimental BringIntoView API that lets you send a request to parents so that they scroll to bring an item into view ( Ib918d , b/195353459 )

বাহ্যিক অবদান

  • Added Modifier.pointerHoverIcon ( I95f01 )

সংস্করণ 1.1.0-beta01

27 অক্টোবর, 2021

androidx.compose.foundation:foundation:1.1.0-beta01 and androidx.compose.foundation:foundation-layout:1.1.0-beta01 are released. সংস্করণ 1.1.0-beta01-এ এই কমিট রয়েছে।

বাগ ফিক্স

  • Added experimental BringIntoView API that lets you send a request to parents so that they scroll to bring an item into view ( Ib918d , b/195353459 )

Version 1.1.0-alpha06

13 অক্টোবর, 2021

androidx.compose.foundation:foundation:1.1.0-alpha06 and androidx.compose.foundation:foundation-layout:1.1.0-alpha06 are released. সংস্করণ 1.1.0-alpha06-এ এই কমিট রয়েছে।

এপিআই পরিবর্তন

  • A child-less overload for Layout was added, with improved efficiency ( Ib0d9a )
  • SemanticsNodeInteraction.performSemanticsAction now returns the SemanticsNodeInteraction on which the function was called. ( I9e5db )
  • Added performScrollToNode(matcher: SemanticsMatcher) that scrolls a scrollable container to the content that is matched by the given matcher. ( Ic1cb8 )

Version 1.1.0-alpha05

29 সেপ্টেম্বর, 2021

androidx.compose.foundation:foundation:1.1.0-alpha05 and androidx.compose.foundation:foundation-layout:1.1.0-alpha05 are released. Version 1.1.0-alpha05 contains these commits.

এপিআই পরিবর্তন

বাগ ফিক্স

  • Fixed accessibility support for scrollables (both lazy and non-lazy) with respect to scrolling ( I6cdb0 )

সংস্করণ 1.1.0-alpha04

15 সেপ্টেম্বর, 2021

androidx.compose.foundation:foundation:1.1.0-alpha04 and androidx.compose.foundation:foundation-layout:1.1.0-alpha04 are released. Version 1.1.0-alpha04 contains these commits.

এপিআই পরিবর্তন

  • Deprecated performGesture and GestureScope , which have been replaced by performTouchInput and TouchInjectionScope . ( Ia5f3f , b/190493367 )
  • Added touchBoundsInRoot to SemanticsNode that includes the minimum touch target size so that developers can ensure that touch targets meet accessibility minimums. ( I2e14b , b/197751214 )

বাগ ফিক্স

  • Support for stretch overscroll has been added on Android 12 devices. ( Iccf3c , b/171682480 )

সংস্করণ 1.1.0-alpha03

1 সেপ্টেম্বর, 2021

androidx.compose.foundation:foundation:1.1.0-alpha03 and androidx.compose.foundation:foundation-layout:1.1.0-alpha03 are released. Version 1.1.0-alpha03 contains these commits.

নতুন বৈশিষ্ট

  • Updated Compose 1.1.0-alpha03 to depend on Kotlin 1.5.30 . ( I74545 )

এপিআই পরিবর্তন

  • Glow effect for scroll has been added. New experimental OverScrollConfiguration API has been added to allow for configuration of the overscroll visual effect. Provide null to turn off the overscroll effect. ( I0c304 , b/171682480 )
  • AwaitPointerEventScope now has withTimeout() and withTimeoutOrNull() ( I507f0 , b/179239764 , b/182397793 )
  • Added test method to get the clipped bounds. ( I6b28e )
  • Added minimum touch target size to ViewConfiguration for use in semantics and pointer input to ensure accessibility. ( Ie861c )

সংস্করণ 1.1.0-alpha02

18 আগস্ট, 2021

androidx.compose.foundation:foundation:1.1.0-alpha02 and androidx.compose.foundation:foundation-layout:1.1.0-alpha02 are released. Version 1.1.0-alpha02 contains these commits.

এপিআই পরিবর্তন

সংস্করণ 1.1.0-alpha01

4 আগস্ট, 2021

androidx.compose.foundation:foundation:1.1.0-alpha01 and androidx.compose.foundation:foundation-layout:1.1.0-alpha01 are released. সংস্করণ 1.1.0-alpha01-এ এই কমিট রয়েছে।

এপিআই পরিবর্তন

  • Updated DrawScope#drawImage method that consumes source and destination rects to consume an optional FilterQuality parameter. This is useful for pixel art that is intended to be pixelated when scaled up for pixel based art. Updated BitmapPainter + Image composable to also consume an optional FilterQuality parameter ( Ie4fb0 , b/180311607 )
  • TextField now clears selection when back button is pressed, which matches Android EditText behavior. ( I3ca16 , b/174173645 )
  • Add Cursor Handle. ( I07a82 , b/173016579 )

বাগ ফিক্স

  • Scrolling via semantics actions for lazy lists and regular scrolling components is now animated ( Id9066 , b/190742024 )

বাহ্যিক অবদান

  • LazyVerticalGrid now accepts both horizontal and vertical arrangement parameters. ( If9c92 )

সংস্করণ 1.0

সংস্করণ 1.0.5

3 নভেম্বর, 2021

androidx.compose.foundation:foundation:1.0.5 and androidx.compose.foundation:foundation-layout:1.0.5 are released. Version 1.0.5 contains these commits.

বাগ ফিক্স

  • Fixed a crash tracking derivedStateOf instances. ( aosp/1792247 )

সংস্করণ 1.0.4

13 অক্টোবর, 2021

androidx.compose.foundation:foundation:1.0.4 and androidx.compose.foundation:foundation-layout:1.0.4 are released. Version 1.0.4 contains these commits.

নির্ভরতা আপডেট

  • Updated to depend on Kotlin 1.5.31

সংস্করণ 1.0.3

29 সেপ্টেম্বর, 2021

androidx.compose.foundation:foundation:1.0.3 and androidx.compose.foundation:foundation-layout:1.0.3 are released. Version 1.0.3 contains these commits.

নির্ভরতা আপডেট

  • Updated to depend on Kotlin 1.5.30

সংস্করণ 1.0.2

1 সেপ্টেম্বর, 2021

androidx.compose.foundation:foundation:1.0.2 and androidx.compose.foundation:foundation-layout:1.0.2 are released. Version 1.0.2 contains these commits.

Updated to support the Compose 1.0.2 release. Compose 1.0.2 is still compatible with Kotlin 1.5.21 .

সংস্করণ 1.0.1

4 আগস্ট, 2021

androidx.compose.foundation:foundation:1.0.1 and androidx.compose.foundation:foundation-layout:1.0.1 are released. Version 1.0.1 contains these commits.

নির্ভরতা আপডেট

  • Updated to depend on Kotlin 1.5.21 .

সংস্করণ 1.0.0

28 জুলাই, 2021

androidx.compose.foundation:foundation:1.0.0 and androidx.compose.foundation:foundation-layout:1.0.0 are released. Version 1.0.0 contains these commits.

1.0.0 এর প্রধান বৈশিষ্ট্য

This is the first stable release of Compose. Please see the official Compose Release blog for more details!

জ্ঞাত সমস্যা

  • If you are using Android Studio Bumblebee Canary 4 or AGP 7.1.0-alpha04 / 7.1.0-alpha05 , you may hit the following crash:

      java.lang.AbstractMethodError: abstract method "void androidx.lifecycle.DefaultLifecycleObserver.onCreate(androidx.lifecycle.LifecycleOwner)"
    

    To fix, temporarily increase your minSdkVersion to 24+ in your build.gradle file. This issue will be fixed in the next version of Android Studio Bumblebee and AGP 7.1 . ( b/194289155 )

Version 1.0.0-rc02

14 জুলাই, 2021

androidx.compose.foundation:foundation:1.0.0-rc02 and androidx.compose.foundation:foundation-layout:1.0.0-rc02 are released. Version 1.0.0-rc02 contains these commits.

  • Updated border rendering for generic shapes to address issues with paths defined with fixed dimensions. ( aosp/1748871 , b/191817116 )

সংস্করণ 1.0.0-rc01

জুলাই 1, 2021

androidx.compose.foundation:foundation:1.0.0-rc01 and androidx.compose.foundation:foundation-layout:1.0.0-rc01 are released. সংস্করণ 1.0.0-rc01 এই কমিট ধারণ করে।

এপিআই পরিবর্তন

  • Canvas now supports a contentDescription parameter for accessibility. ( Ib547c )

বাগ ফিক্স

  • Disabled Button, Card, Checkboxes and overall Modifier.clickable(enabled=false) will block clicks from going up to the parent. ( Ic2c3b , b/183908811 )

Version 1.0.0-beta09

16 জুন, 2021

androidx.compose.foundation:foundation:1.0.0-beta09 and androidx.compose.foundation:foundation-layout:1.0.0-beta09 are released. Version 1.0.0-beta09 contains these commits.

এপিআই পরিবর্তন

  • Removed ManualFrameClock . If you need to control animations, use composeTestRule.mainClock instead. ( I3c3e8 , b/189951065 )
  • change enum Role and LiveRegionMode to inline classes with private constructor ( Id1890 )
  • KeyboardCapitalization is converted into inline class. ( Id5a1c )
  • TextOverflow is changed to an inline class. ( I433af )

বাগ ফিক্স

  • Now when you specify the unique keys for LazyColumn/Row items the scroll position will be maintained based on the key, which means if you add/remove items before the current visible item the item with the given key will be kept as the first visible one . ( Id263f , b/184257857 )
  • Key constants are @ExperimentalComposeUiApi for now. Consuming code can declare private constants prior to stabilization. ( Ia5d48 )
  • Added IdlingStrategy to AndroidComposeTestRule that can be used by testing frameworks to install an alternative mechanism to await or achieve quiescence. Use AndroidComposeTestRule.setIdlingStrategyFactory() before your test starts to install your own strategy. ( I608fa )

Added Profile Rules

This release adds profile rules to the following compose modules ( I14ed6 ):

  • androidx.compose.animation
  • androidx.compose.animation-core
  • androidx.compose.foundation
  • androidx.compose.foundation-layout
  • androidx.compose.material
  • androidx.compose.material-ripple
  • androidx.compose.runtime
  • androidx.compose.ui
  • androidx.compose.ui.geometry
  • androidx.compose.ui.graphics
  • androidx.compose.ui.text
  • androidx.compose.ui.text
  • androidx.compose.ui.unit
  • androidx.compose.ui.util

What are profile rules?

  • Profile rules for a library are specified in a text file baseline-prof.txt located in the src/main or equivalent directory. The file specifies a rule per line, where a rule in this case is a pattern for matching to methods or classes in the library. The syntax for these rules is a superset of the human-readable ART profile format that is used when using adb shell profman --dump-classes-and-methods ... . These rules take one of two forms to target either methods or classes.

  • A method rule will have the following pattern:

    <FLAGS><CLASS_DESCRIPTOR>-><METHOD_SIGNATURE>
    
  • And a class rule will have the following pattern:

    <CLASS_DESCRIPTOR>
    
  • Here <FLAGS> is one or more of the characters H , S , and P to indicate whether or not this method should be flagged as "Hot", "Startup", or "Post Startup".

  • The <CLASS_DESCRIPTOR> is the descriptor for the class that the targeted method belongs to. For example, the class androidx.compose.runtime.SlotTable would have a descriptor of Landroidx/compose/runtime/SlotTable; .

  • The <METHOD_SIGNATURE> is the signature of the method, and includes the name, parameter types, and return types of the method. For example, the method fun isPlaced(): Boolean on LayoutNode has the signature isPlaced()Z .

  • These patterns can have wildcards ( ** , * , and ? ) in order to have a single rule encompass multiple methods or classes.

What do the rules do?

  • A method that has the flag H indicates that this method is a "hot" method, and should be compiled ahead of time.

  • A method that has the flag S indicates that it is a method which is called at startup, and should be compiled ahead of time to avoid the cost of compilation and interpreting the method at startup time.

  • A method that has the flag P indicates that it is a method which is called after startup.

  • A class that is present in this file indicates that it is used during startup and should be pre-allocated in the heap to avoid the cost of class loading.

কিভাবে কাজ করে?

  • Libraries can define these rules which will be packaged in AAR artifacts. When an app is then built which includes these artifacts, these rules are merged together and the merged rules are used to build a compact binary ART profile that is specific to the app. ART can then leverage this profile when the app is installed on devices in order to ahead-of-time compile a specific subset of the application to improve the performance of the application, especially the first run. Note that this will have no effect on debuggable applications.

Version 1.0.0-beta08

2 জুন, 2021

androidx.compose.foundation:foundation:1.0.0-beta08 and androidx.compose.foundation:foundation-layout:1.0.0-beta08 are released. Version 1.0.0-beta08 contains these commits.

এপিআই পরিবর্তন

  • NestedScrollSource enum is replaced by an inline class. ( Ie321b , b/187055290 )
  • Refactored enum usages to inline classes to avoid issues with exhaustive when statements when new enum values are added. ( I2b5eb )
  • Adds a tap timeout to clickable / toggleable to prevent showing a ripple during a scroll / drag ( Ia2704 , b/168524931 )
  • ContentDescription and Text semantics properties are no longer single values but lists. This enables to merge them as they are instead of concatenations. Also provided better testing APIs to utilize these changes ( Ica6bf , b/184825850 )
  • Modifier.focusModifier() is deprecated and replaced by Modifier.focusTarget() ( I6c860 )
  • KeyboardType enum is replaced by an inline class. ( I73045 , b/187055290 )
  • Replaced FocusState enum with a FocusState interface ( Iccc1a , b/187055290 )
  • ImeAction enum is replaced by an inline class. ( I18be5 , b/187055290 )
  • AnnotatedString.withAnnotation functions are now ExperimentalTextApi instead of ExperimentalComposeApi. ( I0cd0a )
    • TextUnit constructor with TextUnitType is now ExperimentalTextApi instead of ExperimentalComposeApi.
  • PaddingValues is now @Stable rather than @Immutable ( I88c50 )

বাগ ফিক্স

  • Fix crashes of long press the blank area in non-empty text. ( I33ab5 , b/187437299 )
  • Show Toolbar after SelectAll ( I495d9 , b/185919613 )
  • Fix for scrollable containers clipping its children on the cross axis. It was easily reproducible if you have a LazyRow with Card items. now the shadow will not be clipped. ( Icb635 , b/186318448 )
  • Fixed an issue where ripples / other indication would sometimes get stuck on a long click when using Modifier.combinedClickable ( I2298c , b/186223077 )
  • Now detectDragGesures , detectVerticalGestures , and detectHorizontalGestures will consume the position change automatically, no need to call change.consumePositionChange in the onDrag callbacks ( I42fc4 , b/185096350 , b/187320697 )
  • Modifier.onGloballyPositioned() was changed to report the coordinates of this modifier in the modifier chain, not the layout coordinates after applying all the modifiers. This means that now the ordering of modifiers is affecting what coordinates would be reported. ( Ieb67d , b/177926591 )

Version 1.0.0-beta07

18 মে, 2021

androidx.compose.foundation:foundation:1.0.0-beta07 and androidx.compose.foundation:foundation-layout:1.0.0-beta07 are released. Version 1.0.0-beta07 contains these commits.

এপিআই পরিবর্তন

বাগ ফিক্স

  • LazyColumn/Row will now keep up to 2 previously visible items active (not disposed) even when they are scrolled out already. This allows the component to reuse the active subcompositions when we will need to compose a new item which improves the scrolling performance. ( Ie5555 )
  • Remove paintBackground. ( I38660 )
  • Draw Selection Background using DrawScope. ( I73c61 , b/186674472 )
  • A beta06 regression affecting Row/Column using spacedBy arrangements to layout weighted children was fixed. ( Ifaf8c , b/187326588 )

Version 1.0.0-beta06

5 মে, 2021

androidx.compose.foundation:foundation:1.0.0-beta06 and androidx.compose.foundation:foundation-layout:1.0.0-beta06 are released. Version 1.0.0-beta06 contains these commits.

এপিআই পরিবর্তন

  • Solve Conflict with Navigation Gesture ( I1145e )
  • Added CollectionInfo and CollectionItemInfo accessibility APIs that allows to mark collection and its items for accessibility services ( Id54ef , b/180479017 )
  • Added SemanticsActions.ScrollToIndex to scroll a list with indexed items to the item with a certain index, and SemanticsProperties.IndexForKey to get the index of an item in a list with keyed items. Both actions are implemented by LazyList.
    • Added SemanticsNodeInteraction.performScrollToIndex that scrolls a list to the given index, and SemanticsNodeInteraction.performScrollToKey that scrolls a list to the item with the given key. ( I4fe63 , b/178483889 , b/161584524 )
  • AnnotatedString save support to TextFieldValue.Saver. Added addTtsAnnotation and withAnnotation utility functions to AnnotatedString.Builder ( I8cbdc , b/178446304 )
  • Default 0.dp parameter values were added to PaddingValues(horizontal, vertical) ( I05571 , b/181336792 )

বাগ ফিক্স

  • Row & Column children with weight(fill = false) are no longer making the parent fill the entire available main axis space. ( Ied94d , b/186012444 , b/184355105 )

Version 1.0.0-beta05

21 এপ্রিল, 2021

androidx.compose.foundation:foundation:1.0.0-beta05 and androidx.compose.foundation:foundation-layout:1.0.0-beta05 are released. Version 1.0.0-beta05 contains these commits.

এপিআই পরিবর্তন

  • FlingBehavior interface is now marked as @Stable. All implementations should comply with the @Stable contract. ( I93354 , b/184830577 )

বাগ ফিক্স

  • Fixed ACTION_SCROLL_FORWARD , ACTION_SCROLL_BACKWARD , accessibilityActionScrollLeft , accessibilityActionScrollUp , accessibilityActionScrollRight and accessibilityActionScrollDown accessibility scroll actions. Instead of scrolling to the end of the scrollable, it will now scroll by one screen in the given direction. ( Ieccb0 )
  • The AndroidManifest files from ui-test-manifest and ui-tooling-data are now compatible with Android 12 ( I6f9de , b/184718994 )

সংস্করণ 1.0.0-beta04

7 এপ্রিল, 2021

androidx.compose.foundation:foundation:1.0.0-beta04 and androidx.compose.foundation:foundation-layout:1.0.0-beta04 are released. Version 1.0.0-beta04 contains these commits.

এপিআই পরিবর্তন

  • Rename hideSoftwareKeyboard and showSoftwareKeyboard on SoftwareKeyboardController to hide() and show() respectively.
    • Provide the full CompositionLocal interface for LocalSoftwareKeyboardController, allowing it to be set (especially useful in tests) ( I579a6 )
  • TextOverflow.Visible is introduced. ( Ic8f89 )
  • Public instances of RowScope , ColumnScope , BoxScope , BoxWithConstraintsScope were removed. ( I4e83e , b/181869067 )

বাগ ফিক্স

  • Fixed the issue when items of LazyColumn / LazyRow located on the edges were incorrectly positioned after fast fling ( Ie4d13 , b/183877420 )
  • Prior to this change, local composable functions were skippable based on their parameters. After this change, no local composable functions will skip. This change is done because it is common and expected for local functions to capture parameters from the parent and them skipping is a common source of bugs.

    To summarize, consider the example:

    @Composable fun Counter(count: Int, onCountChange: (Int) -> Unit) {
      @Composable fun ShowCount() { Text("Count: $count") }
      ShowCount()
      Button(onClick={ onCountChange(count + 1) }) {
        Text("Increment")
      }
    }
    

    Prior to this change, the ShowCount composable function would always skip, even after the count parameter was updated. এই এখন আর তা নেই। ( I5648a )

Version 1.0.0-beta03

24 মার্চ, 2021

androidx.compose.foundation:foundation:1.0.0-beta03 and androidx.compose.foundation:foundation-layout:1.0.0-beta03 are released. Version 1.0.0-beta03 contains these commits.

এপিআই পরিবর্তন

  • DefaultMonotonicFrameClock is deprecated. Calling withFrameNanos or Recomposer.runRecomposeAndApplyChanges with no MonotonicFrameClock will now throw IllegalStateException . ( I4eb0d )

বাগ ফিক্স

  • FlingBehavior.performFling() is now called even when velocity is 0 ( I0b6e5 , b/181237123 )

সংস্করণ 1.0.0-beta02

10 মার্চ, 2021

androidx.compose.foundation:foundation:1.0.0-beta02 and androidx.compose.foundation:foundation-layout:1.0.0-beta02 are released. সংস্করণ 1.0.0-beta02-এ এই কমিট রয়েছে।

এপিআই পরিবর্তন

  • Multiple small optimizations in LazyColumn measuring logic were added ( Ic6889 )
  • Added new LocalSoftwareKeyboardController composition local API to replace previous SoftwareKeyboardController interface on TextField. ( I5951e , b/168778053 )
  • Added new LocalSoftwareKeyboardController composition local API to replace previous SoftwareKeyboardController interface on TextField. ( I84472 , b/168778053 )

বাগ ফিক্স

  • পরীক্ষামূলক API ( I6aa29 , b/174531520 ) এর সর্বজনীন ব্যবহারের উপর বিধিনিষেধ প্রয়োগ করুন

সংস্করণ 1.0.0-beta01

24 ফেব্রুয়ারি, 2021

androidx.compose.foundation:foundation:1.0.0-beta01 and androidx.compose.foundation:foundation-layout:1.0.0-beta01 are released. সংস্করণ 1.0.0-beta01-এ এই কমিট রয়েছে।

This is the first release of Compose 1.0.0 Beta.

এপিআই পরিবর্তন

  • onStart callback has been added to detectDragGestures ( I67269 , b/179995594 )
  • Modifiers for sizing to intrinsics are no longer experimental. ( I15744 )
  • Removed dp assertions ( I798d2 )
  • Removed SoftwareKeyboardController callback from all text fields to be replaced by a new API shortly. ( Iae869 , b/168778053 )
  • MeasureBlocks was renamed to MeasurePolicy which became a fun interface. Layout APIs were updated / simplified to use MeasurePolicy. ( Icab48 , b/167662468 , b/156751158 )
  • InteractionState has been replaced with [Mutable]InteractionSource
    • Interfaces are responsible for emitting / collecting Interaction events.
    • Instead of passing interactionState = remember { InteractionState() } to components such as Button and Modifier.clickable() , use interactionSource = remember { MutableInteractionSource() } .
    • Instead of: Interaction.Pressed in interactionState you should instead use the extension functions on InteractionSource, such as InteractionSource.collectIsPressedAsState().
    • For complex use cases you can use InteractionSource.interactions to observe the stream of Interactions. See the InteractionSource documentation and samples for more information.
    • ( I85965 , b/152525426 , b/171913923 , b/171710801 , b/174852378 )
  • Removed deprecated LayoutCoordinates methods, use function instead of the property for positionInParent and boundsInParent ( I580ed , b/169874631 , b/175142755 )
  • Created new TextInputSession for input sessions from low level text components such as CoreTextField. ( I8817f , b/177662148 )
  • Placeable now exposes measuredSize, representing the size which the child layout actually measured to. This size might not respect the measurement constraints. ( Ib2729 , b/172560206 , b/172338608 )
  • Add selectionGroup modifier that allows to mark collection of Tabs or RadioButtons for accessibility purposes ( Ie5c29 )
  • Add LazyListState.animateScrollToItem

    This method smooth scrolls to a specific item in the list. ( I4bfd7 )

  • ScrollableState.smoothScrollBy() was renamed to animateScrollBy() LazyListState.snapToItemIndex() was renamed to scrollToItem() ScrollState.smoothScrollTo() was renamed to animateScrollTo() ( I35ded )

  • Modifier.zoomable has been replaced my Modifier.transformable. smoothPanBy, smoothRotationBy have been added as a functionality. ( Ifc32b , b/175294473 )

  • The defaultFactory for compositionLocalOf and staticCompositionLocalOf is now required instead of optional.

    This changes removes a potential type error for non-nullable types where no default factory was provided. Previously this would provide a null reference for a non-nullable type.

    For nullable types consider supplying { null } as the default factory.

    We do not recommend using locals with non-nullable types unless a sensible default can be provided. If no sensible default exists, the defaultFactory lambda should throw an exception. However throwing an exception means that consumers of the local will have an implicit dependency on it being provided that is not enforced by the type system. ( Ifbd2a )

  • Changed Indication#createIndication() to Indication#rememberUpdatedIndication(InteractionState) and removes InteractionState parameter from I ndicationInstance#drawIndication() . IndicationInstance should only be responsible for drawing visual effects, and not launching animations / writing state in response to InteractionState changes. These animations and state writes should happen within rememberUpdatedIndication() instead. The indication parameter in Modifier.indication was also changed to be a required parameter. ( Ic1764 , b/152525426 )

  • Text actions now check focus automatically ( I13777 , b/179648629 )

  • Removed runBlockingWithManualClock ( I15cdc , b/179664814 )

  • Scroll position in Modifier.verticalScroll()/horizontalScroll() is represented with Ints now ( I81298 )

  • smoothScrollBy and scrollBy methods' packages changed to androidx.compose.foundation.gestures.* ( I3f7c1 , b/175294473 )

  • FlingConfig has been renamed to FlingBehavior now allows for customization of suspend animation rather than predefined Decays. ( I02b86 , b/175294473 )

  • Size modifiers were renamed. Modifier.width/height/size were renamed to requiredWidth/requiredHeight/requiredSize. Modifier.preferredWidth/preferredHeight/preferredSize were renamed to width/height/size. ( I5b414 )

  • defaultMinSizeConstraints was renamed to defaultMinSize. ( I4eaae )

  • Modifier.tapGestureFilter has been removed. Use Modifier.pointerInput { detectTapGestures(...) } instead. ( I266ed , b/175294473 )

  • partial consumption was removed from pointer input system. The recommended way of coordinating partial consumtion is Modifier.nestedScroll. ( Ie9c9b )

  • Orientation has been moved to foundation package. VelocirtTracker moved from ui.gesture to ui.input.pointer. ( Iff4a8 , b/175294473 )

  • AnimationClockObservable and subclasses have been removed. AnimatedFloat has been removed. ( Icde52 , b/177457083 )

  • drawerState.open() and drawerState.close() are now suspending functions. Use rememberCoroutineScope() to get the scope of the composition to call them ( I16f60 , b/175294473 )

  • Providers has been renamed to CompositionLocalProvider

    • The Composition constructor no longer accepts a key parameter, and has been deprecated.
    • currentCompositeKeyHash has been turned into a composable top level property instead of a composable top level function.
    • CompositionData and CompositionGroup have been moved to the androidx.compose.runtime.tooling namespace
    • ComposableLambda has been made an interface instead of a concrete class, and no longer has type parameters.
    • ComposableLambdaN has been made an interface instead of a concrete class, and no longer has type parameters.
    • The snapshotFlow function has been moved to the androidx.compose.runtime namespace
    • the merge method of SnapshotMutationPolicy is no longer experimental
    • The @TestOnly top level clearRoots function has been removed. It is no longer necessary.
    • keySourceInfoOf and resetSourceInfo functions have been removed. They are no longer necessary.
    • Composer.collectKeySourceInformation has been removed. It is no longer necessary.
    • isJoinedKey, joinedKeyLeft, and joinedKeyRight methods have been removed. They are no longer necessary.
    • Various top level APIs have been moved and reorganized into different files. Due to Kotlin's file class semantics, this will break binary compatibility but not source compatibility, so should not be an issue for most users.
    • ( I99b7d , b/177245490 )
  • Modifier.scrollable has been reworked. Now it uses Scrollable interface instead of ScrollableController class ( I4f5a5 , b/174485541 , b/175294473 )

  • Modifier.draggable now accepts DraggableState instead of a simple lambda. you can create state via rememberDraggableState { delta -> } to get the same behaviour as before ( Ica70f , b/175294473 )

  • requiredWidth(IntrinsicSize) and requiredHeight(IntrinsicSize) modifiers were added for required sizing to intrinsic sizes. ( I0a6b4 )

  • Deprecated emptyContent() is removed. Use {} instead. ( Idb33f , b/179432510 )

  • Deleted some previously deprecated APIs ( Ice5da , b/178633932 )

বাগ ফিক্স

  • Added new LocalSoftwareKeyboardController composition local API to replace previous SoftwareKeyboardController interface on TextField. ( I658b6 , b/168778053 )

সংস্করণ 1.0.0-আলফা12

ফেব্রুয়ারী 10, 2021

androidx.compose.foundation:foundation:1.0.0-alpha12 and androidx.compose.foundation:foundation-layout:1.0.0-alpha12 are released. সংস্করণ 1.0.0-alpha12-এ এই কমিট রয়েছে।

এপিআই পরিবর্তন

  • Modifier.pointerInput now requires remember keys to indicate when the pointer input detection coroutine should restart for new dependencies. ( I849cd )
  • Testing update: hasText() will check for both input and label/hint/placeholder texts in the text field ( Iab803 )
  • PaddingValues.Absolute was added and can be used in APIs accepting PaddingValues. ( Ia5f30 )
  • onImeActionPerformed is deprecated. use KeyboardActions instead ( If0bbd , b/179071523 )
  • In order to better match naming conventions with ImageBitmap and ImageVector, ImagePainter has been renamed to BitmapPainter to parallel VectorPainter. ( Iba381 , b/174565889 )
  • Better substring test APIs with substring now as an argument ( Icbe78 )
  • Introduced an InfiniteAnimationPolicy coroutine context element that will be applied in infinite animations. By default no policy is installed, except when running tests with ComposeTestRule . ( I50ec4 , b/151940543 )
  • Animatable.snapTo and Animatable.stop are now suspend functions ( If4288 )
  • ComponentActivity.setContent has moved to androidx.activity.compose.setContent in the androidx.activity:activity-compose module. ( আইসিএফ 416 )
  • Destructuring and copy() methods have been removed from several classes where they were rarely used. ( I26702 , b/178659281 )
  • Custom keys support for LazyColumn/LazyRow was added. This allows us to smarter handle items reordering. So the state you stored in remember {} blocks will move together with the item when you reorder elements or removed the item from the middle.

    LazyColumn {
        items(users, key = { user -> user.id }) { ... }
    }
    
  • Changed Indication#createInstance to be @Composable, and changed LocalIndication to contain an Indication, not () -> Indication. ( I5eeea , b/157150564 )

  • Constraints.enforce was replaced with Constraints.constrain . ( I8b8ea )

  • loadFontResource is deprecated. Use fontResource instead. imageResource, loadImageResource, vectorResource, and loadVectorResource are deprecated. Use painterResource instead. ( I6b809 )

  • For performance reasons, ScrollAxisRange semantics now takes lambdas returning Floats instead of direct Float values. ( If4a35 , b/178657186 )

  • Added EditableText semantics to mark editable input text of the text field for accessibility and corresponding test methods to check the semantics ( I8e07a )

  • Modifier.clickable now doesn't have double and long click support. Use Modifier.combinedClickable to achieve this functionality. ( Iafad1 )

  • toIntPx() was renamed to roundToPx(). ( I9b7e4 , b/173502290 )

  • IntBounds was renamed to IntRect and the API was improved. ( I1f6ff )

  • Modifier.dragGestureFilter has been deprecated. Use Modifier.pointerInput { detectDragGestures (...)} instead. Alternatively, use Modifier.draggable for one axis drags ( I0ba93 , b/175294473 )

  • Renamed Ambients to match the Ambient -> CompositionLocal rename. Ambients used to be named AmbientFoo, now CompositionLocals are named LocalFoo. ( I2d55d )

  • Selection was moved to foundation. ( I7892b )

  • Similarly to how we previously removed state { 0 } composable and now promote usage like remember { mutableStateOf(0) } we are going to remove savedInstanceState { 0 } composable. You should use rememberSaveable { mutableStateOf(0) } instead and it will save and restore automatically if the type used inside the MutableState can be stored in the Bundle. If previously you were passing a custom saver object now you need to use a new overload of rememberSaveable which has the stateSaver parameter. The usage will look like this: val holder = rememberSaveable(stateSaver = HolderSaver) { mutableStateOf(Holder(0)) } ( Ib4c26 , b/177338004 )

  • Added password semantics for accessibility ( I231ce )

  • Added ProgressBarRangeInfo.Indeterminate to mark indeterminate progress bars for accessibility ( I6fe05 )

  • Playtime in animation is now unfiied to nanoseconds ( If776a )

  • @ComposableContract has been deprecated in favor of three more specific annotations.

    @ComposableContract(restartable = false) has become @NonRestartableComposable @ComposableContract(readonly = true) has become @ReadOnlyComposable @ComposableContract(preventCapture = true) has become @DisallowComposableCalls @ComposableContract(tracked = true) has been removed. ( I60a9d )

  • emptyContent() and (@Composable () -> Unit).orEmpty() utilities have been deprecated as they no longer have any positive performance impact or value ( I0484d )

  • Recomposers can now be closed. Closed recomposers will continue recomposition until composition child coroutines complete. Recomposer.shutDown renamed to cancel to contrast with close. ( Ib6d76 )

  • APIs related to LazyVerticalGrid are marked as experimental ( Ia53e3 , b/178519862 )

  • rememberSavedInstanceState() was renamed to rememberSaveable() and moved to androidx.compose.runtime.saveable package. ( I1366e , b/177338004 )

  • RestorableStateHolder was renamed to SaveableStateHolder and moved to androidx.compose.runtime.saveable package. Inner method RestorableStateProvider was renamed to SaveableStateProvider. Generic type was removed so you can just pass Any as a key. Experimental annotation is not needed anymore. ( I0902e , b/174598702 )

  • Saver, listSaver(), mapSaver(), autoSaver was moved from androidx.compose.runtime.savedinstancestate to androidx.compose.runtime.saveable ( I77fe6 )

  • Artefact androidx:compose:runtime:runtime-saved-instance-state was renamed to androidx:compose:runtime:runtime-saveable ( I6dcac )

  • Many longstanding deprecated APIs in the ui package are deleted. ( I2f2dc )

  • The compose:runtime-dispatch artifact is now deprecated. MonotonicFrameClock can now be found in compose:runtime and AndroidUiDispatcher can be found in compose:ui. ( Ib5c36 )

  • Parameters on RounderCornerShape, CutCornerShape and CornerBasedShape were renamed from left/right to start/end in order to support the shape's auto mirroring in the rtl direction. AbsoluteRounderCornerShape and AbsoluteCutCornerShape were introduced for the cases when auto-mirroring is not desired. ( I61040 , b/152756983 )

  • canDrag has been removed from the Modifier.scrollable. ( Id66e7 , b/175294473 )

  • The API the Compose compiler plugin targets has been refactored to use an interface instead of a concrete class. The interface also no longer uses a type parameter.

    This is an internal change that should not effect source code compatibility but is a binary breaking change. ( I3b922 , b/169406779 )

  • Modifier.scaleGestureFilter has been removed. Use Modifier.zoomable instead. Alternatively, use Modifier.pointerInput { detectMultitouchGestures { ... }} ( Id5da1 , b/175294473 )

  • AnimatedValue/Float is now deprecated. Please use Animatable instead. ( I71345 , b/177457083 )

    • Removed CoreText and CoreTextField from public API
    • Removed deprecated SelectionContainer overload ( I99c19 )
  • Remove deprecated non-suspend scrolling functions Continuing with the changes from last release, the non-suspend scrolling functions are now removed entirely. Please convert to the suspend functions with the same names. A coroutine scope can be obtained via rememberCoroutineScope(). ( I3d39c , b/178169563 )

  • androidx.compose.foundation.layout.ConstraintLayout was deprecated in favor of androidx.constraintlayout.compose.ConstraintLayout. You will need to add a dependency on androidx.constraintlayout:constraintlayout-compose:1.0.0-alpha01 . ( I87adc )

  • tapGestureFilter, doubleTapGestureFilter, longPressGestureFilter and pressIndicaitonGestureFilter have been deprecated. Use Modifier.clickable or Modifier.pointerInput with detectTapGestures function instead. ( I6baf9 , b/175294473 )

  • Removed Recomposer.current() . [Abstract]ComposeView now default to lazily created, window-scoped Recomposers driven by the ViewTreeLifecycleOwner for the window. Recomposition and withFrameNanos-based animation ticks are paused while the host Lifecycle is stopped. ( I38e11 )

  • Recomposer.runningRecomposers now offers a global StateFlow of read-only RecomposerInfo for observing ongoing composition state in the process. Prefer this API to Recomposer.current(), which is now deprecated. ( If8ebe )

সংস্করণ 1.0.0-alpha11

28 জানুয়ারী, 2021

androidx.compose.foundation:foundation:1.0.0-alpha11 and androidx.compose.foundation:foundation-layout:1.0.0-alpha11 are released. সংস্করণ 1.0.0-alpha11-এ এই কমিট রয়েছে।

এপিআই পরিবর্তন

  • Deprecate non-suspend scrollBy, remove non-suspend scrollTo

    We now recommend using suspend functions to control scrolling and wait for the scroll to finish. We are deprecating and/or removing the non-suspend versions of these functions as part of this transition. ( Ie9ced )

  • Deprecate non-suspend smoothScrollBy We now recommend using suspend functions to control scrolling and wait for the scroll to finish. We are deprecating the non-suspend versions of these functions as part of this transition. ( I12880 )

  • Content description parameter has been added to the Image and Icon. It is used to provide description to the accessibility services ( I2ac4c )

  • BasicTextField received a new parameter called 'decorationBox'. It allows to add the decorations like icons, placeholder, label and similar to the text field and increase the hit target area of it. ( I16996 )

  • canDrag parameter has been removed from the Modifier.draggable ( Ic4bec , b/175294473 )

  • AnimatedFloat.fling that accepts FlingConfig has been removed. Please use suspend Animatable.animateDecay instead. ( I4659b , b/177457083 )

  • Removed data class from the following classes:

    • ইনলাইন টেক্সট সামগ্রী
    • LocaleList
    • ( I605c7 )
  • clickable, toggleable and selectable can be created outside of composition now ( I0a130 , b/172938345 , b/175294473 )

  • ScrollableColumn/Row were deprecated. Using ScrollableColumn is less efficient comparing to LazyColumn when you have a large scrolling content because with LazyColumn we can only compose/measure/draw visible elements. To prevent users from going inefficient way we decided to deprecate ScrollableColumn and ScrollableRow and promote usages of LazyColumn and LazyRow instead. Users can still decide they don't need the lazy behaviour and use the modifiers directly like this: Column(Modifier.verticalScroll(rememberScrollState())) ( Ib976b , b/170468083 )

  • New items(count: Int) factory method for scope of LazyColumn/LazyRow/LazyVerticalGrid. items(items: List) and itemsIndexed(items: List) are now extension functions so you have to manually import them when used. New extension overloads for Arrays: items(items: Array) and itemsIndexed(Array) ( I803fc , b/175562574 )

  • The deprecated AbsoluteArrangement was removed. ( Iffa96 , b/177641870 )

  • The propagateMinConstraints parameter was added to Box, for specifying whether the incoming min constraints should be passed to the content of the Box or not. Default is false. ( I0125b , b/152613457 )

বাগ ফিক্স

  • onCommit, onDispose, and onActive have been deprecated in favor of SideEffect and DisposableEffect APIs ( If760e )
  • WithConstraints was reworked as BoxWithConstraints and moved to foundation.layout. ( I9420b , b/173387208 )
  • Changes to factory functions for Font/FontFamily/Typeface

    • Added factory functions that start with capital letter
    • Deprecated previous factory functions with lowercase first letters
    • New factory functions return the FontFamily instead of subclasses
    • Hid constructors of the subclasses, so that they can only be constructed via factory functions.
    • Renamed Font.asFontFamily to Font.toFontFamily
    • ( I42aa7 )
  • Introduced ComposeContentTestRule , which extends ComposeTestRule and defines setContent , which has been removed from ComposeTestRule . Added a factory method createEmptyComposeRule() that returns a ComposeTestRule and does not launch an Activity for you. Use this when you want to launch your Activity during your test, eg using ActivityScenario.launch ( I9d782 , b/174472899 )

  • animateAsState is now animateFooAsState, where Foo is the type of the variable being animated. eg Float, Dp, Offset, etc ( Ie7e25 )

  • Density is now receiver scope for Arrangement interfaces. ( I18aad )

  • TextFieldValue accepts AnnotatedString. However this is an API only change and multi-style text editing is not implemented yet.

    • Removed initial from EditingBuffer constructor parameters. ( I326d5 )
  • invalidate and compositionReference() are now deprecated in favor of currentRecomposeScope and rememberCompositionReference respectively. ( I583a8 )

  • AnnotatedString is changed to extend from kotlin.CharSequence. Therefore length and subSequence are now instance functions, and extension functions are removed. ( Iaf429 )

  • Duration and Uptime will be replace with Long milliseconds, and this step removes the dependency of pointer input on those classes. ( Ia33b2 , b/175142755 , b/177420019 )

  • RememberObserver replaces CompositionLifecycleObserver and CompositionLifecycleObserver is now deprecated.

    RememberObserver is a replacement for CompositionLifecycleObserver with modified semantics and renamed methods. Changing to the new API can be done mechanically for objects that are only remembered once which is, and continues to be, the recommended practice. However, if a reference was remembered more than once in a composition onRemembered is called for each reference where onEnter is only called once. onEnter was called multiple time if the object was used in subcompositions, such as WithConstraints and Scaffold making the single onEnter call guarantee unreliable and it was removed for RememberObserver .

    RememberObserver adds onAbandoned which is called if the RememberObserver instance is returned from the callback passed to remember but was not remembered in the composition state and, therefore, will never have onRemembered called. This can occur if an exception terminates composition before completing or the composition is discarded because the state is was producing a composition for is no longer current or otherwise is no longer needed. If the instance of RememberObserver following the single reference recommendation above is tracking an external resource both onForgotten and onAbandoned each indicate that the resource is no longer needed. If the object is tracking work started or resources allocated in onRemembered , onAbandoned can be ignored as it will not be called if onRemembered is called. ( I02c36 )

  • Renamed TransformedText.transformedText to TransformedText.text

    • TransformedText is no longer a data class ( Ie672a )
  • The following classes are not data classes anymore:

    • AnnotatedString
    • ParagraphStyle
    • SpanStyle
    • টেক্সটস্টাইল
    • ফন্টওয়েট
    • টেক্সট ডেকোরেশন
    • TextGeometricTransform
    • TextIndex
    • TextLayoutResult
    • TextLayoutInput ( Iaff99 )
  • Removed experimental monotonicFrameAnimationClockOf methods ( Ib753f , b/170708374 )

  • Deprecated global coordinates methods and made new window-based coordinates methods. ( Iee284 )

  • Please use ImeAction.None instead of ImeAction.NoAction

    • Please use ImeAction.Default instead of ImeAction.Unspecified ( Ie1bcc )
  • FocusRequester.createRefs is now marked as experimental as it might change. ( I2d898 , b/177000821 )

  • SemanticsPropertyReceiver.hidden was renamed to invisibleToUser and marked @ExperimentalComposeUiApi. AccessibilityRangeInfo was renamed to ProgressBarRangeInfo. stateDescriptionRange was renamed to progressBarRangeInfo. AccessibilityScrollState was renamed to ScrollAxisRange. horizontalAccessibilityScrollState was renamed to horizontalScrollAxisRange. verticalAccessibilityScrollState was renamed to verticalScrollAxisRange. ( Id3148 )

  • Changed VisualTransformation to be a functional interface ( I3bba4 )

  • Leverage TestCoroutineDispatcher in testing ( I532b6 )

  • Removed PointerInputData and modified PointerInputChange to give it all of PointerInputData's fields. Made PointerInputEvent and PointerInputEventData internal because they aren't used in any public API. ( Ifff97 , b/175142755 )

  • Renamed TextInputService.onStateUpdated as updateState ( Id4853 )

  • Remove displaySize as it should be avoided. Typically it is better to use size of onRoot() or window size at least. ( I62db4 )

সংস্করণ 1.0.0-আলফা10

13 জানুয়ারী, 2021

androidx.compose.foundation:foundation:1.0.0-alpha10 and androidx.compose.foundation:foundation-layout:1.0.0-alpha10 are released. সংস্করণ 1.0.0-alpha10 এই কমিট ধারণ করে।

এপিআই পরিবর্তন

  • ImeOptions and KeyboardOptions are no more a data class ( I3c898 , b/168684531 )
  • VisualTransformation API Changes
    • Renamed OffsetMap to OffsetMapping
    • Renamed OffsetMapping.identityOffsetMap to OffsetMapping.Identity
    • PasswordTransformation is no longer data-class
    • Moved OffsetMapping to its own file
    • ( I0bdf3 )
  • EditOperations API Changes
    • Renamed EditOperation as EditCommand
    • Added Command suffix for EditOperation concrete implementations
    • EditCommand's are no longer data classes
    • Renamed EditOperation.process function to applyTo
    • Renamed InputEventListener to InputEventCallback
    • ( I0a366 )
  • Modified Velocity to have component parts and mathematical operations. ( Ib0447 )
  • Renamed @ExperimentalTesting to @ExperimentalTestApi to be consistent with similar experimental api annotations ( Ia4502 , b/171464963 )
  • Added experimental stickyHeader method for LazyColumn/LazyRow ( I0a81d )
  • Ranamed Color.useOrElse() to Color.takeOrElse() ( Ifdcf5 )
  • Deprecated TestUiDispatcher. Use Dispatchers.Main instead ( Ic171f , b/175385255 )
  • Add Toggle to foundation Strings.kt ( I4a5b7 , b/172366489 )
  • Moved nativeClass to ui module and made it internal. Updated usages of nativeClass in equals implementations to use 'is MyClass' instead. ( I4f734 )
  • FlowRow and FlowColumn were deprecated. Please use a custom layout instead. ( I09027 )
  • Modifier.focus() and Modifier.focusRequester() are deprecated. Use Modifier.focusModifier() and Modifier.focusReference() instead. ( I75a48 , b/175160751 , b/175160532 , b/175077829 )
  • Introduced SelectionRegistrar.notifySelectableChange to notify Selectable updates to SelectionManager. ( I6ff30 , b/173215242 )
  • Changed fun Dp.isFinite() to a val Dp.isFinite ( I50e00 )
  • Constraints#satisfiedBy was renamed to isSatisfiedBy. ( I9cf5c )
  • Added isSpecified, isUnspecified, and useOrElse for inline classes with an Unspecified constant. ( I93f7b , b/174310811 )

বাগ ফিক্স

  • New coroutine-based API Animatable that ensures mutual exclusiveness among its animations. New DecayAnimationSpec to support multi-dimensional decay animation ( I820f2 , b/168014930 )
  • Added support for disabled and read-only text fields ( I35279 , b/171040474 , b/166478534 )
  • animate() is now replaced with animateAsState() , which returns a State<T> instead of T . This allows better performance, as the invalidation scope can be narrowed down to where the State value is read. ( Ib179e )
  • Add Semantics role API and add Role as a parameter to clickable, selectable and toggleable SemanticsModifier. Changed Modifier.progressSemantics so that Slider can also use it. ( I216cd )
  • The native keyEvent can now be accessed through keyEvent.nativeKeyEvent ( I87c57 , b/173086397 )

সংস্করণ 1.0.0-alpha09

16 ডিসেম্বর, 2020

androidx.compose.foundation:foundation:1.0.0-alpha09 and androidx.compose.foundation:foundation-layout:1.0.0-alpha09 are released. 1.0.0-alpha09 সংস্করণে এই কমিট রয়েছে।

এপিআই পরিবর্তন

  • Add Scrollable interface

    This allows ScrollState and LazyListState to be treated as a common type, allowing custom scrolling to be implemented across both types.

    This also moves smoothScrollBy to an extension function on Scrollable, taking advantage of this functionality. ( I2153b )

  • LazyVerticalGrid is added. ( I17267 , b/162213211 )

  • Deprecate LazyColumnFor, LazyRowFor, LazyColumnForIndexed and LazyRowForIndexed. Use LazyColumn and LazyRow instead ( I5b48c )

  • For suspending pointer input APIs, renamed HandlePointerInputScope to AwaitPointerEventScope and handlePointerInput() to awaitPointerEventScope(). ( Idf0a1 , b/175142755 )

  • LazyListState.layoutInfo was added which exposes the list of sizes and offsets of the currently visible items ( If8678 , b/170472532 )

  • Removed ExperimentalPointerInput annotation ( Ia7a24 )

  • InteractionState support for TextFields has been added. ( I61d91 )

  • Add reverseLayout param for LazyColumn/Row. when true items will be composed from the bottom to the top and LazyListState.firstVisibleItemIndex == 0 will mean the first item is located at the bottom. ( I552ae , b/166589935 )

  • verticalArrangement param was added for LazyColumn. horizontalArrangement param was added for LazyRow. Arrangement allows us to add a spacing between items and specify the arrangement of the items when we do not have enough of them to fill the whole minimum size. ( Icf79a , b/170394300 )

  • detectMultitouchGestures now uses one callback with combined centroid, pan, zoom and rotate parameters. ( Ie6e1c )

  • Moved ContentDrawScope to ui-graphics module to be with DrawScope. ( Iee043 , b/173832789 )

বাগ ফিক্স

  • Lambdas in offset modifiers now return IntOffset rather than Float. ( Ic9ee5 , b/174137212 , b/174146755 )
  • Removed SlotTable, SlotReader and SlotWriter from the public API. These were marked as InternalComposeAPI previously. Now they are internal to the compose module.

    CompositionData and CompositionGroup were added as a replacement for the ui-tooling API to use to extract composition information. These are public but are not intended for use outside the ui-tooling API as they provide the raw information the ui-tooling API interprets ( I31a9c )

  • Refactored ShaderBrush to lazily create a shader instance when sizing information of the drawing environment is available. This is useful to define gradients that occupy the full drawing bounds of a composable at composition time, without having to implement custom DrawModifier implementations.

    Deprecated gradient function constructor APIs in favor of factory methods on a Gradient object. ( I511fc , b/173066799 )

  • Modifier.focusObserver is deprecated. Use Modifier.onFocusChanged or Modifier.onFocusEvent instead ( I30f17 , b/168511863 , b/168511484 )

  • Autofill API is now experimental API and requires opt-in ( I0a1ec )

  • Adding destructuring declarations to create FocusRequester instances ( I35d84 , b/174817008 )

  • accessibilityLabel has been renamed to contentDescription. accessibilityValue has been renamed to stateDescription. ( I250f2 )

  • Introduced several new functions in SelectionRegistrar and also renamed onPositionChange to notifyPositionChange. ( Ifbaf7 )

  • AndroidOwner made internal ( Ibcad0 , b/170296980 )

  • New infiniteRepeatable function for creating an InfiniteRepeatableSpec ( I668e5 )

  • The Applier interface has changed to simplify building trees bottom-up instead of top-down.

    The insert() method has been renamed to insertTopDown() .

    A new method, insertBottomUp() , was added.

    An applier either inserts nodes into the tree it is editing using insertTopDown() or insertBottomUp() depending on which performs better.

    Some trees, such as LayoutNode and View , are much more efficient to build bottom-up than top-down. Prior to this change, a stack of inserts was required to implement bottom-up which needed to be copied to every applier which needed bottom-up construction for performance. With this change an Applier overrides insertBottomUp() to build a tree bottom-up and insertTopDown() to build the tree top-down. ( Icbdc2 )

  • Added painterResource API to handle opaquely loading Painter objects from either rasterized asset formats (like PNGs) or VectorDrawables. Consumers no longer have to determine the type of asset in advance and can call this method to get a Painter object to use in Image composables or painter modifiers. ( I2c703 , b/173818471 )

  • Added buildAnnotatedString factory function in order to build an AnnotatedString. Deprecated annotatedString builder function. ( Idfe0b )

সংস্করণ 1.0.0-alpha08

ডিসেম্বর 2, 2020

androidx.compose.foundation:foundation:1.0.0-alpha08 and androidx.compose.foundation:foundation-layout:1.0.0-alpha08 are released. সংস্করণ 1.0.0-alpha08 এই কমিট ধারণ করে।

এপিআই পরিবর্তন

  • Removed maxLines parameter from the CoreTextField . If you'd like to constraint the height of the text field by the number of lines, use BasicTextField instead. ( Iec002 )
  • Changed the await*TouchSlop() methods to not detect the pointer down and renamed them to *OrCancellation . Also removed the need for orientationLock parameter. ( Ie96e1 )
  • Added lint check for composable lambda parameter naming and position, to check for consistency with Compose guidelines. Also migrated some APIs using children as the name for their trailing lambda to content , according to the lint check and guidance. ( Iec48e )
  • foundation:foundation-text apis moved to foundation:foundation . The package structure remained the same ( Id3eb2 )
  • New multitouch gesture detector, including helpers for detecting rotation, zoom, and panning. ( Ic459d )
  • New drag gesture detector suspending pointer input API, including orientation locking. ( Icef25 )
  • Renamed VectorAsset to ImageVector Moved and renamed VectorAsset to Builder to be an inner class of ImageVector as per API council guidelines. Added typealias of VectorAssetBuilder to link to ImageVector.Builder for compat. ( Icfdc8 )
  • Renamed ImageAsset and related methods to ImageBitmap. ( Ia2d99 )
  • Moved foundation semantics properties to ui ( I6f05c )
  • Add coroutine-based scrolling APIs:

    Adds LazyListState.snapToItem and LazyListState.smoothScrollBy, as well as lower-level APIs for scroll control. These APIs provide a suspend interface to control scrolling that waits until the scroll is finished before returning. ( Ie5642 )

  • Added a singeLine parameter into BasicTextField, TextField and OutlinedTextField. Set this parameter to true to make the text field a single horizontally scrollable line. ( I57004 , b/168187755 )

  • Gesture detector for tap, double-tap, long press, and press indication were added using the new suspending pointer input. A few utilities were added as well, making it easier for developers to write their own gesture detectors. ( I00807 )

  • Modifier.focusable has need added in foundation. Use this to add focusable behavior to a component, with correct semantics and accessibility. ( I41eb9 , b/152525426 , b/162865824 )

  • Previously deprecated APIs have been removed: Border was removed, use BorderStroke instead. Modifier.drawBorder was removed, use Modifier.border instead. Modifier.gravity was removed, use Modifier.align instead. Stack was removed, use Box instead ( I32c2b , b/172470874 )

  • AbsoluteArrangement was renamed to Arrangement.Absolute. ( If26f2 )

বাগ ফিক্স

  • Moved DrawModifier APIs from the androidx.compose.ui package to the androidx.compose.ui.draw package. Created DrawModifierDeprecated.kt file to include typealiases/helper methods to assist with the migration from the deprecated to the current APIs. ( Id6044 , b/173834241 )
  • Renamed Modifier.drawLayer to Modifier.graphicsLayer Also updated related classes to GraphicsLayer as per API council feedback. ( I0bd29 , b/173834241 )
  • <T> was removed from SubcomposeLayout declaration. You can use it without specifying a type now. ( Ib60c8 )
  • Made PointerInputData's uptime and position fields non-nullable. ( Id468a )
  • MaterialTheme now sets the correct colors for selection handles and selection background. Non-Material apps can manually use AmbientTextSelectionColors to customize the colors used for selection. ( I1e6f4 , b/139320372 , b/139320907 )
  • The alignment parameter of Box was renamed to contentAlignment. ( I2c957 )
  • offsetPx modifiers were renamed to offset. They are now taking lambda parameters instead of State. ( Ic3021 , b/173594846 )
  • Added WindowManager.isWindowFocused to check if the host window is in focus, and a WindowFocusObserver that provides an onWindowFocusChanged callback. ( I53b2a , b/170932874 )
  • Added resetInput parameter to TextInputService#onStateUpdated ( I3e8f5 , b/172239032 , b/171860947 )
  • Updated TextFieldValue API
    • made TextFieldValue.composition readonly
    • removed exception thrown for invalid selection range ( I4a675 , b/172239032 )
  • Deprecated Ambients named with Ambient as their suffix, and replaced them with new properties prefixed with Ambient, following other Ambients and Compose API guidelines. ( I33440 )
  • Added Android Typeface wrapper. You can load an Android Typeface via typeface function ie typeface(Typeface.DEFAULT) . Also renamed typefaceFromFontFamily() to typeface() ( I52ab7 )
  • Added lint check to check that Modifier factories use androidx.compose.ui.composed {} internally, instead of being marked as @Composable . ( I3c4bc )
  • Added lint check to check that Modifier factory functions are defined as extensions on Modifier, so they can be fluently chained together. ( I07981 )
  • Semantics argument mergeAllDescendants was renamed to mergeDescendants. ( Ib6250 )
  • Time control in tests (TestAnimationClock and its usages) is now experimental ( I6ef86 , b/171378521 )
  • Remove old ui-test module and its stubs ( I3a7cb )
  • TextUnit.Inherit is renamed to TextUnit.Unspecified in consistent with other units. ( Ifce19 )
  • The Alignment interface was updated and made functional. ( I46a07 , b/172311734 )
  • foundation:foundation-text module has been merged into foundation:foundation ( Idac0f )
  • Deprecate place(Offset) and placeRelative(Offset). Use overloads with int offsets instead ( I4c5e7 )
  • id was renamed to layoutId for LayoutIdParentData . Measurable.id was renamed to Measurable.layoutId . ( Iadbcb , b/172449643 )

সংস্করণ 1.0.0-alpha07

11 নভেম্বর, 2020

androidx.compose.foundation:foundation:1.0.0-alpha07 , androidx.compose.foundation:foundation-layout:1.0.0-alpha07 , and androidx.compose.foundation:foundation-text:1.0.0-alpha07 are released. সংস্করণ 1.0.0-alpha07 এই কমিট ধারণ করে।

এপিআই পরিবর্তন

  • Similarly to Modifier.fillMaxSize[Width|Height] we now support fractions in Modifier.fillParentMaxSize[Width|Height] inside the scope of LazyColumn/Row ( I797e2 , b/166586426 )
  • Removed KeyboardOptions.toImeOptions from public API. ( Ic2e45 )
  • The foundation AmbientTextStyle, ProvideTextStyle, and AmbientContentColor have been deprecated. Instead use the new versions available in the Material library. For non-Material applications, you should instead create your own design system specific theming ambients that can be consumed in your own components. ( I74acc , b/172067770 )
  • foundation.Text has been deprecated and replaced with material.Text. For a basic, unopinionated text API that does not consume values from a theme, see androidx.compose.foundation.BasicText. ( If64cb )
  • Added maxLines to TextFields ( Ib2a5b )
  • Update TextFields to accept KeyboardOptions ( Ida7f3 )
  • Added KeyboardOptions for use in TextFields ( I9ca32 )
  • Adds BasicText as a design-unopinionated API for text, parallel to BasicTextField. ( I28268 )
  • ExperimentalLazyDsl annotation was removed. LazyColumn/LazyRow can now be used without adding @OptIn ( Idab7a , b/166584730 )
  • BaseTextField has been deprecated. Use BasicTextField instead. ( I896eb )
  • BasicTextField has been added as a replacement for both CoreTextField and BaseTextField ( Id4cea )
  • Remove deprecated LazyColumnItems/LazyRowItems ( I1d8a8 )
  • The deprecated composables for sizing to intrinsic measurements were removed. ( I18537 , b/171811496 )
  • relativePaddingFrom was renamed to paddingFrom. The paddingFromBaseline modifier was added, as convenience for specifying distances from layout bounds to text baselines. ( I0440a , b/170633813 )
  • The matchHeightConstraintsFirst parameter was added to the aspectRatio modifier, which can be used to specify the modifier to size to height constraints before trying the width correspondents. ( Ie7c43 , b/155290593 )
  • The deprecated DpConstraints was removed. ( I87884 , b/171702471 )

বাগ ফিক্স

  • Introduced ScaleFactor inline class to represent scale factors for the horizontal and vertical axes independent of one another in order to support non-uniform scaling use cases.
    • Added computeScaleFactor method to ContentScale
    • Added ContentScale.FillBounds to perform non-uniform scaling to stretch the src bounds to fully occupy the destination.
    • Added operator methods to compute ScaleFactor parameters with Size parameters.
    • ( Ic96a6 , b/172291582 )
  • captureToBitmap moved to captureToImage. ( I86385 )
  • Marks CoreText as @InternalTextApi. Use BasicText instead. ( I6aaeb )
  • Rename KeyboardOptions as ImeOptions ( I82f36 )
  • Moved KeyboardType and ImeAction into KeyboardOptions ( I910ce )
  • CoreTextField has been marked as @InternalTextApi. Use BasicTextField instead ( Ie2469 )
  • ExperimentalSubcomposeLayoutApi annotation was removed. SubcomposeLayout can now be used without adding @OptIn ( I708ad )
  • Introduce ui-test-junit4 module ( Ib91f8 )
  • Updated Icon API to take in Color.Unspecified as a possible tint color which will draw the provided asset or painter without a ColorFilter. Previously attempts to ignore tinting with Color.Unspecified would tint with a transparent color ending up with nothing rendered at all. ( I049e2 , b/171624632 )
  • MeasureResult was moved out of MeasureScope. ( Ibf96d , b/171184002 )
  • Several layout related symbols were moved from androidx.compose.ui to androidx.compose.layout.ui. ( I0fa98 , b/170475424 )
  • androidx.ui.test moved to androidx.compose.ui.test ( I9ffdb )
  • FirstBaseline and LastBaseline were moved to androidx.compose.ui.layout package ( Ied2e7 )
  • Added SelectionContainer without the callback ( Ibfadb )
  • Add Tests for SelectionHandles' Positions in SelectionContainer. ( Ie93db )
  • Added Keyboard auto correct IME Option ( I57b8d )

সংস্করণ 1.0.0-alpha06

অক্টোবর 28, 2020

androidx.compose.foundation:foundation:1.0.0-alpha06 , androidx.compose.foundation:foundation-layout:1.0.0-alpha06 , and androidx.compose.foundation:foundation-text:1.0.0-alpha06 are released. সংস্করণ 1.0.0-alpha06 এই কমিট ধারণ করে।

এপিআই পরিবর্তন

  • androidx.compose.foundation.Icon has been moved to androidx.compose.material.Icon. You can also use the Image component / Modifier.paint() with a Painter if you do not want to use the Material library. ( I9f622 )
  • Added interactionState to Modifier.scrollable, ScrollableColumn and LazyColumnFor ( I81566 , b/169509805 )
  • alignByBaseline was added to RowScope and alignWithSiblings was renamed to alignBy ( I06503 , b/170628732 )
  • Box was made an inline function. ( Ibce0c , b/155056091 )
  • Added maxLines to CoreTextField ( Ibee58 , b/143687793 )
  • Added softwrap to CoreTextField. ( I21a4b )

বাগ ফিক্স

  • Deprecate VectorPainter in favor of rememberVectorPainter to better indicate that the composable API internally leverages 'remember' to persist data across compositions. ( Ifda43 )
  • Enable transitions in ComposeTestRule; remove option to enable the blinking cursor from ComposeTestRule. ( If0de3 )
  • Added single line keyboard option to CoreTextField ( I72e6d )
  • Renamed Radius API to CornerRadius to better express how it is used throughout Compose. Updated documentation to indicate that negative corner radii are clamped to zero. ( I130c7 , b/168762961 )
  • Add ability to specify inspector info in composed modifier ( Idee08 , b/163494569 )
  • Added KeyboardCapitalization IME Option ( I8ac38 )
  • Fix Rtl Handle Position. ( I6e1e0 )
  • Breaking change: removed the return value from PointerInputFilter.onPointerEvent(...) given that the only value that should be able to be changed in pointer events is consumption data. Instead of returning data from PointerInputFilter.onPointerEvent(...), now you can just mutate the consumption data of the PointerEvents passed in. ( I6acd0 )
  • Added SelectAll option into selection menu ( Ief02b )

সংস্করণ 1.0.0-alpha05

অক্টোবর 14, 2020

androidx.compose.foundation:foundation:1.0.0-alpha05 , androidx.compose.foundation:foundation-layout:1.0.0-alpha05 , and androidx.compose.foundation:foundation-text:1.0.0-alpha05 are released. 1.0.0-alpha05 সংস্করণে এই কমিট রয়েছে।

এপিআই পরিবর্তন

  • CoreTextField now supports cursor functionality ( Id23aa )
  • Deprecates contentColor() and currentTextStyle() APIs, and replaces them with AmbientContentColor and AmbientTextStyle ambients respectively. You can access the current value by using .current on the ambient property, as with any other ambient. This was change was made for consistency and to avoid having multiple ways to accomplish the same thing. Additionally renames some ambient properties to better describe their purpose as follows:

    • ContentColorAmbient -> AmbientContentColor
    • TextStyleAmbient -> AmbientTextStyle
    • IndicationAmbient -> AmbientIndication
    • EmphasisAmbient -> AmbientEmphasisLevels
    • RippleThemeAmbient -> AmbientRippleTheme ( I37b6d )

বাগ ফিক্স

  • As part of the standardization of sentinel values for inline classes, rename Color.Unset to Color.Unspecified for consistency with other inline classes ( I97611 , b/169797763 )
  • Added Copy/Paste/Cut accessibility actions ( I6db4f )
  • TextOverflow.None is introduced. When overflow is None, Text won't handle overflow anymore, and it will report its actual size to LayoutNode. ( I175c9 , b/158830170 )
  • Updated Size.Unspecified parameters to be Float.NaN instead of Float.POSITIVE_INFINITY. Updated Painter implementations to check against Size.Unspecified as well as non-finite Sizes. ( I95a7e )
  • Added Paging Compose module and paging integration ( Ib85da )
  • Modify LazyListScope to receive nullable values ( I1765b )
  • OnPositionedModifier is renamed to OnGloballyPositionedModifier and onPositioned() is renamed to onGloballyPositioned(). ( I587e8 , b/169083903 )
  • Added samples for LazyColumn/Row ( Idc16d )
  • Fix for the items and itemsIndexed methods to allow emptyList ( I06647 )
  • Add a DSL for specifying inspector information ( Ic9a22 )
  • Move LongPress into Text. ( Iff2bc )
  • Disable Selection in Text, and a Demo. ( Ie7e97 )
  • Support AnnotatedString to SpannableString conversion for accessibility. ( Ief907 )
  • Removed PointerInputFilter.onPointerInput(...) . PointerInputFilter.onPointerEvent(...) should be used in its place. ( I6f04a )

সংস্করণ 1.0.0-alpha04

অক্টোবর 1, 2020

androidx.compose.foundation:foundation:1.0.0-alpha04 , androidx.compose.foundation:foundation-layout:1.0.0-alpha04 , and androidx.compose.foundation:foundation-text:1.0.0-alpha04 are released. সংস্করণ 1.0.0-alpha04 এই কমিট ধারণ করে।

এপিআই পরিবর্তন

  • Stack was renamed to Box. The previously existing foundation.Box will be deprecated in favor of the new Box in compose.foundation.layout. The behavior of the new Box is to stack children one on top of another when it has multiple children - this is different from the previous Box, which was behaving similar to a Column. ( I94893 , b/167680279 )
  • Box decoration parameters have been deprecated. If you want to have decorations/padding on your box, use Modifiers instead (Modifier.background, Modifier.border, Modifier.padding) ( Ibae92 , b/167680279 )
  • Add a new LazyListState class. This allows for observation and control of the scroll position of LazyRow and LazyColumn components. Instances can be created using rememberLazyListState() and passed into the state parameter of the component. Currently, the first visible item and offsets can be observed in this initial version. ( Ic7cb7 , b/159307669 )
  • Lazy list position and scroll offset are now saved and restored across Activity recreation ( Ie045f , b/166589058 )
  • Add long click semantics action ( I6281b , b/156468846 )
  • MutatorMutex utility added for keeping a single mutator of shared state over time and cancelling conflicting mutators by priority ( I3f975 )
  • Annotated rootAnimationClockFactory, transitionsEnabled, blinkingCursorEnabled and textInputServiceFactory with @VisibleForTesting, make them internal API and hide their kdoc ( I554eb , b/168308412 )
  • Removed inlineContent parameter from Text with String input. It won't be used because inlineContent must work with AnnotatedString. ( Ief403 )
  • The deprecated custom Arrangement APIs were removed. ( Ic576d , b/168297922 , b/168297923 )
  • The unbounded parameter was added to wrapContentSize modifiers, which enables measuring the layout element with infinite max constraints. ( I77951 , b/158559319 )
  • We prevented static imports of contents of layout scopes (eg alignWithSiblings in RowScope). The explicit scope alternative should be used instead: with(RowScope) { Modifier.alignWithSiblings(FirstBaseline) } . ( I216be , b/166760797 )

বাগ ফিক্স

  • Updated many Graphics APIs
    • Updated scale and rotation transformation APIs to consume a single Offset parameter to represent the pivot coordinate instead of separate float parameters for the x/y coordinates in DrawScope and DrawTransform
    • Removed Rect.expandToInclude and Rect.join methods
    • Updated Radius documentation to say oval in addition to elliptical
    • Added documentation to indicate the public constructor for the inline Radius class is not to be called directly but instead Radius objects should be instantiated through their function constructors
    • Removed RoundRect APIs to query topRight, bottomRight, bottomCenter, etc.
    • Deprecated Rect.shift in favor of Rect.translate
    • Removed RoundRect.grow and Rect.shrink APIs
    • Renamed RoundRect.outerRect to Rect.boundingRect
    • Removed RoundRect.middleRect/tallMiddleRect/wideMiddleRect and Rect.isStadium methods
    • Renamed RoundRect.longestSide to RoundRect.maxDimension
    • Renamed RoundRect.shortestSide to RoundRect.minDimension
    • Changed RoundRect.center to be a property instead of a function
    • Updated RoundRect constructor to consume Radius properties instead of individual parameters for x/y radius values
    • Removed Size APIs that assumed it was a Rectangle with origin at 0,0
    • Added a destructing API to Radius
    • Migrated various RoundRect extension functions to be properties instead
    • ( I8f5c7 , b/168762961 )
  • Performance optimizations for LazyColumnFor/LazyRowFor scrolling by not doing unnecessary recompositions during every scroll ( I64f65 , b/168293643 , b/167972292 , b/165028371 )
  • Fixed crash in LazyColumnFor/LazyRowFor after scrolling and then changing items and implemented auto scrolling up when the previously visible item was removed so we don't display empty gaps in the end anymore ( I220ab , b/161480164 , b/167855468 )
  • Nesting scrollable in the same direction containers like ScrollableContainer and LazyColumnFor is not allowed anymore. It was never supported and was breaking the fling and all the laziness of composing the items of LazyColumnFor ( I6e101 )
  • Updated many Graphics APIs
    • Updated DrawScope APIs with scoped transformation methods to indicate that the transformation is only applied within the callback and removed after the callback is invoked
    • Updated clipPath documentation to refer to Path instead of rounded rectangle
    • Fixed spacing in documentation for right parameter in clipPath
    • Renamed DrawScope.drawCanvas to drawIntoCanvas and removed size parameter
    • Renamed dx/dy parameters in inset method to horizontal and vertical
    • Added inset overload that provides the same inset value to all 4 bounds
    • Removed documentation on inset method indicating that inset would be applied to all 4 sides
    • Updated documentation for Rect class
    • Updated comments on Rect parameters to match kdoc style
    • Removed Rect.join and Rect.expandToInclude
    • Created overload for Rect.translate(offset) and deprecated Rect.shift
    • ( If086a , b/167737376 )
  • add AccessibilityScrollState to semantics properties. ( Ifeda9 )
  • Make TextRange inline to avoid object creation. ( Id034b )
  • ParagraphConstraints is removed. Width is directly passed to Paragraph now. ( Ica712 )

সংস্করণ 1.0.0-alpha03

16 সেপ্টেম্বর, 2020

androidx.compose.foundation:foundation:1.0.0-alpha03 , androidx.compose.foundation:foundation-layout:1.0.0-alpha03 , and androidx.compose.foundation:foundation-text:1.0.0-alpha03 are released. সংস্করণ 1.0.0-alpha03 এই কমিট ধারণ করে।

এপিআই পরিবর্তন

  • InnerPadding was renamed to PaddingValues. ( I195f1 , b/167389171 )
  • Usages of gravity were consistently renamed to align or alignment in layout APIs. ( I2421a , b/164077038 )
  • An alignment parameter was added to Stack, which allows specifying the default alignment for all the Stack children. ( Ie80ca , b/164085265 )

বাগ ফিক্স

  • DpConstraints and APIs using it were deprecated. ( I90cdb , b/167389835 )
  • The parameters minWidth and maxWidth of widthIn were renamed to min and max . Similarly for preferredWidthIn , heightIn , preferredHeightIn . ( I0e5e1 , b/167389544 )
  • Added onNode and other global methods on ComposeTestRule as the current global ones are going to be deprecated. ( Ieae36 )
  • Fixed size and position calculations in GestureScope, which caused amongst others generation of invalid swipe gestures ( Iaf358 , b/166589947 )
  • Moved createAndroidComposeRule and AndroidInputDispatcher from androidx.ui.test.android to androidx.ui.test ( Idef08 , b/164060572 )

সংস্করণ 1.0.0-alpha02

2শে সেপ্টেম্বর, 2020

androidx.compose.foundation:foundation:1.0.0-alpha02 , androidx.compose.foundation:foundation-layout:1.0.0-alpha02 , and androidx.compose.foundation:foundation-text:1.0.0-alpha02 are released. সংস্করণ 1.0.0-alpha02 এই কমিট ধারণ করে।

বাগ ফিক্স

  • TestUiDispatcher is marked experimental ( Iae99d , b/161247083 )
  • Added ManualFrameClock.hasAwaiters to see if anything is awaiting a frame from that clock; runWithManualClock as a replacement for runBlocking when running tests that need a ManualFrameClock; TestUiDispatcher.Main that gives easy access to the main UI dispatcher in your tests.

    উদাহরণ স্বরূপ:

    @Test
    fun myTest() = runWithManualClock { clock ->
        // set some compose content
        withContext(TestUiDispatcher.Main) {
            clock.advanceClock(1000L)
        }
        if (clock.hasAwaiters) {
            println("The clock has awaiters")
        } else {
            println("The clock has no more awaiters")
        }
    }
    

    ( I0a85b , b/161247083 )

সংস্করণ 1.0.0-alpha01

আগস্ট 26, 2020

androidx.compose.foundation:foundation:1.0.0-alpha01 , androidx.compose.foundation:foundation-layout:1.0.0-alpha01 , and androidx.compose.foundation:foundation-text:1.0.0-alpha01 are released. সংস্করণ 1.0.0-alpha01-এ এই কমিট রয়েছে।

Version 0.1.0-dev

Version 0.1.0-dev17

আগস্ট 19, 2020

androidx.compose.foundation:foundation:0.1.0-dev17 , androidx.compose.foundation:foundation-layout:0.1.0-dev17 , and androidx.compose.foundation:foundation-text:0.1.0-dev17 are released. Version 0.1.0-dev17 contains these commits.

এপিআই পরিবর্তন

  • The spacedBy Arrangement was added for Row and Column, to enable positioning layout children with a fixed spacing. The aligned Arrangment was also added, to enable positioning layout children one next to the other and aligned in the Row/Column according to an Alignment. The previous Arrangement.Vertical#arrange and Arrangement.Horizontal#arrange methods were deprecated, and writing custom Arrangements will not be supported in the future. ( I6733d , b/161985975 )
  • Offset has become an inline class ( Iaec70 )
  • Removed onFocusChanged callbacks from TextField. Use Modifier.focusObserver instead. ( I51089 , b/161297615 )
  • Modifier.drawBorder has been deprecated. Use Modifier.border instead. Border data class has been replaced by BorderStroke ( I4257d , b/158160576 )
  • VerticalScroller and HorizontalScroller have been removed. Use ScrollableColumn/Row instead. Modifier.drawBackground has been removed. Use Modifier.background ( I73b0d , b/163019183 )
  • Remove marked as deprecated fillMax* modifiers from LazyItemScope as they are making it harder to add such modifiers correctly for items which are not direct children of LazyColumnFor ( Ifa78d )
  • added LazyColumn/LazyRow implementation as DSL ( I93cc6 )
  • Constraints is now an inline class ( I88736 )
  • Added the ability to size a layout to a fraction of the available space, using the fillMaxWidth, fillMaxHeight and fillMaxSize modifiers. ( I945bb , b/161562591 )

বাগ ফিক্স

  • Added a modifier param to SelectionContainer ( I4aada , b/161487952 )
  • Added mergePolicy lambda to SemanticsPropertyKey. This can be used to define a custom policy for mergeAllDescendants semantics merging. The default policy is to use the parent value if already present, otherwise the child value. ( Iaf6c4 , b/161979921 )
  • PlacementScope.placeAbsolute() was renamed to PlacementScope.place() , and the previous PlacementScope.place() was renamed to PlacementScope.placeRelative() . As a result, the PlacementScope.place() method will not automatically mirror the position in right-to-left contexts anymore. If this is desired, use PlacementScope.placeRelative() instead. ( I873ac , b/162916675 )
  • Removed deprecated FilledTextField component. Please use TextField instead to get the Material Design implementation of the Filled text field. ( I5e889 )
  • Added backgroundColor parameter to LinearProgressIndicator and removed internal padding from CircularProgressIndicator. Added new ProgressIndicatorConstants.DefaultProgressAnimationSpec which can be used as the default AnimationSpec when animating progress between values ( If38b5 , b/161809914 , b/161804677 )
  • The state { ... } composable is now deprecated in favor of explicit calls to remember { mutableStateOf(...) } for clarity. This reduces the overall API surface and number of concepts for state management, and matches the by mutableStateOf() pattern for class property delegation. ( Ia5727 )
  • Renamed RRect to RoundRect to better fit compose naming patterns Created similar function constructors to RRect and deprecated RRect function constructors ( I5d325 )
  • Removed onChildPositioned and OnChildPositionedModifier. Developers should use onPositioned and OnPositionedModifier on the child layout instead. ( I4522e , b/162109766 )
  • IntSize is now an inline class ( I2bf42 )
  • LongPress the Blank Area to Edit. ( Ib1e5b )
  • Hide FloatingToolbar After Tapping on the Text. ( If4525 )
  • Hide FloatingToolbar When Updating the Selection. ( I8444c )
  • Deselect When Blur. ( I781a2 )

সংস্করণ 0.1.0-dev16

আগস্ট 5, 2020

androidx.compose.foundation:foundation:0.1.0-dev16 , androidx.compose.foundation:foundation-layout:0.1.0-dev16 , and androidx.compose.foundation:foundation-text:0.1.0-dev16 are released. Version 0.1.0-dev16 contains these commits.

এপিআই পরিবর্তন

  • LazyItemScope was added for itemContent param of Lazy lists. It provides modifiers to fill the parent max size which solves the use case when the item should fill the viewport and the regular Modifier.fillMaxSize() doesn't work as the item is measured with infinity constraints. ( Ibd3b2 , b/162248854 )
  • Move dialog to ui ( I47fa6 )
  • Added LazyColumnForIndexed/LazyRowForIndexed - versions of LazyColumnFor/LazyRowFor which provides both index and item in the itemCallback. It is useful when in addition to a current item you need to know a current index. ( I65ff3 )
  • Modifier.deternimateProgress has been renamed to Modifier.progressSemantics ( I9c0b4 )
  • LazyColumnItems was renamed to LazyColumnFor. LazyRowItems was renamed to LazyRowFor ( I84f84 )
  • Add some Marks/Annotations for best practice reason. ( I66b20 )
  • foundation.shape.corner package were flatten to foundation.share ( I46491 , b/161887429 )
  • Added сrossaxis gravity param for LazyRowItems/LazyColumnItems. LazyRowItems/LazyColumnItems now support wrap content behaviour. ( Ib39fc )
  • ZoomableState has been renamed to ZoomableController. Custom curve support has been added for smoothScale. enabled and onZoomStarted functionality has been added ( If8b8f )
  • Material FilledTextField was renamed to TextField and foundational TextField was renamed to BaseTextField to make simplest desired API easy to discover and use ( Ia6242 , b/155482676 )
  • Previously deprecated AdapterList has been removed. Use LazyColumnItems instead ( I12b9b )
  • Modifier.drawBackground has been renamed to Modifier.background ( I13677 )
  • The old ConstraintLayout DSL was removed. ConstraintSet2 has been renamed to ConstraintSet. ( If58d1 , b/162450908 )
  • Added Modifier.absoluteOffset() and Modifier.absoluteOffsetPx(). Unlike offset modifiers, absolute offset modifiers will not auto-mirror in right-to-left context ( I3aa21 )
  • Row and Column are now inline function significantly reducing the overhead of using them. ( I75c10 )

বাগ ফিক্স

  • Address broad API fixes ( I077bc )
    1. Remove unused OffsetBase interface
    2. Align Offset and IntOffset classes to have a consistent API surface
    3. Rename IntOffset.Origin to IntOffset.Zero to be consistent with Offset API
    4. Moved nativeCanvas method off of Canvas interface to support consumers to create their own Canvas instances
    5. Created stub EmptyCanvas class to refactor DrawScope to be a non-null parameter instead of lateinit and ensure non-nullability of the field
    6. Renamed ClipOp enums to be Pascal Case
    7. Renamed FilterQuality enums to be Pascal Case
    8. Renamed StrokeJoin enums to be Pascal Case
    9. Renamed PointMode enums to be Pascal Case
    10. Renamed PaintingStyle enums to be Pascal Case
    11. Renamed PathFillType enums to be Pascal Case
    12. Renamed StrokeCap enums to be Pascal Case
    13. Updated DrawCache implementation to no longer use lateinit params
    14. Updated DrawScope to no longer use lazy delegation for fillPaint and strokePaint internal parameters
    15. Updated Image composable to avoid Box usage for less overhead
    16. Updated Outline class to have @Immutable annotations
    17. Updated PathNode to have @Immutable annotations for each path instruction
    18. Updated Vector subcomposition to remove redundant conditional checks for equality as compose already handles them
    19. Deprecated Rect companion constructor methods in favor of function constructors
    20. Updated Brush classes and function constructors with @Immutable and @Stable APIs
    21. Updated VertexMode enum to be PascalCase
    22. Updated DrawScope selectPaint method to conditionally overwrite stroke parameters on the paint if they have changed
    23. Updated Size to add destructuring API, rename UnspecifiedSize to Unspecified and removed unused methods
  • Added MonotonicFrameAnimationClock that enables you to use a MonotonicFrameClock as an AnimationClockObservable to bridge the gap between the new coroutines based clocks and APIs that still use the old callback based clocks.

    The MonotonicFrameClock equivalent of ManualAnimationClock is now ManualFrameClock. ( I111c7 , b/161247083 )

  • Removed SemanticsNodeInteraction.performPartialGesture . Use SemanticsNodeInteraction.performGesture instead. ( Id9b62 )

  • Renamed SemanticsNodeInteraction.getBoundsInRoot() to SemanticsNodeInteraction.getUnclippedBoundsInRoot() ( Icafdf , b/161336532 )

  • The APIs for right-to-left support has been updated. LayoutDirectionAmbient has been added, which can be used to read and change the layout direction. Modifier.rtl and Modifier.ltr have been removed. ( I080b3 )

  • Modifier.plus has been deprecated, use Modifier.then instead. 'Then' has a stronger signal of ordering, while also prohibits to type Modifier.padding().background() + anotherModifier , which breaks the chain and harder to read ( Iedd58 , b/161529964 )

  • Added isFocused() and isNotFocused() SemanticsMatcher. ( I0b760 )

  • RemeasurementModifier was added. It allows users to synchronously remeasure the layout. In general, you never need it as remeasure/relayout is happening automatically, but we use it inside LazyColumnItems during the scroll. ( I5f331 , b/160791058 )

  • isSystemInDarkTheme now always considers the system-wide dark theme setting, and ignores power saving status before Q, following latest guidance. ( I0c10c )

  • OnChildPositioned has been deprecated. Use OnPositioned on the child instead. ( I87f95 , b/162109766 )

  • Renamed AndroidComposeTestRule to createAndroidComposeRule. ( I70aaf )

  • Add accessibility action to get TextLayoutResult ( I9d6e6 )

Version 0.1.0-dev15

22 জুলাই, 2020

androidx.compose.foundation:foundation:0.1.0-dev15 , androidx.compose.foundation:foundation-layout:0.1.0-dev15 , and androidx.compose.foundation:foundation-text:0.1.0-dev15 are released. Version 0.1.0-dev15 contains these commits.

To use the 0.1.0-dev15 version of Compose, you will need to:

নির্ভরতা আপডেট

  • To use the 0.1.0-dev15 version of Compose, you will need to update your dependencies according to the new code snippets shown above in Declaring dependencies .

এপিআই পরিবর্তন

  • Similarly to the new param in ScrollableColumn/ScrollableRow LazyColumnItems/LazyRowItems now also have contentPadding param which allows to add a padding for the content after it has been clipped, which is not possible via just a modifier param. It also allows to add a spacing only before first item/after last item. ( Ibc24e )
  • onFocusChange callback in text fields renamed to onFocusChanged ( Ida4a1 )
  • VerticalScroller and HoriziontalScroller have been deprecated. Use ScrollableColumn and ScrollableRow for build-in experience with Column/Row behaviour and parameters, or Modifier.verticalScroll and Modifier.horizontalScroll on your own element. Similarly, ScrollerPosition has been deprecated in favor of ScrollState' ( I400ce , b/157225838 , b/149460415 , b/154105299 )
  • Modifier.draggable and Modifier.scrollable APIs were reworked. DragDirection was removed in favor of Orientation. State required for scrollable has beed simplified. ScrollableState has been renamed to ScrollableController ( Iab63c , b/149460415 )
  • Single-value semantics properties now use a calling style. For example, 'semantics { hidden = true }' is now written as: semantics { hidden() } . ( Ic1afd , b/145951226 , b/145955412 )
  • Corner sizes used by RoundedCornerShape and CutCornerShape can now be larger than 50% ( Id2340 , b/160400213 )
  • Changed the default ContentScale parameter for the Image composable from Inside to Fit. This was done in order to get behavior to scale up the underlying Painter if the layout size is larger than the intrinsic size of the painter while maintaining the aspect ratio. This behavior better matches expectations for providing fixed sizes to the Image while not affecting the default behavior if only the intrinsic size is used to compute the size of the composable. ( I40ae3 , b/159838006 )
  • Use AnimationSpec instead of AnimationBuilder in the top level APIs to clarify the concept of static animation specification -Improve the transition DSL by removing the lambda requirement for creating AnimationSpecs such as tween, spring. They instead take constructor params directly. -Improve the overall ease of use of AnimationSpec opening up constructors instead of relying on builders -Change the duration and delay for KeyFrames and Tween to Int. This eliminates unnecessary type casts and method overloading (for supporting both Long and Int). ( Ica0b4 )
  • Clickable was removed. Use Modifier.clickable ( I84bdf )
  • Added LazyRowItems - Horizontally scrolling analogue of LazyColumnItems ( Ibbcf7 )
  • Introduced low level stateless animation APIs. These APIs ( I63bf7 )
  • androidx.ui.foundation.TextFieldValue and androidx.ui.input.EditorValue is deprecated. TextField, FilledTextField and CoreTextField composables that uses that type is also deprecated. Please use androidx.ui.input.TextFieldValue instead ( I4066d , b/155211005 )
  • Replaced usage of IntPx with Int. Replaced IntPxPosition with IntOffset. Replaced IntPxSize with IntSize. ( Ib7b44 )
  • androidx.ui.foundation.shape.RectangleShape removed; use androidx.ui.graphics.RectangleShape ( I94939 , b/154507984 )
  • In order to consolidate the number of classes used to represent sizing information, standardize on usage of the Size class instead of PxSize. This provides the benefits of an inline class to leverage a long to pack 2 float values to represent width and height represented as floats. ( Ic0191 )
  • In order to consolidate the number of classes used to represent positioning information, standardize on usage of the Offset class instead of PxPosition. This provides the benefits of an inline class to leverage a long to pack 2 float values to represent x and y offsets represented as floats. ( I3ad98 )
  • Added Modifier.zoomable for pinch-to-zoom functionality ( Id5d63 )
  • Toggleable component has been deprecated. Use Modifier.toggleable instead ( I35220 , b/157642842 )
  • MutuallyExclusiveSetItem has been deprecated. Use Modifier.selectable instead. ( I02b47 , b/157642842 )
  • TestTag is now deprecated. Use Modifier.testTag instead. ( If5110 , b/157173105 )
  • Adds fontWeight parameter to Text, which was accidentally not added previously ( I56937 )
  • Replaced usage of Px class in various compose classes as part of the large refactoring effort to only rely on Dp and primitive types for pixel parameters ( I19d02 )
  • VerticalScroller now provides Column out of the box. HorizontalScroller now provides Row out of the box. ( Ieca5d , b/157020670 )
  • Replaced usage of Px class in various compose classes as part of the large refactoring effort to only rely on Dp and primitive types for pixel parameters ( Iede0b )
  • Modifier.indication has been added to foundation package. Use it to show press/drag/other indication on your custom interactable elements ( I8425f , b/155287131 )
  • VerticalScroller and HorizontalScroller now support reversed scrolling is isReversed is set on ScrollerPosition ( I953bd )
  • Support adding composables into text layout. ( I1373c )
  • Consolidated CanvasScope implementations so there is now just DrawScope and ContentDrawScope Renamed CanvasScope to DrawScope. Updated DrawScope to implement Density interface and provide LayoutDirection Deleted DrawScope subclass in ContentDrawScope Painter and PainterModifier have been updated to no longer maintain an RTL property themselves as DrawScope provides this already without manually providing it ( I1798e )
  • Removed deprecated DrawBackground API in favor of drawBackground extension APIs on Modifier. Refactored color, brush and paint drawBackground implementations to reduce code paths as well as remove requirement for Modifier to be created as part of composition. ( I0343a )
  • Updated higher level compose APIs that expose a Canvas to expose CanvasScope instead. This removes the need for consumers to maintain their own Paint objects. For consumers that still require access to a Canvas they can use the drawCanvas extension method which provides a callback to issue drawing commands with the underlying Canvas. ( I80afd )
  • HorizontalScroller and VerticalScroller not restores their scroll position using saved instance state. ( Ia0fae , b/155075048 )
  • FocusManagerAmbient is removed. Use FocusModifier.requestFocus to obtain focus. ( Ic4826 )
  • Table layout was removed temporarily until we will make it available again with a refreshed API. ( Id88a7 )
  • Created CanvasScope API that wraps a Canvas object to expose a stateless, declarative drawing API surface. Transformations are contained within their own receiver scope and sizing information is also scoped to corresponding inset bounds. It does not require a consumer to maintain its own Paint state object for configuring drawing operations.

    Added CanvasScopeSample as well as updated the demo app to include a declarative graphics demo ( Ifd86d )

  • ColoredRect has been removed. User Box with drawBackground modifier instead ( I983c7 , b/152753731 )

  • Add cursor color customisation to the TextField ( I6e33f )

  • Now it is possible to hide/show software keyboard by using SoftwareKeyboardController which is delivered by onTextInputStarted callback ( I8dc44 , b/151860051 )

  • TextFieldValue used with TextField can now be survive activity recreation when used like this: var text by savedInstanceState(saver = TextFieldValue.Saver) { TextFieldValue() } ( I5c3ce , b/155075724 )

  • Adds commonly used parameters to Text(). If you are currently creating a local text style to pass a small number of these parameters, such as Text(style = TextStyle(textAlign = TextAlign.Center)) , you can now just provide the parameters directly: Text(textAlign = TextAlign.Center) ( I82768 )

  • Replaced CoreTextField/TextField focusIdentifier parameter with FocusNode in order to integrate with focus subsystem. ( I7ea48 )

  • TextField update - in horizontal dimension it will occupy all available space granted to it ( Ib08df , b/154638552 )

  • Added InteractionState and Interaction, making it easier to build components that react to UI state changes such as press, and drag ( Icfe25 , b/152525426 )

  • RectangleShape moved from androidx.ui.foundation.shape.* to androidx.ui.graphics.* ( Ia74d5 , b/154507984 )

  • Replaced all nullable Color uses in API with non-nullable and use Color.Unset instead of null ( Iabaa7 )

  • TextField API update - merged onFocus and onBlur callbacks into a single onFocusChange(Boolean) callback with parameter ( I66cd3 )

  • Renamed ScaleFit to ContentScale Moved ContentScale from ui-graphics to ui-core module to live in the same module as the Alignment API. Renamed FillMaxDimension to Crop Renamed FillMinDimension to Fit Renamed Fit to Inside to better match ImageView.ScaleType equivalents Added documentation indicating that the combination of Crop and Alignment.Center achieves the same result as ImageView.ScaleType.CENTER_CROP and Fit used with Alignment.Center achieves the same result as ImageView.ScaleType.FIT_CENTER Inside used with Alignment.Center achieves the same result as ImageView.ScaleType.CENTER_INSIDE ( I45f09 , b/152842521 )

  • Removes ProvideContentColor, instead just use ContentColorAmbient directly with Providers ( Iee942 )

  • Adds color parameter to text, allowing overriding the color of the text style without needing to manually merge with the style provided in a theme. ( I41a66 )

  • Improve DrawModifier API:

    • Made the receiver scope for draw() ContentDrawScope
    • Removed all parameters on draw()
    • DrawScope has same interface as former CanvasScope
    • ContentDrawScope has drawContent() method ( Ibaced , b/152919067 )
  • ColoredRect has been deprecated. Use Box(Modifier.preferredSize(width, height).drawBackground(color)) instead. ( I499fa , b/152753731 )

  • Shape theming system is updated according to the Material design specification. Now you can provide small, medium and large shapes to be used by most of the components ( Ifb4d1 )

  • Replaced Modifier plus operator with factory extension functions ( I225e4 )

  • Draggable has been moved to modifier ( Id9b16 , b/151959544 )

  • Moved Text to androidx.ui.foundation package, from androidx.ui.core. ( I87ce5 )

  • add enabled param to Checkbox, Switch and Toggleable ( I41c16 )

  • Ripple is now a Modifier. While Clickable is not yet converted the recommended usage is Clickable(onClick = { ... }, modifier = ripple()) ( Ie5200 , b/151331852 , b/150060763 )

  • Added VectorPainter API to replace existing subcomposition API for vector graphics. Result of subcomposition is a VectorPainter object instead of a DrawModifier. Deprecated previous DrawVector composables in favor of VectorPainter.

    Renamed Image(Painter) API to PaintBox(Painter) Created Vector composable that behaves like the Image composable except with a VectorAsset instead of an ImageAsset ( I9af9a , b/149030271 )

  • Created Image composable to handle sizing/layout in addition to drawing a given ImageAsset to the screen. This composable also supports drawing any arbitrary Painter instance respecting its intrinsic size as well as supporting a given fixed size or minimum size ( Ibcc8f )

  • Button, FloatingActionButton and Clickable now have a separate enabled param. Some of the params on Button were renamed or reordered. ( I54b5a )

  • Renamed Image to ImageAsset to better differentiate the difference between the Image data and the upcoming Image composable used to participate in layout and draw content.

    Created extension method on android.graphics.Bitmap, Bitmap.asImageAsset() , to create an instance of an ImageAsset useful for combining traditional Android application development with the compose framework. ( Id5bbd )

  • DrawImage composable was removed. Use ImagePainter to draw image on existing layout, or SimpleImage to introduce Image that takes space ( I595e1 , b/149827027 )

  • Stack component supports right-to-left directionality ( Ic9e00 )

  • Added Icon, IconButton and IconToggleButton, removing AppBarIcon. You can directly replace existing usages of AppBarIcon with IconButton, and they will now have the correct touch target. See the samples for usage information, and see Icons for the provided Material Icons you can use directly with these components. ( I96849 )

  • DrawShape composable was removed. Use DrawBackground modifier instead. ( I7ceb2 )

  • Added AdapterList, a scrolling list component that only composes and lays out the visible items. Currently known issues include that it is vertical-only and does not fully handle all cases of changes to its children. ( Ib351b )

  • Scrollable component has been added, which allows creation of custom Scrollers/Lists ( I5fd37 )

  • Renamed background to DrawBackground and make it to be memorized by default ( Ia0bd3 )

  • Add paddings, border, shape and background param to Box ( I05027 , b/148147281 )

  • Added Canvas component. This composable takes up some size (provided by user) and allows you to draw using CanvasScope ( I0d622 )

  • rename Border modifier to DrawBorder ( I8ffcc )

  • Added Box component for combining layout and drawing common functionality. ( I6e2a7 )

  • Scrollers now exhibit native Android fling motion behavior. ( I922af , b/147493715 )

  • Replaced DrawBorder in favor of Border Modifier ( Id335a )

  • Modifier.tag was renamed to Modifier.layoutId, to avoid confusion with Modifier.testTag. ( I995f0 )

  • The percent parameter when creating ConstraintLayout guidelines has been renamed to fraction. ( Ida2db )

  • Added support for margins of ConstraintLayout barriers. ( I47ffe )

  • Fixed RTL support in ConstraintLayout. Added RTL unaware APIs. ( I3b1c7 )

  • A new DSL for ConstraintLayout has been added. Please see the samples for more details. ( Icaa9a )

  • Added the @ExperimentalLayout annotation. ConstraintLayout, FlowRow and FlowColumn are now tagged with it to mark that their APIs are going to change. ( I412a8 )

  • Modifier.padding(InnerPadding) has been added ( I94985 , b/157133803 )

  • Removed deprecated RowAlign, ColumnAlign in Row and Column. ( If60d4 , b/155858731 )

  • Removed deprecated LayoutTag(), please use Modifier.tag() instead. Removed deprecated Modifier.matchParent(), please use Modifier.matchParentSize() instead. ( If8044 )

  • Added the offsetPx layout modifier, which can be used to define (dynamic) offsets in px. ( I5af57 )

  • AlignmentLineOffset composable is deprecated, please use relativePaddingFrom() modifier instead. CenterAlignmentLine composable is removed. ( I60107 )

  • Added defaultMinSizeConstraints layout modifier, which sets size constraints to the wrapped layout only when the incoming corresponding constraints are unspecified (0 for min constraints and infinity for max constraints). ( I311ea , b/150460257 )

  • Container has been removed. Use Box instead ( Ibbc2b , b/151407926 )

  • Removed deprecated LayoutWidth/Height/Size modifiers. ( Ib0bc1 )

  • Added default parameter values for the offset modifier. ( I37f06 )

  • Added symmetric padding modifier. ( I39840 )

  • Removed deprecated LayoutAspectRatio modifier. ( I65a74 )

  • Removed deprecated LayoutAlign modifiers. ( I10877 )

  • Fixed a bug in the width and height modifiers that was causing the wrapped layout to be measured with no opposite axis constraints. ( I210b8 , b/154797971 )

  • Added verticalGravity and horizontalGravity parameters to Row and Column, respectively. ( I7dc5a )

  • Updated wrapContentWidth and wrapContentHeight to expect vertical or horizontal Alignment rather than any Alignment. The gravity modifier was updated to accept vertical or horizontal Alignment. Row, Column and Stack were updated to support custom continuous Alignments. ( Ib0728 )

  • Made Alignment instantiable with arbitrary values. Added 1D Alignments. ( Ia0c05 )

  • Renamed EdgeInsets to InnerPadding. Renamed innerPadding parameter of Material Buttons to paddding. ( I66165 )

  • alignToSiblings now accepts a Measured instead of Placeable. ( I5788d )

  • Added modifiers for sizing to intrinsic measurements and deprecated the components serving this purpose. ( I8295d )

  • Added support for customizing dimensions of children of ConstraintLayout ( Idb1a5 )

  • Removed deprecated Wrap and Center composables. ( I29e23 )

  • Added LayoutModifier2, a new API for defining layout modifiers; deprecated LayoutModifier ( If32ac )

  • RowScope and ColumnScope members are now accessible outside Row and Column. ( I3a641 )

  • Container has been deprecated. Use Box instead. ( I675ce , b/151407926 )

  • Added the LayoutOffset modifier for offsetting layout position ( I0b8a3 )

  • Initial support for Rtl in Compose layout ( Ia5519 )

  • Updated LayoutAlign to not fill the available space anymore ( I2b14f )

  • Removed AspectRatio composable in favor of modifier. Deleted obsolete FlexColumn, FlexRow composables and Spacing modifier ( Iec8a7 )

  • Removed the LayoutInflexible modifier for Row and Column ( I0d820 )

  • Implement Drag Selection Handles to change selection for TextField. ( I27032 )

  • Implements LongPressAndDrag for TextField Selection. ( I17919 )

বাগ ফিক্স

  • FocusModifier is deprecated in favor of Modifier.focus, Modifier.focusRequester, Modifier.focusObserver. FocusState and FocusDetailedState are deprecated in favor of FocusState2 ( I46919 , b/160822875 , b/160922136 )
  • runOnIdleCompose renamed to runOnIdle ( I83607 )
  • Several testing APIs were renamed to be more intuitive. All findXYZ APIs were renamed to onNodeXYZ. All doXYZ APIs were renamed to performXYZ. ( I7f164 )
  • Removes previously deprecated Modifier.ripple. Clickable now uses ripple as the default indication (if you have a MaterialTheme {} set in your application) so in most cases you can just use clickable and get ripple indication for free. If you need to customize the color / size / bounded parameter for the ripple, you can manually create a RippleIndication and pass it to clickable as the indication parameter. ( I663b2 , b/155375067 )
  • Removed obsolete size testing APIs. ( Iba0a0 )
  • Made LayoutNode experimental API ( I4f2e9 )
  • Version 1 of scroll orientation locking is implemented across Compose. ( I1ce7a , b/150289741 )
  • Popups, Dialogs and Menus are now inheriting the contextual MaterialTheme ( Ia3665 , b/156527485 )
  • Removed layout direction parameter from the measure block of the Layout() function. Layout direction is however available inside the callback through the measure scope object ( Ic7d9d )
  • Add AbsoluteArrangement - allows for arrangement of the children inside the Row without automatic mirroring in RTL ( I3a1df )
  • @Untracked annotation has been deprecated. Replace with @ComposableContract(tracked=false) ( Id211e )
  • Prior to this change, the compose compiler plugin would non-trivially intercept calls to constructors inside of a @Composable function if there was an ( I5205a , b/158123804 )
  • Add viewModel() composable which allows to create or get already created ViewModel similarly to how it works in Activity or Fragment ( I5fdd1 )
  • Refactored Radius class to be an inline class. Removed companion creation methods in favor of function constructor with default parameter to have the radius along the y-axis match that of the mandatory x-axis radius parameter.

    Updated DrawScope.drawRoundRect to consume a single Radius parameter instead of 2 separate float values for the radius along the x and y axis ( I46d1b )

  • Replaced usage of Px class in various compose classes as part of the large refactoring effort to only rely on Dp and primitive types for pixel parameters. Deleted Px class in its entirety ( I3ff33 )

  • Replaced usage of Px class in various compose classes as part of the large refactoring effort to only rely on Dp and primitive types for pixel parameters ( I086f4 )

  • Replaced usage of Px class in various compose classes as part of the large refactoring effort to only rely on Dp and primitive types for pixel parameters ( Id3434 )

  • Replaced usage of Px class in various compose classes as part of the large refactoring effort to only rely on Dp and primitive types for pixel parameters ( I97a5a )

  • TextField's cursor has a blinking animation ( Id10a7 )

  • Partial gestures no longer require passing around of a GestureToken ( Id7ae5 )

  • Replaced usage of Px class in various compose classes as part of the large refactoring effort to only rely on Dp and primitive types for pixel parameters ( I57bff )

  • Modifier.semantics has been undeprecated to allow usages for high level components. ( I4cfdc )

  • Rename AnnotatedString.Builder.addAnnotationString to addStringAnnotation. ( I5059e )

  • Updated Alignment API and added support for absolute alignment (which does not auto-mirror in Rtl context) ( I38cd3 )

  • Layout and LayoutModifier children can be measured with a different layout direction. ( Ibd731 )

  • Introduce additional optional rect parameter to ImagePainter to support drawing a subsection of underlying ImageAsset ( I0ea9e )

  • Fixed a crash in AdapterList when removing items ( Ic64b0 , b/153195921 )

  • We changed how we measure the first layout you put inside activity.setContent { } block. Previously it was forced to fill the whole activity screen, and now it behaves as if you put your layout inside a Stack: it can be smaller than a screen and will be positioned in the top left screen. If you want the old behaviour you can apply Modifier.fillMaxSize() for your layout. ( Ie88a7 , b/153453714 )

  • ui-text-compose module is renamed as ui-text. ui-text now contains CoreText and CoreTextField composables ( Ib7d47 )

  • ui-text module is renamed as ui-text-core ( I57dec )

  • Moved ui-framework/CoreText, CoreTextField composables under ui-text-compose. You might want to include ui-text-compose in your project. ( I32042 )

  • runOnIdleCompose and runOnUiThread are now global functions instead of methods on ComposeTestRule. ( Icbe8f )

  • [Mutable]State property delegate operators moved to extensions to support Kotlin 1.4 property delegate optimizations. Callers must add imports to continue using by state { ... } or by mutableStateOf(...) . ( I5312c )

  • DrawLayerModifier and drawLayer() now default clipToBounds and clipToOutline to false. ( I0eb8b , b/152810850 )

  • Renamed LayoutResult to MeasureResult. ( Id8c68 )

  • Deprecated Center composable. It should be replaced either with the LayoutSize.Fill + LayoutAlign.Center modifier, or with one of the Box or Stack composables with suitable modifiers applied ( Idf5e0 )

  • Renamed LayoutFlexible to LayoutWeight. Renamed tight parameter to fill. ( If4738 )

  • DrawVector has been changed from a regular composable function to returning a Modifier drawVector() that will draw the vector as a background to a layout. ( I7b8e0 )

  • Replace composable function Clip with modifier drawClip(). DrawClipToBounds is a convenient modifier to use when you only need to clip to the layer bounds with a rectangle shape. ( If28eb )

  • Replaced DrawShadow composable function with drawShadow() modifier. Shadows are now drawn as part of LayerModifier. ( I0317a )

  • androidx.compose.ViewComposer has been moved to androidx.ui.node.UiComposer androidx.compose.Emittable has been removed. It was redundant with ComponentNode. androidx.compose.ViewAdapters has been removed. They are no longer a supported use case. Compose.composeInto has been deprecated. Use setContent or setViewContent instead. Compose.disposeComposition has been deprecated. Use the dispose method on the Composition returned by setContent instead. androidx.compose.Compose.subcomposeInto has moved to androidx.ui.core.subcomposeInto ComponentNode#emitInsertAt has been renamed to ComponentNode#insertAt ComponentNode#emitRemoveAt has been renamed to ComponentNode#removeAt ComponentNode#emitMode has been renamed to ComponentNode#move ( Idef00 )

  • Deprecated Wrap composable. It can be replaced either with the LayoutAlign modifier or with the Stack composable ( Ib237f )

  • Made the layout direction be propagated from parent layout node to children. Added layout direction modifier. ( I3d955 )

  • Rename Painter.toModifier to Painter.asModifier as the newly created Modifier has a reference to the original Painter that can be shared across multiple Modifier instances ( I7195b )

  • Support right-to-left direction in LayoutPadding modifier ( I9e8da )

  • Density and DensityScope were merged into one interface. Instead of ambientDensity() you can now use DensityAmbient.current. Instead of withDensity(density) just with(density) ( I11cb1 )

  • Removed ValueHolder class. Restructured AnimatedValue, AnimatedFloat classes to make the animation value field abstract so that subclasses can watch the value update.

    • Added model classes for AnimatedValue, AnimatedFloat, etc.
    • Added a new set of light-weight @Composable API for animating between values.
    • ( I79530 )
  • Breaking changes to the ambients API. See log and Ambient<T> documentation for details ( I4c7ee , b/143769776 )

  • Alignment line Int positions returned from Placeable#get(AlignmentLine) are now non-null. If the queried alignment line is missing, AlignmentLine.Unspecified will be returned. ( I896c5 , b/158134875 )

  • Fixed a ConstraintLayout bug causing a crash on recompositions. ( Ibee5a , b/158164341 )

  • WithConstraints trailing lambda API has been changed. Now instead of two params it has a receiver scope which in addition to constraints and layoutDirection provides minWidth, maxWidth, minHeight and maxHeight properties in Dp ( I91b9a , b/149979702 )

  • Renamed LayoutModifier2 to LayoutModifier. ( Id29f3 )

  • Intrinsic measurements functions in Layout and LayoutModifier2 have an IntrinsicMeasureScope receiver now which provides intrinsics query API with implicitly propagated layout direction. ( Id9945 )

  • LayoutDirectionAmbient is deprecated. To read the layout direction defined by the locale, use localeLayoutDirection on ConfigurationAmbient ( I851b1 )

  • Added positionInParent and boundsInParent for LayoutCoordinates. ( Icacdd , b/152735784 )

  • ParentData composable is deprecated. You should either create a modifier which implements ParentDataModifier interface, or use LayoutTag modifier if you simply need to tag layout children to recognize them inside the measure block. ( I51368 , b/150953183 )

  • Add OnPositionedModifier and OnChildPositionedModifier to replace OnPositioned and OnChildPositioned composable functions. ( I2ec8f )

  • Disallow negative padding in LayoutPadding. LayoutOffset should be used instead for negative position offsets. ( Ifb5b1 )

  • WithConstraints got LayoutDirection parameter ( I6d6f7 )

  • Updated the ComposeFlags.COMPOSER_PARAM flag to be true , which will change the code generation strategy for the compose plugin. At a high level, this causes @Composable functions to be generated with an additional synthetic parameter, which is passed through to subsequent @Composable calls in order for the runtime to properly manage execution. This is a significant binary breaking change, however, should preserve source-level compatibility in all sanctioned usage of compose. ( I7971c )

  • Changed LayoutCoordinates to make providedAlignmentLines a Set instead of a Map and have LayoutCoordinates implement the get() operator instead for retrieving a value. This makes it easier for modifiers to modify one or more value of the set without creating a new collection for each modifier. ( I0245a )

  • LayoutCoordinates no longer has a position property. The position property does not make sense when considering LayoutModifiers, rotation, or scaling. Instead, developers should use parentCoordinates and childToLocal() to calculate the transform from one LayoutCoordinate to another.

    LayoutCoordinates uses IntPxSize for the size property instead of PxSize. Layouts use integer pixel sizes for layouts, so all layout sizes should use integers and not floating point values. ( I9367b )

  • Improvements to the API surface of Constraints ( I0fd15 )

  • Added TextDirection.Content ( I48f36 )

  • Ajdust the Toolbar Menu to show copy, cut, paste properly. ( Id3955 )

  • Add FloatingToolbar for TextField Selection. ( Ie8b07 )

  • TextDirectionAlgorithm is renamed as TextDirection ( I75ce8 )

  • TextDirection is renamed as ResolvedTextDirection ( I3ff38 )

  • Add HapticFeedback to TextField Selection. ( I58050 )

  • Add Copy, Cut, and Paste methods to TextField Selection. ( Idb70b )

  • TestTag and Semantics have been deleted. Use Modifier.testTag and Modifier.semantics instead ( I15ff0 , b/158841414 )

  • Changed the package name for Locale and LocaleList from androidx.ui.text to androidx.ui.intl ( I8132c )

  • API change: AnnotatedString(builder: Builder) is renamed to annotatedString(builder: Builder) . ( Ia6377 )

  • API change: AnnotatedString.Item is renamed to AnnotatedString.Range . ( I2d44d )

  • Add Toolbar for text related operations. ( I49d53 )

  • New LifecycleOwnerAmbient is now available. Now an Activity you are using with Compose UI should extend androidx.activity.ComponentActivity (or AppCompatActivity). setContent on android.app.Activity is now deprecated ( Idb25a , b/153141084 )

  • ui-android-text package name (androidx.text) replaced with androidx.ui.text.platform in order to align with androidx policy. ( I42711 )