Bug 23118 - resource attr can't be found when calling Android.Resource.Attribute.ExpandableListPreferredItemPaddingLeft
Summary: resource attr can't be found when calling Android.Resource.Attribute.Expandab...
Alias: None
Product: Android
Classification: Xamarin
Component: Debugger ()
Version: 4.18.0
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: dean.ellis
Depends on:
Reported: 2014-09-18 01:15 UTC by Jun Zhang
Modified: 2017-06-28 19:14 UTC (History)
3 users (show)

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:

Description Jun Zhang 2014-09-18 01:15:23 UTC
When I try to get android attribute "Android.Resource.Attribute.ExpandableListPreferredItemPaddingLeft" by calling

int leftPadding = (int)_context.Resources.GetDimension (Android.Resource.Attribute.ExpandableListPreferredItemPaddingLeft);

I get resource can't be found error.

Kindest regards,
Jun Zhang
Comment 1 Udham Singh 2014-09-18 06:16:22 UTC
I have checked this issue and observed that we are getting exception "Android.Content.Res.Resources+NotFoundException". To reproduce this issue I have followed the steps below:

1. Create a simple android application.
2. Implemented the code provided in bug description.
3. Run the application and got the exception.

Screencast : http://www.screencast.com/t/vdLCijM3Gg
Application Output : https://gist.github.com/Udham1/5f057d69582e0e6ee294

Could you please have a look on the screencast and application output, and let me know if you are getting the same issue. Also please let me know if I missed anything.

Environment Info :

=== Xamarin Studio ===

Version 5.3.1 (build 2)
Installation UUID: ce927b2a-2c07-44c5-b186-09cfdafba6dc
	Mono 3.8.0 ((no/45d0ba1)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 308000009

=== Apple Developer Tools ===

Xcode 6.0 (6299)
Build 6A313

=== Xamarin.Android ===

Version: 4.16.0 (Business Edition)
Android SDK: /Users/xamarin76/Desktop/android-sdk-macosx
	Supported Android versions:
		1.6    (API level 4)
		2.1    (API level 7)
		2.2    (API level 8)
		2.3    (API level 10)
		3.0    (API level 11)
		3.1    (API level 12)
		3.2    (API level 13)
		4.0    (API level 14)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		4.5    (API level 21)
Java SDK: /usr
java version "1.7.0_65"
Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

=== Build Information ===

Release ID: 503010002
Git revision: 6bfd75328c438f50216c26265699490d6d53c02c
Build date: 2014-09-12 12:19:44-04
Xamarin addins: 6dc7c388e31fdfc8014689839d37de0d4622435c

=== Operating System ===

Mac OS X 10.9.4
Darwin Xamarin76s-Mac-mini.local 13.3.0 Darwin Kernel Version 13.3.0
    Tue Jun  3 21:27:35 PDT 2014
    root:xnu-2422.110.17~1/RELEASE_X86_64 x86_64
Comment 2 Chris Hardy [MSFT] 2017-06-28 19:14:49 UTC
Because we have not received a reply to our request for more information we are closing this issue. If you are still encountering this issue, please reopen the ticket with the requested information. Thanks!