Bug 12385 - User is not able to create 'Toggle Button' widget for MFA application.
Summary: User is not able to create 'Toggle Button' widget for MFA application.
Status: VERIFIED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: General ()
Version: 4.6.x
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Jonathan Pryor
URL: http://http://docs.xamarin.com/guides...
Depends on:
Blocks:
 
Reported: 2013-05-24 10:09 UTC by Akhilesh kumar
Modified: 2013-05-27 06:41 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED FIXED

Description Akhilesh kumar 2013-05-24 10:09:27 UTC
Steps to reproduce:
1. Open X.S.
2. Create any android template.
3. Open the Resources\layout\main.xml file and add two RadioButtons, nested in a RadioGroup (inside the LinearLayout):
<RadioGroup
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:orientation="vertical">
      <RadioButton android:id="@+id/radio_red"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="Red" />
      <RadioButton android:id="@+id/radio_blue"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="Blue" />
    </RadioGroup>
4. Write an event handler in MainAcivity.cs file:
<span class=
"kwd">private void RadioButtonClick (object sender, EventArgs e)
{
        RadioButton rb = (RadioButton)sender;
        Toast.MakeText (this, rb.Text, ToastLength.Short).Show ();
} 
</span>
5. At the end of the OnCreate() method, add the following:
<span class=
"pln">RadioButton radio_red = FindViewById<RadioButton>(Resource.Id.radio_red);
RadioButton radio_blue = FindViewById<RadioButton>(Resource.Id.radio_blue);

radio_red.Click += RadioButtonClick;
radio_blue.Click += RadioButtonClick;</span>
6.Run the Application.

Actual result:
Application gives build error

Below is the Application output:
https://gist.github.com/atin360/7712eb2d8a87cc041ef1

Expected result:
Application should run and deploy successfully.

Environment details:
All mac
MFA 4.6.07004
Mono 2.10.12
XS 4.0.7(build 3)- 0f1da1e7f83345a52a4b68b8142ce699a6b2ada0

Note: As per understanding there is something wrong in docs, Application runs successfully without using the <span class> mentioned in step 2 and 3 of docs.
Comment 1 Jonathan Pryor 2013-05-24 10:52:38 UTC
Fixed in documentation/933c8293.
Comment 2 Miguel de Icaza [MSFT] 2013-05-27 06:21:33 UTC
Closing bug, per previous comment.
Comment 3 Atin 2013-05-27 06:41:09 UTC
As per  comment 1, Today we have checked docs of the tutorial http://docs.xamarin.com/guides/android/user_interface/form_elements/radiobutton
now <span class> are not appearing in step 2 and 3.

Now user is able to create Radio button widget,Hence marking this as Verified fixed.