├── app ├── .gitignore ├── src │ └── main │ │ ├── res │ │ ├── values │ │ │ ├── dimens.xml │ │ │ ├── colors.xml │ │ │ ├── strings.xml │ │ │ └── themes.xml │ │ ├── mipmap-hdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ ├── mipmap-mdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ ├── mipmap-xhdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxhdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxxhdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ ├── mipmap-anydpi-v26 │ │ │ ├── ic_launcher.xml │ │ │ └── ic_launcher_round.xml │ │ ├── menu │ │ │ ├── main_selected_menu.xml │ │ │ ├── main_search_menu.xml │ │ │ └── editor_menu.xml │ │ ├── drawable │ │ │ ├── ic_baseline_check_24.xml │ │ │ ├── ic_baseline_delete_24.xml │ │ │ ├── ic_baseline_edit_24.xml │ │ │ ├── ic_baseline_search_24.xml │ │ │ ├── ic_launcher_foreground.xml │ │ │ └── ic_launcher_background.xml │ │ ├── values-uk │ │ │ └── strings.xml │ │ ├── values-ru │ │ │ └── strings.xml │ │ ├── values-night │ │ │ └── themes.xml │ │ └── layout │ │ │ ├── note_layout.xml │ │ │ ├── activity_main.xml │ │ │ └── activity_note.xml │ │ ├── ic_launcher-playstore.png │ │ ├── java │ │ └── com │ │ │ └── dm │ │ │ └── notes │ │ │ ├── NotesApplication.java │ │ │ ├── models │ │ │ └── Note.java │ │ │ ├── helpers │ │ │ ├── Utils.java │ │ │ └── DatabaseHelper.java │ │ │ └── ui │ │ │ ├── GridSpacingItemDecoration.java │ │ │ ├── NotesAdapter.java │ │ │ ├── NoteEditorActivity.java │ │ │ └── MainActivity.java │ │ └── AndroidManifest.xml ├── release │ └── output-metadata.json ├── proguard-rules.pro └── build.gradle ├── settings.gradle ├── gradle └── wrapper │ └── gradle-wrapper.properties ├── README.md ├── gradle.properties ├── .gitignore ├── gradlew.bat ├── gradlew └── LICENSE /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | rootProject.name = "Notes" -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 16dp 3 | -------------------------------------------------------------------------------- /app/src/main/ic_launcher-playstore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dmitrijkotov634/android-notes/HEAD/app/src/main/ic_launcher-playstore.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dmitrijkotov634/android-notes/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dmitrijkotov634/android-notes/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dmitrijkotov634/android-notes/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dmitrijkotov634/android-notes/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dmitrijkotov634/android-notes/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dmitrijkotov634/android-notes/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dmitrijkotov634/android-notes/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dmitrijkotov634/android-notes/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dmitrijkotov634/android-notes/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dmitrijkotov634/android-notes/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 18 11:18:32 MSK 2021 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip 7 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/java/com/dm/notes/NotesApplication.java: -------------------------------------------------------------------------------- 1 | package com.dm.notes; 2 | 3 | import android.app.Application; 4 | 5 | import com.google.android.material.color.DynamicColors; 6 | 7 | public class NotesApplication extends Application { 8 | @Override 9 | public void onCreate() { 10 | super.onCreate(); 11 | 12 | DynamicColors.applyToActivitiesIfAvailable(this); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /app/src/main/res/menu/main_selected_menu.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 10 | -------------------------------------------------------------------------------- /app/src/main/java/com/dm/notes/models/Note.java: -------------------------------------------------------------------------------- 1 | package com.dm.notes.models; 2 | 3 | public class Note { 4 | private final long id; 5 | private final String text; 6 | 7 | public Note(long id, String text) { 8 | this.id = id; 9 | this.text = text; 10 | } 11 | 12 | public long getId() { 13 | return id; 14 | } 15 | 16 | public String getText() { 17 | return text; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_baseline_check_24.xml: -------------------------------------------------------------------------------- 1 | 7 | 10 | 11 | -------------------------------------------------------------------------------- /app/release/output-metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 3, 3 | "artifactType": { 4 | "type": "APK", 5 | "kind": "Directory" 6 | }, 7 | "applicationId": "com.dm.notes", 8 | "variantName": "release", 9 | "elements": [ 10 | { 11 | "type": "SINGLE", 12 | "filters": [], 13 | "attributes": [], 14 | "versionCode": 5, 15 | "versionName": "1.5", 16 | "outputFile": "app-release.apk" 17 | } 18 | ], 19 | "elementType": "File" 20 | } -------------------------------------------------------------------------------- /app/src/main/res/menu/main_search_menu.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_baseline_delete_24.xml: -------------------------------------------------------------------------------- 1 | 7 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #FFBB86FC 4 | #FF8858c8 5 | #FF6200EE 6 | #FF3700B3 7 | #FF03DAC5 8 | #FF018786 9 | #FF000000 10 | #FFFFFFFF 11 | -------------------------------------------------------------------------------- /app/src/main/java/com/dm/notes/helpers/Utils.java: -------------------------------------------------------------------------------- 1 | package com.dm.notes.helpers; 2 | 3 | import android.text.Html; 4 | import android.text.SpannableString; 5 | 6 | public class Utils { 7 | public static SpannableString fromHtml(String text) { 8 | SpannableString spannableString = SpannableString.valueOf(Html.fromHtml(text)); 9 | if (spannableString.toString().endsWith("\n\n")) 10 | spannableString = (SpannableString) spannableString.subSequence(0, spannableString.length() - 2); 11 | return spannableString; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_baseline_edit_24.xml: -------------------------------------------------------------------------------- 1 | 7 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_baseline_search_24.xml: -------------------------------------------------------------------------------- 1 | 7 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/menu/editor_menu.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 10 | 13 | 16 | 19 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Notes 3 | 4 | Name 5 | Are you sure you want to delete items? 6 | 7 | Yes 8 | No 9 | 10 | Bold 11 | Italic 12 | Underline 13 | Strikethrough 14 | Normal 15 | 16 | Search 17 | Remove 18 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_launcher_foreground.xml: -------------------------------------------------------------------------------- 1 | 7 | 11 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /app/src/main/res/values-uk/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Нотатки 4 | 5 | Назва 6 | Ви впевнені, що хочете видалити елементи? 7 | 8 | Так 9 | Нi 10 | 11 | Напівжирний 12 | Курсив 13 | Підкреслений 14 | Закреслений 15 | Звичайний 16 | 17 | Пошук 18 | Вилучити 19 | -------------------------------------------------------------------------------- /app/src/main/res/values-ru/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Заметки 4 | 5 | Название 6 | Вы уверены, что хотите удалить эти элементы? 7 | 8 | Да 9 | Нет 10 | 11 | Полужирный 12 | Курсив 13 | Подчеркнутый 14 | Зачеркнутый 15 | Обычный 16 | 17 | Поиск 18 | Удалить 19 | -------------------------------------------------------------------------------- /app/src/main/res/values-night/themes.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 15 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile -------------------------------------------------------------------------------- /app/src/main/res/layout/note_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 19 | 20 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ![GitHub release (latest by date)](https://img.shields.io/github/v/release/dmitrijkotov634/android-notes?color=green&label=Latest%20version) [![Hits-of-Code](https://hitsofcode.com/github/dmitrijkotov634/android-notes)](https://hitsofcode.com/github/dmitrijkotov634/android-notes/view) ![GitHub](https://img.shields.io/github/license/dmitrijkotov634/android-notes) 2 | # Android Notes 3 | Simple android app for saving some notes written on Java. 4 | | ![screen1](https://user-images.githubusercontent.com/32961194/122779363-75f7ff80-d2b6-11eb-9ac7-64180a825dd1.png) | ![screen2](https://user-images.githubusercontent.com/32961194/122779409-81e3c180-d2b6-11eb-8dea-557c7d3e417c.png) | 5 | |-------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------| 6 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | plugins { 2 | id 'com.android.application' 3 | } 4 | 5 | android { 6 | compileSdkVersion 32 7 | buildToolsVersion "30.0.3" 8 | 9 | buildFeatures { 10 | viewBinding true 11 | } 12 | 13 | defaultConfig { 14 | applicationId "com.dm.notes" 15 | minSdkVersion 16 16 | targetSdkVersion 32 17 | versionCode 6 18 | versionName "1.5.1" 19 | } 20 | 21 | buildTypes { 22 | release { 23 | minifyEnabled true 24 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' 25 | } 26 | } 27 | compileOptions { 28 | sourceCompatibility JavaVersion.VERSION_1_8 29 | targetCompatibility JavaVersion.VERSION_1_8 30 | } 31 | } 32 | 33 | dependencies { 34 | implementation 'androidx.appcompat:appcompat:1.4.2' 35 | implementation 'com.google.android.material:material:1.7.0-alpha02' 36 | } -------------------------------------------------------------------------------- /app/src/main/res/values/themes.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 13 | 14 | 18 | 19 |