@ -1,26 +0,0 @@
 | 
				
			|||||||
<?xml version="1.0" encoding="utf-8"?>
 | 
					 | 
				
			||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
 | 
					 | 
				
			||||||
    xmlns:tools="http://schemas.android.com/tools">
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    <application
 | 
					 | 
				
			||||||
        android:allowBackup="true"
 | 
					 | 
				
			||||||
        android:dataExtractionRules="@xml/data_extraction_rules"
 | 
					 | 
				
			||||||
        android:fullBackupContent="@xml/backup_rules"
 | 
					 | 
				
			||||||
        android:icon="@mipmap/ic_launcher"
 | 
					 | 
				
			||||||
        android:label="@string/app_name"
 | 
					 | 
				
			||||||
        android:roundIcon="@mipmap/ic_launcher_round"
 | 
					 | 
				
			||||||
        android:supportsRtl="true"
 | 
					 | 
				
			||||||
        android:theme="@style/Theme.MyApplication"
 | 
					 | 
				
			||||||
        tools:targetApi="31">
 | 
					 | 
				
			||||||
        <activity
 | 
					 | 
				
			||||||
            android:name=".MainActivity"
 | 
					 | 
				
			||||||
            android:exported="true">
 | 
					 | 
				
			||||||
            <intent-filter>
 | 
					 | 
				
			||||||
                <action android:name="android.intent.action.MAIN" />
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
                <category android:name="android.intent.category.LAUNCHER" />
 | 
					 | 
				
			||||||
            </intent-filter>
 | 
					 | 
				
			||||||
        </activity>
 | 
					 | 
				
			||||||
    </application>
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
</manifest>
 | 
					 | 
				
			||||||
@ -1,5 +0,0 @@
 | 
				
			|||||||
<?xml version="1.0" encoding="utf-8"?>
 | 
					 | 
				
			||||||
<resources>
 | 
					 | 
				
			||||||
    <color name="black">#FF000000</color>
 | 
					 | 
				
			||||||
    <color name="white">#FFFFFFFF</color>
 | 
					 | 
				
			||||||
</resources>
 | 
					 | 
				
			||||||
@ -1,3 +0,0 @@
 | 
				
			|||||||
<resources>
 | 
					 | 
				
			||||||
    <string name="app_name">My Application</string>
 | 
					 | 
				
			||||||
</resources>
 | 
					 | 
				
			||||||
@ -0,0 +1,6 @@
 | 
				
			|||||||
 | 
					<?xml version="1.0" encoding="UTF-8"?>
 | 
				
			||||||
 | 
					<project version="4">
 | 
				
			||||||
 | 
					  <component name="CompilerConfiguration">
 | 
				
			||||||
 | 
					    <bytecodeTargetLevel target="21" />
 | 
				
			||||||
 | 
					  </component>
 | 
				
			||||||
 | 
					</project>
 | 
				
			||||||
@ -0,0 +1,10 @@
 | 
				
			|||||||
 | 
					<?xml version="1.0" encoding="UTF-8"?>
 | 
				
			||||||
 | 
					<project version="4">
 | 
				
			||||||
 | 
					  <component name="deploymentTargetSelector">
 | 
				
			||||||
 | 
					    <selectionStates>
 | 
				
			||||||
 | 
					      <SelectionState runConfigName="app">
 | 
				
			||||||
 | 
					        <option name="selectionMode" value="DROPDOWN" />
 | 
				
			||||||
 | 
					      </SelectionState>
 | 
				
			||||||
 | 
					    </selectionStates>
 | 
				
			||||||
 | 
					  </component>
 | 
				
			||||||
 | 
					</project>
 | 
				
			||||||
@ -1,11 +1,20 @@
 | 
				
			|||||||
<?xml version="1.0" encoding="UTF-8"?>
 | 
					<?xml version="1.0" encoding="UTF-8"?>
 | 
				
			||||||
