Compare commits

...
Author SHA1 Message Date
r-ca 5dcb27a2e9 アイコンIDを追加 2024-01-11 15:04:42 +09:00
r-ca f833465dc8 :shared:uiを依存関係に追加 2024-01-11 15:03:44 +09:00
r-ca 4ac03fd4f3 重複を削除, 名前を統一 2024-01-11 15:02:41 +09:00
r-ca 17b2392fea drawableにアイコンを2個追加 2024-01-11 15:01:17 +09:00
r-ca 68f2ba3b59 修正 2024-01-11 14:55:06 +09:00
r-ca 91bbca54ff enum作成 2024-01-11 14:53:20 +09:00
r-ca 19dfa070fd ListItemモデル作成, コンストラクタ定義, Getter 2024-01-11 14:52:30 +09:00
r-ca b7f55ef0db ListItemモデル作成 2024-01-11 14:03:10 +09:00
ろむねこ 523008ff3f Merge pull request #41 from lacerta-doc/improve/improve_debug_menu
デバッグメニューから不要になったアイテムを削除
2024-01-10 12:28:11 +09:00
4 changed files with 70 additions and 0 deletions

No files matched your search

+2
View File
@@ -36,4 +36,6 @@ dependencies {
// JGit
implementation 'org.eclipse.jgit:org.eclipse.jgit:6.8.0.202311291450-r'
implementation project(":shared:ui")
}
@@ -0,0 +1,41 @@
package one.nem.lacerta.model;
import android.graphics.drawable.Drawable;
public class ListItem {
// Properties
String title;
String description;
ListItemType itemType;
String itemId;
// Constructor
public ListItem(String title, String description, ListItemType itemType, String itemId) {
this.title = title;
this.description = description;
this.itemType = itemType;
this.itemId = itemId;
}
// Getter
public String getTitle() {
return title;
}
public String getDescription() {
return description;
}
public ListItemType getItemType() {
return itemType;
}
public String getItemId() {
return itemId;
}
}
@@ -0,0 +1,17 @@
package one.nem.lacerta.model;
public enum ListItemType {
ITEM_TYPE_FOLDER(one.nem.lacerta.shared.ui.R.drawable.folder_24px),
ITEM_TYPE_DOCUMENT(one.nem.lacerta.shared.ui.R.drawable.description_24px);
private int iconId;
ListItemType(int iconId) {
this.iconId = iconId;
}
public int getIconId() {
return iconId;
}
}
@@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="960"
android:viewportHeight="960"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M330,710L630,710L630,650L330,650L330,710ZM330,550L630,550L630,490L330,490L330,550ZM252.31,860Q222,860 201,839Q180,818 180,787.69L180,172.31Q180,142 201,121Q222,100 252.31,100L570,100L780,310L780,787.69Q780,818 759,839Q738,860 707.69,860L252.31,860ZM540,340L540,160L252.31,160Q247.69,160 243.85,163.85Q240,167.69 240,172.31L240,787.69Q240,792.31 243.85,796.15Q247.69,800 252.31,800L707.69,800Q712.31,800 716.15,796.15Q720,792.31 720,787.69L720,340L540,340ZM240,160L240,160L240,340L240,340L240,160L240,340L240,340L240,787.69Q240,792.31 240,796.15Q240,800 240,800L240,800Q240,800 240,796.15Q240,792.31 240,787.69L240,172.31Q240,167.69 240,163.85Q240,160 240,160Z"/>
</vector>