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); |
Using NUC to be a developer box
I am considering to get a Developer PC for myself. I did some traveling from time to time. Mainly, they are traveling my home in Brisbane to my home in Hong Kong. That is no troubles to get the keyboard and monitor, even I can get a think client. Thus, I am thinking to get a INTEL NUC which is not big and not heavy at all. That is similar form factor of mac mini, which is easy to carry around. Moreover, that is much cheaper than a laptop.
I got a supplier can do that for me too, It can get Core i7 and 16 GB with 240GB SSD in a reasonable price.
But that is not a normal way, the most of people will get a laptop. Am I too crazy?