WWDC 2015
Last night, that was WWDC 2015! A number of new stuff from Apple have been announced.A new Apple TV, a new version of watchOS and a new version of Siri. The most eyes catching things is iPhone 6s. This version has a new color, pink(Rose Gold)! My wife like this color! Moreover, it has a camera which supports 4K video and a faster CPU. It has force touch too, That sounds cool! iPhone 6s is from $649, iPhone 6s is from $749. Another new hardware is iPad Pro, which is a biggest version of iPad,12.1 inch screen and it got a Pen too, the pen calls Apple Pencil. That made drawing easier.
Well, the news make me to consider for buying some new hardware!
Xamarin Error:Failed to load output manifest for actool for the file
I copied over my project from Visual Studio to Xarmarin Studio. Then I got an error with the message:Failed to load output manifest for actool for the file. I tried to modify some files, that doesn't work. I found this way is foolish. Actually, I need to clean my solution file, the error has gone!
Xamarin Tips: Xamarin Forms Checkbox
There are no checkbox controls in Xamarin Forms. You can build the custom components with the custom renderers for this purpose. That is very complex. I chose to use a simpler way, using an Image control and TapGestureRecognizer. If the image is checked, then print the checked image, otherwise, just print an empty square. That is easy.
Code
this.chkbox.GestureRecognizers.Add(new TapGestureRecognizer | |
{ | |
TappedCallback = (v, o) => | |
{ | |
if (!checked) | |
{ | |
chkbox.source = ImageSource.FromFile("checked.png"); | |
checked = true; | |
} else{ | |
chkbox.source = ImageSource.FromFile("unchecked.png"); | |
checked =false; | |
} | |
} |
Xamarin Tips: Visual Studio is not responding after stoping an iOS app.
I found there are a number of times, in Visual Studio, when I stopped an iOS app. My visual studio became not responding and holding up for more than a minute. I found the issue, that may be because of I used a Mac Book and a real PC(not a VM) to build, there may have network issues. The issue is between iOS build host and Visual Studio. After I close iOS Build Host, and open it again, then visual studio is working normally.
Set the Empty view of ListView
I found ListView control in Android is very easy to use, that is very good. Even there is a method to set the empty view, it will display it when the list context is empty.
You put any view in there. I put a LinearView with a Textview. That is easy!
Code
View empty= (View)view.findViewById(android.R.id.empty); | |
mListView.setEmptyView(empty); |
