Comments (1)
Related: https://developer.android.com/guide/topics/manifest/property-element
We should probably introduce a PropertyAttribute
, which emits <property/>
within the appropriate scope:
[AttributeUsage (AttributeTargets.Class, AllowMultiple=true)]
public partial class PropertyAttribute : Attribute {
public PropertyAttribute (string name);
public string Resource {get; set;}
public string Value {get; set;}
}
which would allow:
[Service]
[Property ("android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE", Value="Explanation")]
partial class FocusSessionService : Service {
}
Open design question: from the <property/>
docs:
Note: A
<property>
tag should not contain bothandroid:value
andandroid:resource
attributes. If that happens,android:resource
is preferred.
Given this, it might instead be better to have PropertyResourceAttribute
and PropertyValueAttribute
instead of a single PropertyAttribute
.
from xamarin-android.
Related Issues (20)
- Publishing to BAR/Maestro will no longer support tokens
- error XARRA7028: Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: SQLite-net, Version=1.9.172.0, Culture=neutral, PublicKeyToken=null HOT 14
- The SDK Microsoft.NET.Runtime.MonoAOTCompiler.Task could not be found. HOT 9
- [MAUI 9.0 Preview 6] Android Maui app hangs up at splash screen when PublishTrimmed is true / release configuration HOT 1
- Changing <Bind> item metadata does not rerun appropriate parts of the build HOT 6
- AndroidMavenLibrary can't build HOT 6
- EditText.getText() isn't bound HOT 4
- Support Fast Deployment of `@(AndroidEnvironment)`
- UsbConstants class const value missing HOT 2
- UsbConstants class const value missing
- Dynamically loading an assembly results in BadImageFormatException HOT 2
- [.net9-preview][android] Multiple AppResources Crash - failed to load bundled assembly pt-PT/ HOT 10
- Data binding options HOT 2
- java.lang.UnsatisfiedLinkError: No implementation found for void crc64953c68cad4e91ae3.GlmApp.n_OnAppForegrounded() - is the library loaded, e.g. System.loadLibrary? HOT 2
- Debugger gives up waiting for assemblies to load. HOT 6
- MAUI android app build fails on a .net docker image HOT 5
- `_GeneratePackageManagerJava` runs on every incremental build HOT 1
- Resolving Offset Errors in MAUI 8 Apps Post-Publisher Signing HOT 31
- [Xamarin.Android.Build.Tasks] Replace Newtonsoft.Json usage with System.Text.Json
- [build performance] check if we can use `jaotc` or GraalVM to "AOT compile" r8.jar HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xamarin-android.