mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-05-22 01:34:26 +00:00
Add ability to change view mode
This commit is contained in:
parent
ee8fd2e9f2
commit
f3ed79dc71
6 changed files with 80 additions and 0 deletions
33
app/src/main/java/com/beemdevelopment/aegis/ViewMode.java
Normal file
33
app/src/main/java/com/beemdevelopment/aegis/ViewMode.java
Normal file
|
@ -0,0 +1,33 @@
|
|||
package com.beemdevelopment.aegis;
|
||||
|
||||
public enum ViewMode {
|
||||
NORMAL,
|
||||
COMPACT;
|
||||
|
||||
public static ViewMode fromInteger(int x) {
|
||||
switch(x) {
|
||||
case 0:
|
||||
return NORMAL;
|
||||
case 1:
|
||||
return COMPACT;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static String getViewModeName(int x) {
|
||||
switch(x) {
|
||||
case 0:
|
||||
return "Normal";
|
||||
case 1:
|
||||
return "Compact";
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static String[] getViewModeNames() {
|
||||
return new String[] {
|
||||
"Normal",
|
||||
"Compact"
|
||||
};
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue