1
+ /*
2
+ * Copyright 2024 The Android Open Source Project
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
1
17
@file:OptIn(ExperimentalSharedTransitionApi ::class )
2
18
@file:Suppress(" unused" )
3
19
@@ -173,10 +189,10 @@ private class SharedElementBasicUsage1 {
173
189
// [START_EXCLUDE]
174
190
Text (
175
191
" Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur sit amet lobortis velit. " +
176
- " Lorem ipsum dolor sit amet, consectetur adipiscing elit." +
177
- " Curabitur sagittis, lectus posuere imperdiet facilisis, nibh massa " +
178
- " molestie est, quis dapibus orci ligula non magna. Pellentesque rhoncus " +
179
- " hendrerit massa quis ultricies. Curabitur congue ullamcorper leo, at maximus"
192
+ " Lorem ipsum dolor sit amet, consectetur adipiscing elit." +
193
+ " Curabitur sagittis, lectus posuere imperdiet facilisis, nibh massa " +
194
+ " molestie est, quis dapibus orci ligula non magna. Pellentesque rhoncus " +
195
+ " hendrerit massa quis ultricies. Curabitur congue ullamcorper leo, at maximus"
180
196
)
181
197
// [END_EXCLUDE]
182
198
}
@@ -280,10 +296,10 @@ private class SharedElementBasicUsage2 {
280
296
// [START_EXCLUDE]
281
297
Text (
282
298
" Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur sit amet lobortis velit. " +
283
- " Lorem ipsum dolor sit amet, consectetur adipiscing elit." +
284
- " Curabitur sagittis, lectus posuere imperdiet facilisis, nibh massa " +
285
- " molestie est, quis dapibus orci ligula non magna. Pellentesque rhoncus " +
286
- " hendrerit massa quis ultricies. Curabitur congue ullamcorper leo, at maximus"
299
+ " Lorem ipsum dolor sit amet, consectetur adipiscing elit." +
300
+ " Curabitur sagittis, lectus posuere imperdiet facilisis, nibh massa " +
301
+ " molestie est, quis dapibus orci ligula non magna. Pellentesque rhoncus " +
302
+ " hendrerit massa quis ultricies. Curabitur congue ullamcorper leo, at maximus"
287
303
)
288
304
// [END_EXCLUDE]
289
305
}
@@ -410,10 +426,10 @@ private class SharedElementBasicUsage3 {
410
426
// [START_EXCLUDE]
411
427
Text (
412
428
" Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur sit amet lobortis velit. " +
413
- " Lorem ipsum dolor sit amet, consectetur adipiscing elit." +
414
- " Curabitur sagittis, lectus posuere imperdiet facilisis, nibh massa " +
415
- " molestie est, quis dapibus orci ligula non magna. Pellentesque rhoncus " +
416
- " hendrerit massa quis ultricies. Curabitur congue ullamcorper leo, at maximus"
429
+ " Lorem ipsum dolor sit amet, consectetur adipiscing elit." +
430
+ " Curabitur sagittis, lectus posuere imperdiet facilisis, nibh massa " +
431
+ " molestie est, quis dapibus orci ligula non magna. Pellentesque rhoncus " +
432
+ " hendrerit massa quis ultricies. Curabitur congue ullamcorper leo, at maximus"
417
433
)
418
434
// [END_EXCLUDE]
419
435
}
@@ -557,10 +573,10 @@ private class SharedElementBasicUsage4 {
557
573
)
558
574
Text (
559
575
" Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur sit amet lobortis velit. " +
560
- " Lorem ipsum dolor sit amet, consectetur adipiscing elit." +
561
- " Curabitur sagittis, lectus posuere imperdiet facilisis, nibh massa " +
562
- " molestie est, quis dapibus orci ligula non magna. Pellentesque rhoncus " +
563
- " hendrerit massa quis ultricies. Curabitur congue ullamcorper leo, at maximus"
576
+ " Lorem ipsum dolor sit amet, consectetur adipiscing elit." +
577
+ " Curabitur sagittis, lectus posuere imperdiet facilisis, nibh massa " +
578
+ " molestie est, quis dapibus orci ligula non magna. Pellentesque rhoncus " +
579
+ " hendrerit massa quis ultricies. Curabitur congue ullamcorper leo, at maximus"
564
580
)
565
581
// [END_EXCLUDE]
566
582
}
@@ -722,10 +738,10 @@ private class SharedElementBoundsTransform {
722
738
)
723
739
Text (
724
740
" Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur sit amet lobortis velit. " +
725
- " Lorem ipsum dolor sit amet, consectetur adipiscing elit." +
726
- " Curabitur sagittis, lectus posuere imperdiet facilisis, nibh massa " +
727
- " molestie est, quis dapibus orci ligula non magna. Pellentesque rhoncus " +
728
- " hendrerit massa quis ultricies. Curabitur congue ullamcorper leo, at maximus"
741
+ " Lorem ipsum dolor sit amet, consectetur adipiscing elit." +
742
+ " Curabitur sagittis, lectus posuere imperdiet facilisis, nibh massa " +
743
+ " molestie est, quis dapibus orci ligula non magna. Pellentesque rhoncus " +
744
+ " hendrerit massa quis ultricies. Curabitur congue ullamcorper leo, at maximus"
729
745
)
730
746
}
731
747
}
@@ -776,7 +792,7 @@ private fun SharedElement_Clipping() {
776
792
rememberSharedContentState(key = " title" ),
777
793
animatedVisibilityScope = this @AnimatedContent,
778
794
779
- )
795
+ )
780
796
)
781
797
}
782
798
} else {
@@ -814,10 +830,10 @@ private fun SharedElement_Clipping() {
814
830
)
815
831
Text (
816
832
" Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur sit amet lobortis velit. " +
817
- " Lorem ipsum dolor sit amet, consectetur adipiscing elit." +
818
- " Curabitur sagittis, lectus posuere imperdiet facilisis, nibh massa " +
819
- " molestie est, quis dapibus orci ligula non magna. Pellentesque rhoncus " +
820
- " hendrerit massa quis ultricies. Curabitur congue ullamcorper leo, at maximus"
833
+ " Lorem ipsum dolor sit amet, consectetur adipiscing elit." +
834
+ " Curabitur sagittis, lectus posuere imperdiet facilisis, nibh massa " +
835
+ " molestie est, quis dapibus orci ligula non magna. Pellentesque rhoncus " +
836
+ " hendrerit massa quis ultricies. Curabitur congue ullamcorper leo, at maximus"
821
837
)
822
838
}
823
839
}
@@ -1456,4 +1472,4 @@ fun PlaceholderSizeAnimated_Demo() {
1456
1472
}
1457
1473
}
1458
1474
// [END android_compose_shared_element_placeholder_size]
1459
- }
1475
+ }
0 commit comments