Bug 4985 - [Designer] Created string resources do not update widget with resource value when .axml file is saved
Summary: [Designer] Created string resources do not update widget with resource value ...
Status: VERIFIED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: Designer ()
Version: 4.1.x
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Lluis Sanchez
URL:
Depends on:
Blocks:
 
Reported: 2012-05-09 19:54 UTC by PJ
Modified: 2012-05-11 05:32 UTC (History)
2 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 PJ 2012-05-09 19:54:36 UTC
MFA 4.2 RC4
VS 2010


Steps to reproduce:

Add a button to a layout
Double click the button to open the text/resource editor
Click the text box to have the text box gain focus
Press tab to switch to the resource
Edit the resource name
Click off the button to close the text boxes.
Save the file.


Expected (and MD behavior):
After clicking off the button, the button should show the resource in resource name format (@string/buttonA)

After saving the document, the button should update with the resource value ("Button")


Actual:
After clicking off the button, the button *does* show the resource in resource name format (@string/buttonA)

After saving the document, the button *does not* update with the resource value, the button continues to show the resource name.

http://screencast.com/t/7yEUVG3J


Workaround: close/reopen the .axml file

Marking as normal. While it will be frustrating to have to re-open the .axml file to correctly display the string values (and therefore the spacing/etc), there is a workaround and this issue does not manifest if you are using pre-existing string resources.
Comment 1 Lluis Sanchez 2012-05-10 03:15:36 UTC
The string value should actually be shown when the resource is created, not when saving. This used to work.
Comment 2 Lluis Sanchez 2012-05-10 06:24:06 UTC
Fixed in master (2bc4039075d3bf641e923102bd273dc3c6a231f9)
Comment 3 PJ 2012-05-11 05:32:50 UTC
Verified fixed in MFA 4.2.0 RC5