android_manifest/ui_options.rs
1use serde::{Deserialize, Serialize};
2
3/// Extra options for an activity's UI.
4#[derive(Debug, Deserialize, Serialize, YaSerialize, YaDeserialize, PartialEq, Eq, Clone)]
5#[serde(rename_all = "camelCase")]
6#[derive(Default)]
7pub enum UiOptions {
8 /// No extra UI options. This is the default
9 #[yaserde(rename = "none")]
10 #[default]
11 None,
12 /// Add a bar at the bottom of the screen to display action items in the app
13 /// bar (also known as the action bar), when constrained for horizontal
14 /// space (such as when in portrait mode on a handset). Instead of a
15 /// small number of action items appearing in the app bar at the top of the
16 /// screen, the app bar is split into the top navigation section and the
17 /// bottom bar for action items. This ensures a reasonable amount of
18 /// space is made available not only for the action items, but also for
19 /// navigation and title elements at the top. Menu items are not split
20 /// across the two bars; they always appear together.
21 #[yaserde(rename = "splitActionBarWhenNarrow")]
22 SplitActionBarWhenNarrow,
23}