Skip to content

Commit

Permalink
fix main intro image on android 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jamie-mh committed Nov 12, 2024
1 parent 3bbaeac commit 92f8191
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Stratum.Droid/Resources/layout/fragmentIntroPage.axml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
android:layout_width="0dp"
android:layout_height="wrap_content">

<ImageView
<androidx.appcompat.widget.AppCompatImageView
android:layout_width="64dp"
android:layout_height="64dp"
android:layout_gravity="center"
android:id="@+id/image"
android:src="@drawable/big_ic_logo"/>
app:srcCompat="@drawable/big_ic_logo"/>

<com.google.android.material.textview.MaterialTextView
android:layout_width="wrap_content"
Expand Down
4 changes: 2 additions & 2 deletions Stratum.Droid/src/Interface/Fragment/IntroPageFragment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using Android.OS;
using Android.Views;
using Android.Widget;
using AndroidX.AppCompat.Widget;
using Google.Android.Material.TextView;

namespace Stratum.Droid.Interface.Fragment
Expand All @@ -24,7 +24,7 @@ public override View OnCreateView(LayoutInflater inflater, ViewGroup container,

var summary = view.FindViewById<MaterialTextView>(Resource.Id.textSummary);
var title = view.FindViewById<MaterialTextView>(Resource.Id.textTitle);
var image = view.FindViewById<ImageView>(Resource.Id.image);
var image = view.FindViewById<AppCompatImageView>(Resource.Id.image);

title.Text = Resources.GetStringArray(Resource.Array.introTitle)[_position];
summary.Text = Resources.GetStringArray(Resource.Array.introSummary)[_position];
Expand Down

0 comments on commit 92f8191

Please sign in to comment.