Permalink
Browse files

Mostly formatting fixes. removing ide switcher from recipes

  • Loading branch information...
asb3993 committed Mar 29, 2018
1 parent cc6defb commit 6ea126936a43cc8b71f809c08a3e7136c28328e7
Showing with 219 additions and 257 deletions.
  1. +35 −35 Recipes/android/data/contentproviders/update_the_users_profile/README.md
  2. +17 −20 Recipes/android/general/projects/add_permissions_to_android_manifest/README.md
  3. +15 −21 Recipes/android/general/projects/create_an_android_project/README.md
  4. +11 −17 Recipes/android/general/projects/specify_default_namespace/README.md
  5. +1 −1 Recipes/android/media/video/play_video/README.md
  6. +1 −1 Recipes/android/other_ux/animation/README.md
  7. +2 −2 Recipes/android/other_ux/drawing/blur_an_image_with_managed_code/README.md
  8. +1 −1 Recipes/android/other_ux/drawing/blur_an_image_with_renderscript/README.md
  9. +28 −15 Recipes/cross-platform/app-links/app-links-ios/README.md
  10. +2 −2 Recipes/cross-platform/ide/debugging/output_information_to_log_window/README.md
  11. +5 −5 Recipes/cross-platform/ide/debugging/set_a_breakpoint/README.md
  12. +1 −1 Recipes/cross-platform/networking/download_progress/README.md
  13. +1 −1 Recipes/ios/content_controls/map_view/add_an_annotation_to_a_map/README.md
  14. +33 −41 Recipes/ios/content_controls/tables/custom-tableviewcell/README.md
  15. +14 −22 Recipes/ios/general/projects/create_an_ios_project/README.md
  16. +14 −16 Recipes/ios/general/projects/specify_default_root_namespace/README.md
  17. +6 −6 Recipes/ios/general/storyboard/storyboard_a_tableview/README.md
  18. +7 −7 Recipes/ios/general/storyboard/unwind_segue/README.md
  19. +15 −33 Recipes/ios/general/templates/using_the_ios_view_xib_template/README.md
  20. +1 −1 Recipes/ios/multitasking/check_background_refresh_setting/README.md
  21. +1 −1 Recipes/ios/multitasking/geofencing/README.md
  22. +3 −3 Recipes/ios/multitasking/test_location_changes_in_simulator/README.md
  23. +1 −1 Recipes/ios/multitasking/track_significant_location_change/README.md
  24. +1 −1 Recipes/ios/standard_controls/text_field/validate_input/README.md
  25. +1 −1 Recipes/xamarin-forms/Controls/listview-hide-separator-line/README.md
  26. +2 −2 Recipes/xamarin-forms/iOS/add-done-to-keyboard/README.md
@@ -33,32 +33,32 @@ version) to create the user profile:
In Android 4.x (Ice Cream Sandwich):
- Start the **People** app.
- Tap <span class="uiitem">Create a new contact</span>.
- Tap <span class="uiitem">Keep local</span>.
- Tap **Create a new contact**.
- Tap **Keep local**.
- Enter a name for a temporary user, such as "Temp".
- Tap the check mark next to <span class="uiitem">Done</span>.
- Tap the check mark next to **Done**.
- Tap the back arrow in the upper left hand corner of the screen.
- Tap <span class="uiitem">Set up my profile</span> (under the
- Tap **Set up my profile** (under the
**ME** heading).
- Under <span class="uiitem">My local profile</span>, enter your
- Under **My local profile**, enter your
name and, optionally, a phone
number and email address.
- Tap the check mark next to <span class="uiitem">Done</span>.
- Tap the check mark next to **Done**.
In Android 5.x (Lollipop):
- Start the **Contacts** app.
- Tap <span class="uiitem">CREATE A NEW CONTACT</span>.
- Tap <span class="uiitem">KEEP LOCAL</span>.
- Tap **CREATE A NEW CONTACT**.
- Tap **KEEP LOCAL**.
- Enter a name for a temporary user, such as "Temp".
- Tap the check mark next to <span class="uiitem">Add new contact</span>.
- Tap the check mark next to **Add new contact**.
- Click the back button.
- Tap <span class="uiitem">Set up my profile</span> (next to the
- Tap **Set up my profile** (next to the
**ME** heading).
- Under <span class="uiitem">My local profile</span>, enter your
- Under **My local profile**, enter your
name and, optionally, a phone
number and email address.
- Tap the check mark next to <span class="uiitem">Add new contact</span>.
- Tap the check mark next to **Add new contact**.
To update and query the user profile, follow these steps:
@@ -70,19 +70,19 @@ To update and query the user profile, follow these steps:
(For more information about Android version settings, see
[Understanding Android API levels](https://developer.xamarin.com/guides/android/application_fundamentals/understanding_android_api_levels/).)
In Visual Studio, open the project properties in
<span class="uiitem">Solution Explorer</span> and select the <span
class="uiitem">Application</span> page. In the drop-down menu under
<span class="uiitem">Minimum Android to target</span> you can
**Solution Explorer** and select the <span
class="uiitem">Application** page. In the drop-down menu under
**Minimum Android to target** you can
select the minimum Android version for your project:
![](Images/vs-minimum.png)
In Visual Studio for Mac, click the gray gear icon to the right of the
project and select <span class="uiitem">Options</span>; this opens
the <span class="uiitem">Project Options</span> dialog. Click <span
class="uiitem">Build > Android Application</span>. Using the
drop-down menu to the right of <span class="uiitem">Minimum Android
version</span>, you can set the minimum Android version for your
project and select **Options**; this opens
the **Project Options** dialog. Click <span
class="uiitem">Build > Android Application**. Using the
drop-down menu to the right of **Minimum Android
version**, you can set the minimum Android version for your
project:
![](Images/xs-minimum.png)
@@ -91,46 +91,46 @@ To update and query the user profile, follow these steps:
- Set the target framework to API level 15 or
later. In our example, we have it set to Android 5.0 (API level
21). In Visual Studio, go to the project's <span
class="uiitem">Application</span> page. Set the target framework by
class="uiitem">Application** page. Set the target framework by
selecting the API level in the drop-down menu under <span
class="uiitem">Compile using Android version</span>:
class="uiitem">Compile using Android version**:
![](Images/vs-target.png)
In Visual Studio for Mac, open the <span class="uiitem">Project
Options</span> dialog. In this dialog, click <span
class="uiitem">Build > General</span>. Set the target framework by
In Visual Studio for Mac, open the **Project
Options** dialog. In this dialog, click <span
class="uiitem">Build > General**. Set the target framework by
selecting the API level in the drop-down menu to the right of <span
class="uiitem">Target framework</span>:
class="uiitem">Target framework**:
![](Images/xs-target.png)
- Add permissions to the Android manifest that enables the app to
read and write contacts as well as read and write profile data.
In Visual Studio, open the project properties in <span
class="uiitem">Solution Explorer</span> and select the <span
class="uiitem">Android Manifest</span> page:
class="uiitem">Solution Explorer** and select the <span
class="uiitem">Android Manifest** page:
![](Images/vs-manifest.png)
Enable the following permissions under <span
class="uiitem">Required permissions</span>:
class="uiitem">Required permissions**:
- **READ_CONTACTS**
- **READ_PROFILE**
- **WRITE_CONTACTS**
- **WRITE_PROFILE**
In Visual Studio for Mac, click the gray gear icon to the right of the
project and select <span class="uiitem">Options</span>; this opens
the <span class="uiitem">Project Options</span> dialog. Click <span
class="uiitem">Build > Android Application</span>:
project and select **Options**; this opens
the **Project Options** dialog. Click <span
class="uiitem">Build > Android Application**:
![](Images/xs-manifest.png)
Enable the following permissions in the <span
class="uiitem">Required permissions</span> section:
class="uiitem">Required permissions** section:
- **ReadContacts**
- **ReadProfile**
@@ -244,8 +244,8 @@ button.Click += delegate {
};
```
- Build and run the app; it displays an <span class="uiitem">UPDATE
PROFILE</span> button as seen below in the screenshot on the left. When
- Build and run the app; it displays an **UPDATE
PROFILE** button as seen below in the screenshot on the left. When
we tap this button to cause the button click handler to run, the
following sequence takes place:
- The call to `NameOwner` updates the profile's display
@@ -4,30 +4,27 @@ title: "Add Permissions to Android Manifest"
brief: "This recipe shows how to add permissions to the Android Manifest (Manifest.xml)."
---
<a name="Recipe" class="injected"></a>
# Recipe
To edit Android Manifest permissions for your project:
<ide name="vs">
<ol>
<li>Right-click on your android project and select <span class="UIItem">Properties</span>.</li>
<li>Select <span class="UIItem">Android Manifest</span> in the window that opens.</li>
<li>Check the permissions that you want to require in the list of permissions.</li>
</ol>
<img src="Images/vis.png" />
</ide>
<ide name="xs">
<ol>
<li>Right-click on your android project and select <span class="UIItem">Options</span>.</li>
<li>Select <span class="UIItem">Android Application</span> in the window that opens.</li>
<li>Check the permissions that you want to require in the list of permissions.</li>
</ol>
<img src="Images/xam.png" />
</ide>
<a name="Additional_Information" class="injected"></a>
## Visual Studio
1. Right-click on your android project and select <span class="UIItem">**Properties**</span>.
2. Select <span class="UIItem">**Android Manifest**</span> in the window that opens.
3. Check the permissions that you want to require in the list of permissions.
![](Images/vis.png)
## Visual Studio for Mac
1. Right-click on your android project and select <span class="UIItem">**Options**</span>.
2. Select <span class="UIItem">**Android Application**</span> in the window that opens.
3. Check the permissions that you want to require in the list of permissions.
![](Images/xam.png)
# Additional Information
@@ -7,30 +7,24 @@ article:
url: https://developer.xamarin.com/guides/android/getting_started/hello,_world
---
<a name="Recipe" class="injected"></a>
# Recipe
<ide name="xs">
<ol>
<li>First, launch Visual Studio for Mac and click on <span class="UIItem">New...</span> in the top
left corner: <img src="Images/project_00.png"</li>
<li>A window will pop up with a list of options for the types of projects
available to you. To create an Android project, select the Android>App category to open up
the available sub-categories, then choose Android App: <img src="Images/android_project_01.png" /></li>
<li>Choose a sensible name for your app and choose development targets: <img src="Images/app_name.png" /></li>
<li>Choose a project name, then click <span class="UIItem">OK</span>:<br /> <img src="Images/project_name.png" /></li>
<li>Visual Studio for Mac will create and populate a new project for you: <img src="Images/android_project_02.png" /></li>
</ol>
</ide>
<ide name="vs">
<ol>
<li>First, launch Visual Studio and click on <span class="UIItem">New Project...</span> in the top
left corner: <img src="Images/project_00_vs.png"</li>
<li>A window will pop up with a list of options for the types of projects
available to you. To create an Android project, select the Android then <span class="UIItem">Blank App (Android)</span>. Enter a project name: <img src="Images/android_project_01_vs.png" /></li>
<li>Visual Studio will create and populate a new project for you: <img src="Images/android_project_02_vs.png" /></li>
</ol>
## Visual Studio for Mac
1. First, launch Visual Studio for Mac and click on <span class="UIItem">**New...**</span> in the top left corner: ![](Images/project_00.png)
2. A window will pop up with a list of options for the types of projects available to you. To create an Android project, select the Android>App category to open up the available sub-categories, then choose Android App: ![](Images/android_project_01.png)
3. Choose a sensible name for your app and choose development targets: ![](Images/app_name.png)
4. Choose a project name, then click <span class="UIItem">**OK**</span>:
![](Images/project_name.png)
5. Visual Studio for Mac will create and populate a new project for you: ![](Images/android_project_02.png)
## Visual Studio
1. First, launch Visual Studio and click on <span class="UIItem">**New Project...**</span> in the top left corner: ![](Images/project_00_vs.png)
2. A window will pop up with a list of options for the types of projects available to you. To create an Android project, select the Android then <span class="UIItem">**Blank App (Android)**</span>. Enter a project name: ![](Images/android_project_01_vs.png)
3. Visual Studio will create and populate a new project for you: ![](Images/android_project_02_vs.png)
</ide>
## Additional Information
@@ -4,26 +4,20 @@ title: "Specify Default Namespace"
brief: "This recipe shows where to set the default namespace for a project."
---
<a name="Recipe" class="injected"></a>
# Recipe
<ide name="xs">
<ol>
<li>Double click on the project in the <span class="UIItem">Solution Pad</span>, or right-click on the project and select <span class="UIItem">Options</span>: <img src="Images/DefaultNamespace1.png" /></li>
<li>Choose main settings and you'll be able to edit the default namespace: <img src="Images/DefaultNamespace4.png" /></li>
<li>This value will be automatically set as the root namespace in each new code file you create in your project.</li>
</ol>
</ide>
<ide name="vs">
<ol>
<li>Open the project <span class="UIItem">Properties</span>, and then choose the <span class="UIItem">Application</span> panel: <img src="Images/DefaultNamespace3.png" /></li>
<li>This value will be automatically set as the root namespace in each new code file you create in your project.</li>
</ol>
</ide>
<a name="Additional_Information" class="injected"></a>
## Visual Studio for Mac
1. Double click on the project in the <span class="UIItem">**Solution Pad**</span>, or right-click on the project and select <span class="UIItem">**Options**</span>: ![](Images/DefaultNamespace1.png)
2. Choose main settings and you'll be able to edit the default namespace: ![](Images/DefaultNamespace4.png)
3. This value will be automatically set as the root namespace in each new code file you create in your project.
## Visual Studio
1. Open the project <span class="UIItem">**Properties**</span>, and then choose the <span class="UIItem">**Application**</span> panel: ![](Images/DefaultNamespace3.png)
2. This value will be automatically set as the root namespace in each new code file you create in your project.
# Additional Information
@@ -58,7 +58,7 @@ videoView.Start ();
```
<ol start="6">
<li>Under <span class="UIItem">Project Options</span>, add an Android Manifest. Under Required permissions set the <code>INTERNET</code> permission and press <span class="UIItem">OK</span>.</li>
<li>Under **Project Options**, add an Android Manifest. Under Required permissions set the <code>INTERNET</code> permission and press **OK**.</li>
</ol>
<a name="Additional_Information" class="injected"></a>
@@ -7,6 +7,6 @@ Android provides support for animating properties of any type as well as animati
[ ![](Images/screen2.png)](Images/screen2.png)
- <span class="noChildren"><a href="/Recipes/android/other_ux/animation/frame_animation">Frame Animation</a></span>
- <span class="noChildren"><a href="/Recipes/android/other_ux/animation/frame_animation">Frame Animation</a>**
- <span class="noChildren"><a href="/Recipes/android/other_ux/animation/rotate_animation">Rotate Animation</a></span>
- <span class="noChildren"><a href="/Recipes/android/other_ux/animation/animate_listview_deletion">Animate ListView Deletion</a></span>
@@ -28,7 +28,7 @@ The `GetBlurredBitmap` method will take a single `Android.Graphics.Bitmap` insta
This code is a compromise between a Gaussian blur and a Box blur. The algorithm works by creating a moving stack of colors while scanning through the image. This "tower" controls the weights of the single pixels within the convolution kernel and gives the pixel in the center the highest weight.
When the user clicks on the <span class="uiitem">Load Blurred Image</span> button the application will load a bitmap, scale it a size that is appropriate for the device, and then apply a Gaussian blur to it. Blurring the image takes a noticeable amount of time (approximately 6 seconds on a Nexus 5), so the work is performed on a background thread. After the image is blurred it is displayed to the user, as demonstrated in the following screenshots:
When the user clicks on the **Load Blurred Image** button the application will load a bitmap, scale it a size that is appropriate for the device, and then apply a Gaussian blur to it. Blurring the image takes a noticeable amount of time (approximately 6 seconds on a Nexus 5), so the work is performed on a background thread. After the image is blurred it is displayed to the user, as demonstrated in the following screenshots:
![](Images/image00.png) ![](Images/image01.png)
@@ -37,7 +37,7 @@ When the user clicks on the <span class="uiitem">Load Blurred Image</span> butto
# Recipe
The event handler for the <span class="uiitem">Load Blurred Image</span> button is shown in the following code snippet:
The event handler for the **Load Blurred Image** button is shown in the following code snippet:
```
_blurImageButton.Click += async delegate{
@@ -24,7 +24,7 @@ This recipe shows one way to blur an image using an API that was introduced in A
The recipe [Blur an Image with Managed Code]() is a example of how to apply a blur effect on all Android API levels.
This application will display a picture and a [SeekBar](http://developer.android.com/reference/android/widget/SeekBar.html).
The value of the <span class="uiitem">SeekBar</span> will determine how much the image should be blurred. You can see
The value of the **SeekBar** will determine how much the image should be blurred. You can see
this application running in the following screenshots:
![](Images/image01.png) ![](Images/image03.png)
@@ -52,21 +52,34 @@ Rivets.AppLinks.Navigator.Navigate(&quot;http://any.old.url&quot;)
- Install the [Rivets](https://www.nuget.org/packages/Rivets/) package from
the NuGet Gallery if you have not already done so.
- <ide name="xs">Open your app&#39;s `Info.plist` file, and under the **Advanced** tab, in the **URL Types** section, add a new URL Type like:<br/> ![Image of Info.plist configuration](Images/app-links-incoming-ios-infoplist.png)</ide><ide name="vs">Manually edit your <code>Info.plist</code> file and add the following section:<br/><pre><code>
&lt;key&gt;CFBundleURLTypes&lt;/key&gt;
&lt;array&gt;
&lt;dict&gt;
&lt;key&gt;CFBundleURLName&lt;/key&gt;
&lt;string&gt;com.example.store&lt;/string&gt;
&lt;key&gt;CFBundleURLTypes&lt;/key&gt;
&lt;string&gt;Viewer&lt;/string&gt;
&lt;key&gt;CFBundleURLSchemes&lt;/key&gt;
&lt;array&gt;
&lt;string&gt;example&lt;/string&gt;
&lt;/array&gt;
&lt;/dict&gt;
&lt;/array&gt;
</code></pre></ide>
- Edit the Info.plist
## Visual Studio for Mac
Open your app's **Info.plist** file, and under the **Advanced** tab, in the **URL Types** section, add a new URL Type like:
![Image of Info.plist configuration](Images/app-links-incoming-ios-infoplist.png)
## Visual Studio
Manually edit your **Info.plist** file and add the following section:
```
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLName</key>
<string>com.example.store</string>
<key>CFBundleURLTypes</key>
<string>Viewer</string>
<key>CFBundleURLSchemes</key>
<array>
<string>example</string>
</array>
</dict>
</array>
```
- In your `AppDelegate` , setup your app to have a Navigation controller which is your window&#39;s root view controller, like this:
@@ -15,11 +15,11 @@ article:
The log window is a useful debugging tool, and is simple to use.
1. First, locate the log window. You can toggle it in Visual Studio for Mac by selecting
the <span class="UIItem">Application Output</span> panel on the bottom right:
the **Application Output** panel on the bottom right:
[ ![](Images/ios_log_00.png)](Images/ios_log_00.png)
In Visual Studio, select the <span class="UIItem">Output</span> panel on the bottom left:
In Visual Studio, select the **Output** panel on the bottom left:
[ ![](Images/ios_log_00_vs.png)](Images/ios_log_00_vs.png)
Oops, something went wrong.

0 comments on commit 6ea1269

Please sign in to comment.