I see, but the question was HOW to create a UI control & its resources in the
same lib.
We can put its res & assets (just fix the assets bug of 4.2.5) AND its C#
sources in Java Bind Lib.
Then use the resources per string name.
--
View this message in context:
http://mono-for-android.1047100.
On Aug 2, 2012, at 3:04 PM, tsukrov wrote:
> Wait, what about Java Binding Lib with Resources?
That's a Java Binding Library, not an Android Library Project. You can't use
Resource.Foo.Bar from C# in a Library project, that's the problem.
- Jon
___
Wait, what about Java Binding Lib with Resources?
We can access resources per string name and GetIdentifier.
It's slower (we can cache ids), but acceptable.
--
View this message in context:
http://mono-for-android.1047100.n5.nabble.com/Android-Library-Projects-and-Resources-tp571p5711137.h
On Aug 2, 2012, at 5:54 AM, Kirby wrote:
> The question is: How to write a custom control with UI parts having resources
> in a separate project (call it library or application).
At present, you don't. This is a known limitation, and we are working on it.
I'm sorry for the inconvenience.
As a
I ran into a wall with this, too, in normal android. I found it easier to
just pass a context and just new things up
On Wed, Aug 1, 2012 at 5:03 PM, Kirby wrote:
> Hi,
>
> I have an Android Library Project (in C# NOT Java!!!) created in order to
> build a custom control (which I can use in differ
You *can't* embed and use resources in mere managed library at all. This
has been known and unchanged. Android resources need to be handled in
Java/Android manner and .NET resources have nothing to do with that.
The only way you can embed resources in library is to build an Android
Library pro
I thought also I could use this as a workaround but this approach
unfortunately does not work with layout files… Inside those layout files you
have usually some views with Ids (in order to find them programmatically and
replace text or whatever). This system works out of the box with the android
re
Kirby wrote
>
> They ARE if you tweek the project file...
>
Ah, I didn't know this. For my projects, I currently use regular .NET
resources until this issue is fixed.
--
View this message in context:
http://mono-for-android.1047100.n5.nabble.com/Android-Library-Projects-and-Resources-tp57
They ARE if you tweek the project file... However I think basically you turn
it into an application then. But even as a Library-Application it works
perfectly as library (you can use it from your main application) but the
resource problem is still there...
The question is: How to write a custom co
I thought Android resources aren't currently available in library projects.
--
View this message in context:
http://mono-for-android.1047100.n5.nabble.com/Android-Library-Projects-and-Resources-tp571p575.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Hi,
I have an Android Library Project (in C# NOT Java!!!) created in order to
build a custom control (which I can use in different projects). Of course
this library contains Resources like layouts, drawables, strings, icons,
etc.
I realized that the Id created for the resources are only unique w
11 matches
Mail list logo