<project version="4">
 | 
					<project version="4">
 | 
				
			||||||
 | 
					  <component name="GradleMigrationSettings" migrationVersion="1" />
 | 
				
			||||||
  <component name="GradleSettings">
 | 
					  <component name="GradleSettings">
 | 
				
			||||||
    <option name="linkedExternalProjectsSettings">
 | 
					    <option name="linkedExternalProjectsSettings">
 | 
				
			||||||
      <GradleProjectSettings>
 | 
					      <GradleProjectSettings>
 | 
				
			||||||
        <option name="testRunner" value="CHOOSE_PER_TEST" />
 | 
					        <option name="testRunner" value="CHOOSE_PER_TEST" />
 | 
				
			||||||
 | 
					        <option name="distributionType" value="LOCAL" />
 | 
				
			||||||
        <option name="externalProjectPath" value="$PROJECT_DIR$" />
 | 
					        <option name="externalProjectPath" value="$PROJECT_DIR$" />
 | 
				
			||||||
 | 
					        <option name="gradleHome" value="$USER_HOME$/.gradle/wrapper/dists/gradle-8.11.1" />
 | 
				
			||||||
        <option name="gradleJvm" value="#GRADLE_LOCAL_JAVA_HOME" />
 | 
					        <option name="gradleJvm" value="#GRADLE_LOCAL_JAVA_HOME" />
 | 
				
			||||||
 | 
					        <option name="modules">
 | 
				
			||||||
 | 
					          <set>
 | 
				
			||||||
 | 
					            <option value="$PROJECT_DIR$" />
 | 
				
			||||||
 | 
					            <option value="$PROJECT_DIR$/app" />
 | 
				
			||||||
 | 
					          </set>
 | 
				
			||||||
 | 
					        </option>
 | 
				
			||||||
      </GradleProjectSettings>
 | 
					      </GradleProjectSettings>
 | 
				
			||||||
    </option>
 | 
					    </option>
 | 
				
			||||||
  </component>
 | 
					  </component>
 | 
				
			||||||
@ -1,7 +1,7 @@
 | 
				
			|||||||
<?xml version="1.0" encoding="UTF-8"?>
 | 
					<?xml version="1.0" encoding="UTF-8"?>
 | 
				
			||||||
<project version="4">
 | 
					<project version="4">
 | 
				
			||||||
  <component name="ExternalStorageConfigurationManager" enabled="true" />
 | 
					  <component name="ExternalStorageConfigurationManager" enabled="true" />
 | 
				
			||||||
  <component name="ProjectRootManager" version="2" languageLevel="JDK_1_7">
 | 
					  <component name="ProjectRootManager" version="2" languageLevel="JDK_21" default="true" project-jdk-name="jbr-21" project-jdk-type="JavaSDK">
 | 
				
			||||||
    <output url="file://$PROJECT_DIR$/build/classes" />
 | 
					    <output url="file://$PROJECT_DIR$/build/classes" />
 | 
				
			||||||
  </component>
 | 
					  </component>
 | 
				
			||||||
  <component name="ProjectType">
 | 
					  <component name="ProjectType">
 | 
				
			||||||
