Skip to content

Commit

Permalink
round images for profile pics
Browse files Browse the repository at this point in the history
  • Loading branch information
sds100 committed Jun 30, 2024
1 parent b114870 commit 8e5d7e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/main/res/layout/list_item_about_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
tools:visibility="visible" />
</LinearLayout>

<androidx.appcompat.widget.AppCompatImageView
<com.google.android.material.imageview.ShapeableImageView
android:id="@+id/imageView"
android:layout_width="40dp"
android:layout_height="40dp"
Expand All @@ -72,6 +72,7 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@id/layoutDescription"
app:layout_constraintVertical_bias="0.0"
app:shapeAppearanceOverlay="@style/circularImageView"
tools:srcCompat="@mipmap/ic_launcher"
tools:visibility="visible" />

Expand Down
4 changes: 4 additions & 0 deletions app/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
<item name="colorPrimaryInverse">@color/md_theme_primaryInverse</item>
</style>

<style name="circularImageView" parent="">
<item name="cornerSize">50%</item>
</style>

<style name="Theme.App.Starting" parent="Theme.SplashScreen">
<item name="windowSplashScreenBackground">?android:colorBackground</item>
<item name="windowSplashScreenAnimatedIcon">@drawable/ic_launcher_foreground</item>
Expand Down

0 comments on commit 8e5d7e2

Please sign in to comment.