I have a MonoDroid app, and I would like all my actions to be presented only in portrait orientation.
I would like to create a cluster with an action base, for example:
[Activity (ScreenOrientation = ScreenOrientation.Portrait)]
public abstract class BaseActivity : Activity
{
}
All other actions in my application should then be inherited from it (avoid repeating too much and take center stage for definition ScreenOrientation = ScreenOrientation.Portrait).
However, if you look at the definition ActivityAttribute, it looks like it does not support inheritance.
[Serializable]
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
public sealed class ActivityAttribute : Attribute { ... }
- Should I put
Activity (ScreenOrientation = ScreenOrientation.Portrait)in ALL the actions of my application? - Is it okay to maintain a vertical orientation in the Android world? (I have a portrait-only app that works very well and doesn't need to work with landscape).