Archives for: "July 2015"
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… more »
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,… more »
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!… more »
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,… more »
Xamarin : Access style in the code behind
I defined all styles in app.xaml, which is a kind of css style and that is the centralised place to manage the look and feel. I think that is a good practice. That is no problems to access the style across other xaml file. But in code behind, how do I… more »
The Event in Fragment should be triggered when the fragment go to sleep
If you wish to do some actions, such as auto save, when the user go to other app, therefore the user put your app in a sleep mode at the background
You must override the onPause() method like below: more »
Disable Scroll Bar in ListView
I am building an app which has a number of listviews, for some phone it will be longer than its screen. So a global scroll bar are required. However, the listview has their own scrollbar bar, It will make scrolling some strange! Thus, I need to disable… more »
Stay in Android Studio 1.2, and keep away from 1.3 preview
At first, I upgrade my android studio to 1.3 preview from 0.8.6. I have not upgrade for ages, that is good to have the newest version. I have used their beta version for a while, android studio doesn't sound too bad even the version is still in beta.… more »
Android Studio Error :appcompat-v7:21.0.0': No resource found that matches the given name: attr "adnroid;XXXX"
After I upgraded my android studio from 0.86 and 1.2. I tried to build my project, I got a lot of errors like appcompat-v7:21.0.0': No resource found that matches the given name: attr: android :xxxx" Actually, that is because appcompat-v7:21.0.0'… more »