var upArrow = Resources.GetDrawable(Resource.Drawable.abc_ic_ab_back_material); upArrow.SetColorFilter(Resources.GetColor(Android.Resource.Color.White), PorterDuff.Mode.SrcIn); SupportActionBar.SetHomeAsUpIndicator(upArrow);
The code above does not change the color of the arrow. The value of upArrow ColorFilter is null. What should be the reason for this? I do not ask how to change the drop-down color. My question is why the above code cannot set the color filter? Below is the MainActivity code.
public class MvxFormsApplicationActivity : FormsAppCompatActivity { protected override void OnCreate(Bundle bundle) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(bundle); Xamarin.Forms.Forms.Init(this, bundle); ;
source share