Resize & round corners on a placeholder interstitial image

This isn't a real image yet (just draws a diagonal gradient), but should now be roughly ready for inserting the correct drawables based on the mode whenever those are available.

Bug: 332730534
Test: manual, SetupInterstitialActivityTest
Flag: android.app.modes_ui
Change-Id: I45a78950f671a989258a85525a7a8ee0c445a332
This commit is contained in:
Yuri Lin
2024-07-25 18:07:51 -04:00
parent 65548c0e56
commit cb824ccbd9
5 changed files with 274 additions and 10 deletions

View File

@@ -98,15 +98,28 @@
android:orientation="vertical"
app:layout_constraintGuide_percent="0.5" />
<ImageView
android:id="@+id/image"
<FrameLayout
android:id="@+id/image_frame"
android:layout_height="0dp"
android:layout_width="0dp"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@+id/guideline"
app:layout_constraintEnd_toEndOf="parent"
android:paddingStart="12dp" />
android:paddingHorizontal="12dp">
<ImageView
android:id="@+id/image"
android:clickable="false"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:adjustViewBounds="true"
android:scaleType="centerCrop"
android:layout_gravity="center" />
</FrameLayout>
/>
</androidx.constraintlayout.widget.ConstraintLayout>