Tag Archives: shapes

How to fill and stroke basic shapes in swiftUI?

By | October 9, 2024

In latest iOS versions ( ios 17 onwards) we can directly put stroke and fill shapes just by adding modifiers one after another as shown below. It works with multiple strokes of various sizes as shown below. In older versions of iOS ( iOS 16 ) SwiftUI provides the fill(), stroke(), and strokeBorder() modifiers for adjusting the way we… Read More »

Best Coding Practices in Android – Part 2

By | December 30, 2017

You can read the First Article about Best Coding Practices in Android here. Re-Use Elements and Layouts Use for reusing layouts. You can read about this from here. Use Different resources for different density Screens. Properly organize your images in mdpi, hdpi,xhdpi etc folders for corresponding screens. This helps to prevent blurry images. Read more… Read More »

Using a ListBox, Dynamically adding contents to a listbox in Windows Phone

By | June 29, 2013

This post shows how to add string objects to a ListBox Control in Windows Phone. Make sure to choose a C# template for the project. This is the layout . This is the complete Layout Just change the class name in the root of the layout to yours. Now we will look at the code.

Saving Key-Value pair in Windows Phone using IsolatedStorageSettings

By | April 22, 2012

This sample code helps you to save a key and a corresponding value in windows Phone inside your application sandbox with the help of isolatedStorageSettings. PLease check this post before working around this post. How to save a text file in Windows Phone 7 or How to use isolated storage settings in Windows Phone 7?… Read More »

Page Navigation in Windows Phone

By | March 16, 2012

Hello everyone… This is my first post on windows phone. I have just started windows mobile programming. In this post I will show you how to go from one Page to another in windows. First I am creating a C# project and in the MainPage.xaml Open the phone interface and then drag a button into… Read More »

How to use shapes in android? A simple example.

By | June 4, 2012

In android with shapes we can create beautiful layouts. Lets look at an example. Create an xml named “gradient.xml” in your drawable folder and copy this code into it. Now the main layout file main.xml The main java file. Done. You can now run the application.