@ -0,0 +1,72 @@
 | 
				
			|||||||
 | 
					package net.micode.notes.ui;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import android.content.DialogInterface;
 | 
				
			||||||
 | 
					import android.content.Intent;
 | 
				
			||||||
 | 
					import android.graphics.Color;
 | 
				
			||||||
 | 
					import android.os.Bundle;
 | 
				
			||||||
 | 
					import android.app.Activity;
 | 
				
			||||||
 | 
					import android.util.Log;
 | 
				
			||||||
 | 
					import android.view.View;
 | 
				
			||||||
 | 
					import android.widget.Button;
 | 
				
			||||||
 | 
					import android.widget.LinearLayout;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import net.micode.notes.R;
 | 
				
			||||||
 | 
					import jp.wasabeef.richeditor.RichEditor;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					public class NotePreviewActivity extends Activity implements View.OnClickListener {
 | 
				
			||||||
 | 
					    private RichEditor mNotePreviewView;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static String mNoteText;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static int mNoteBgColorResId;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static int mNotePreviewFontSize;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private Button confirmButton;
 | 
				
			||||||
 | 
					    private Button cancelButton;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private View mNotePreviewPanel;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    @Override
 | 
				
			||||||
 | 
					    protected void onCreate(Bundle savedInstanceState) {
 | 
				
			||||||
 | 
					        super.onCreate(savedInstanceState);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        // Set View
 | 
				
			||||||
 | 
					        setContentView(R.layout.note_preview);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        // Set Components
 | 
				
			||||||
 | 
					        mNoteText = getIntent().getStringExtra("note_text");
 | 
				
			||||||
 | 
					        mNoteBgColorResId = getIntent().getIntExtra("bg_color_res_id", 0);
 | 
				
			||||||
 | 
					        mNotePreviewFontSize = getIntent().getIntExtra("font_size", 16);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        mNotePreviewView = (RichEditor) findViewById(R.id.note_preview_view);
 | 
				
			||||||
 | 
					        mNotePreviewView.setEditorHeight(500);
 | 
				
			||||||
 | 
					        mNotePreviewView.setEditorFontColor(Color.BLACK);
 | 
				
			||||||
 | 
					        mNotePreviewView.setInputEnabled(false);
 | 
				
			||||||
 | 
					        mNotePreviewView.setEditorWidth(LinearLayout.LayoutParams.MATCH_PARENT);
 | 
				
			||||||
 | 
					        mNotePreviewView.setBackgroundResource(mNoteBgColorResId);
 | 
				
			||||||
 | 
					        mNotePreviewView.setHtml(mNoteText);
 | 
				
			||||||
 | 
					        mNotePreviewView.setEditorFontSize(mNotePreviewFontSize);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        mNotePreviewPanel = findViewById(R.id.sv_note_preview);
 | 
				
			||||||
 | 
					        mNotePreviewPanel.setBackgroundResource(mNoteBgColorResId);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        confirmButton = (Button) findViewById(R.id.confirm_button);
 | 
				
			||||||
 | 
					        cancelButton = (Button) findViewById(R.id.cancel_button);
 | 
				
			||||||
 | 
					        confirmButton.setOnClickListener(this);
 | 
				
			||||||
 | 
					        cancelButton.setOnClickListener(this);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    @Override
 | 
				
			||||||
 | 
					    public void onClick(View v) {
 | 
				
			||||||
 | 
					        switch(v.getId()) {
 | 
				
			||||||
 | 
					            case R.id.confirm_button:
 | 
				
			||||||
 | 
					                Intent resultIntent = new Intent();
 | 
				
			||||||
 | 
					                resultIntent.putExtra("note_text", mNoteText);
 | 
				
			||||||
 | 
					                setResult(RESULT_OK, resultIntent);
 | 
				
			||||||
 | 
					            default:
 | 
				
			||||||
 | 
					                // Once button is click then finish()
 | 
				
			||||||
 | 
					                finish();
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
| 
		 Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB  | 
| 
		 Before Width: | Height: | Size: 245 B After Width: | Height: | Size: 245 B  | 
| 
		 Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB  | 
| 
		 Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB  | 
| 
		 Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB  | 
| 
		 Before Width: | Height: | Size: 443 B After Width: | Height: | Size: 443 B  | 
| 
		 Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB  | 
| 
		 Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB  | 
| 
		 Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB  | 
| 
		 Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 5.0 KiB  | 
| 
		 Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.5 KiB  | 
| 
		 Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB  | 
| 
		 Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB  | 
| 
		 Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 5.9 KiB  | 
| 
		 Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB  | 
| 
		 Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB  | 
| 
		 Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB  | 
| 
		 Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB  | 
| 
		 Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.0 KiB  | 
| 
		 Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB  | 
| 
		 Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB  | 
| 
		 Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 6.7 KiB  | 
| 
		 Before Width: | Height: | Size: 554 KiB After Width: | Height: | Size: 554 KiB  | 
| 
		 Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB  | 
| 
		 Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB  | 
| 
		 Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.5 KiB  | 
| 
		 Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB  | 
| 
		 Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.5 KiB  | 
| 
		 Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB  | 
| 
		 Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.4 KiB  | 
| 
		 Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB  | 
| 
		 Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 4.6 KiB  | 
| 
		 Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB  | 
| 
		 Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB  | 
| 
		 Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB  | 
| 
		 Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.5 KiB  | 
| 
		 Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB  | 
| 
		 Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB  | 
| 
		 Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB  |