Saturday, March 14, 2020

How to change Xamarin Android/IOS Application Name ?

Right click on your project-Android -> Options -> Android Application ->  Change application name.  Then rebuild
If it didn't change then go to MainActivity.cs
[Activity(Label = "ProjectName", Icon = "@mipmap/iconname", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]


IOS:
Go open info.plist then change Application name


Rebuild- then Run again 

How to change app icon from Xamarin's pre-made app icon to your app icon?

I've read a lot of tutorials on how to change the image to my app icon. Others said put the images in all drawables folders.  So I did that and the image is blurry.  I read that drawables are for images used in application and mipmaps are for launcher icon(it is the app's icon image). I copied the image to all mipmaps and still blurry.  So then I read to delete and mipmap folder with v26 on it. I deleted it and now the app icon is not blurry.

Thursday, August 29, 2019

Trying to ouput in pdf what i have in listview

This is what i have in listview from post.cs

It is making me a new list
What i want in PDF



Tuesday, July 30, 2019

Setting time format

https://docs.microsoft.com/en-us/dotnet/standard/base-types/custom-date-and-time-format-strings


if you want a constantly updating time, use a Timer
System.Timers.Timer timer = new System.Timers.Timer(1000);
timer.Elapsed += TimerElapsed;
timer.AutoReset = true;
timer.Start();

private void TimerElapsed(Object source, ElapsedEventArgs e)
{
    myLabel.Text = e.SignalTime.ToString();
}
if you want to use databinding, have your elapsed event update the ViewModel property that your label is bound to instead of directly updating the Label

  • If you type string currentDate = DateTime.Now.ToString()

Friday, May 24, 2019

If Previewer not showing

Right click on .Android solution- Options-Androidapplication-then make sure minimum target coincides with SDK manager installed under Tools.