From 31a638a1f0e2e1add882647fa71e152fe4d000dc Mon Sep 17 00:00:00 2001 From: somya guglani Date: Sun, 7 Jul 2019 17:13:15 +0530 Subject: [PATCH] End task --- .../app/src/main/AndroidManifest.xml | 18 +-- .../bmrcalculator/ChoosingActivity.java | 11 +- .../bmrcalculator/NoteEditorActivity.java | 55 +++++++++ .../bmrcalculator/NoteStartActivity.java | 111 ++++++++++++++++++ .../app/src/main/res/drawable/note_taking.jpg | Bin 0 -> 11093 bytes .../src/main/res/layout/activity_choosing.xml | 10 +- .../main/res/layout/activity_note_editor.xml | 16 +++ .../main/res/layout/activity_note_start.xml | 19 +++ .../app/src/main/res/menu/add_new_menu.xml | 9 ++ .../app/src/main/res/values/strings.xml | 2 + 10 files changed, 241 insertions(+), 10 deletions(-) create mode 100644 P02_HealthCalculator/Somyaguglani/Health Calculator complete/app/src/main/java/com/example/bmrcalculator/NoteEditorActivity.java create mode 100644 P02_HealthCalculator/Somyaguglani/Health Calculator complete/app/src/main/java/com/example/bmrcalculator/NoteStartActivity.java create mode 100644 P02_HealthCalculator/Somyaguglani/Health Calculator complete/app/src/main/res/drawable/note_taking.jpg create mode 100644 P02_HealthCalculator/Somyaguglani/Health Calculator complete/app/src/main/res/layout/activity_note_editor.xml create mode 100644 P02_HealthCalculator/Somyaguglani/Health Calculator complete/app/src/main/res/layout/activity_note_start.xml create mode 100644 P02_HealthCalculator/Somyaguglani/Health Calculator complete/app/src/main/res/menu/add_new_menu.xml diff --git a/P02_HealthCalculator/Somyaguglani/Health Calculator complete/app/src/main/AndroidManifest.xml b/P02_HealthCalculator/Somyaguglani/Health Calculator complete/app/src/main/AndroidManifest.xml index 0e8c68b4..b44d76d5 100644 --- a/P02_HealthCalculator/Somyaguglani/Health Calculator complete/app/src/main/AndroidManifest.xml +++ b/P02_HealthCalculator/Somyaguglani/Health Calculator complete/app/src/main/AndroidManifest.xml @@ -9,16 +9,18 @@ android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/AppTheme"> - - - - + + + + + + - - + + - - + + \ No newline at end of file diff --git a/P02_HealthCalculator/Somyaguglani/Health Calculator complete/app/src/main/java/com/example/bmrcalculator/ChoosingActivity.java b/P02_HealthCalculator/Somyaguglani/Health Calculator complete/app/src/main/java/com/example/bmrcalculator/ChoosingActivity.java index d0762537..34e8c326 100644 --- a/P02_HealthCalculator/Somyaguglani/Health Calculator complete/app/src/main/java/com/example/bmrcalculator/ChoosingActivity.java +++ b/P02_HealthCalculator/Somyaguglani/Health Calculator complete/app/src/main/java/com/example/bmrcalculator/ChoosingActivity.java @@ -11,7 +11,7 @@ public class ChoosingActivity extends AppCompatActivity { - ImageButton bmi,bmr; + ImageButton bmi,bmr,takenotes; @Override @@ -42,6 +42,7 @@ protected void onCreate(Bundle savedInstanceState) { bmi= findViewById(R.id.imbtn_bmi); bmr = findViewById(R.id.imbtn_bmr); + takenotes = findViewById(R.id.imbtn_bmi_takenotes); bmi.setOnClickListener(new View.OnClickListener() { @Override @@ -57,6 +58,14 @@ public void onClick(View view) { startActivity(i); } }); + takenotes.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + Intent i = new Intent(ChoosingActivity.this,NoteStartActivity.class); + startActivity(i); + + } + }); diff --git a/P02_HealthCalculator/Somyaguglani/Health Calculator complete/app/src/main/java/com/example/bmrcalculator/NoteEditorActivity.java b/P02_HealthCalculator/Somyaguglani/Health Calculator complete/app/src/main/java/com/example/bmrcalculator/NoteEditorActivity.java new file mode 100644 index 00000000..a89460e1 --- /dev/null +++ b/P02_HealthCalculator/Somyaguglani/Health Calculator complete/app/src/main/java/com/example/bmrcalculator/NoteEditorActivity.java @@ -0,0 +1,55 @@ +package com.example.bmrcalculator; + +import androidx.appcompat.app.AppCompatActivity; + +import android.content.Context; +import android.content.SharedPreferences; +import android.os.Bundle; +import android.text.Editable; +import android.text.TextWatcher; +import android.widget.EditText; + +import java.util.HashSet; + +public class NoteEditorActivity extends AppCompatActivity { + + int noteId; + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_note_editor); + + EditText editText= findViewById(R.id.et_inputnote); + noteId = getIntent().getIntExtra("noteId",-1);//imp since indexing starts from 0 this checks for something invalid + if(noteId!=-1){ + editText.setText(NoteStartActivity.notes.get(noteId)); + }else{ + NoteStartActivity.notes.add(""); + noteId= NoteStartActivity.notes.size()-1; + NoteStartActivity.arrayAdapter.notifyDataSetChanged(); + + } + editText.addTextChangedListener(new TextWatcher() { + @Override + public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) { + + } + + @Override + public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) { + NoteStartActivity.notes.set(noteId,String.valueOf(charSequence)); + NoteStartActivity.arrayAdapter.notifyDataSetChanged(); + + SharedPreferences sharedPreferences= getApplicationContext().getSharedPreferences("com.example.bmrcalculator", Context.MODE_PRIVATE); + HashSet set= new HashSet<>(NoteStartActivity.notes); + sharedPreferences.edit().putStringSet("notes",set).apply(); + + } + + @Override + public void afterTextChanged(Editable editable) { + + } + }); + } +} diff --git a/P02_HealthCalculator/Somyaguglani/Health Calculator complete/app/src/main/java/com/example/bmrcalculator/NoteStartActivity.java b/P02_HealthCalculator/Somyaguglani/Health Calculator complete/app/src/main/java/com/example/bmrcalculator/NoteStartActivity.java new file mode 100644 index 00000000..4162467e --- /dev/null +++ b/P02_HealthCalculator/Somyaguglani/Health Calculator complete/app/src/main/java/com/example/bmrcalculator/NoteStartActivity.java @@ -0,0 +1,111 @@ +package com.example.bmrcalculator; + +import androidx.annotation.NonNull; +import androidx.appcompat.app.AppCompatActivity; + +import android.app.AlertDialog; +import android.content.Context; +import android.content.DialogInterface; +import android.content.Intent; +import android.content.SharedPreferences; +import android.os.Bundle; +import android.view.Menu; +import android.view.MenuInflater; +import android.view.MenuItem; +import android.view.View; +import android.widget.AdapterView; +import android.widget.ArrayAdapter; +import android.widget.ListView; + +import java.util.ArrayList; +import java.util.HashSet; + +public class NoteStartActivity extends AppCompatActivity { + ListView listView; + + static ArrayAdapter arrayAdapter; + static ArrayList notes = new ArrayList<>(); + + @Override + public boolean onCreateOptionsMenu(Menu menu) { + MenuInflater menuInflater = getMenuInflater(); + menuInflater.inflate(R.menu.add_new_menu,menu); + return super.onCreateOptionsMenu(menu); + } + + @Override + public boolean onOptionsItemSelected(@NonNull MenuItem item) { + super.onOptionsItemSelected(item); + if(item.getItemId()==R.id.add_note){ + Intent intent = new Intent(getApplicationContext(),NoteEditorActivity.class); + startActivity(intent); + return true; + } + return false; + } + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + listView= findViewById(R.id.lv_listview);//use ..toi save space we don't want duplicates //new concept learn + SharedPreferences sharedPreferences= getApplicationContext().getSharedPreferences("com.example.bmrcalculator", Context.MODE_PRIVATE); + HashSet set = (HashSet) sharedPreferences.getStringSet("notes",null); + + if(set==null) + notes.add("Example note"); + else + notes = new ArrayList<>(set); + + + arrayAdapter= new ArrayAdapter<>(this, + android.R.layout.simple_list_item_1, + notes); + + listView.setAdapter(arrayAdapter); + listView.setOnItemClickListener(new AdapterView.OnItemClickListener() { + @Override + public void onItemClick(AdapterView adapterView, View view, int i, long l) { + Intent intent= new Intent(getApplicationContext(),NoteEditorActivity.class); + intent.putExtra("noteId",i); + startActivity(intent); + } + }); + + + listView.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() { + @Override + public boolean onItemLongClick(AdapterView adapterView, View view, int i, long l) { + + final int item_to_delete = i; + new AlertDialog.Builder( NoteStartActivity.this) + .setCancelable(false) + .setTitle("Are yiou sure?") + .setIcon(android.R.drawable.ic_dialog_alert) + .setMessage("Do you want to delete this note?") + .setPositiveButton("Ok", new DialogInterface.OnClickListener() { + @Override + public void onClick(DialogInterface dialogInterface, int i) { + notes.remove(item_to_delete); + arrayAdapter.notifyDataSetChanged(); + + SharedPreferences sharedPreferences= getApplicationContext().getSharedPreferences("com.example.bmrcalculator", Context.MODE_PRIVATE); + HashSet set= new HashSet<>(NoteStartActivity.notes); + sharedPreferences.edit().putStringSet("notes",set).apply(); + } + }) + .setNegativeButton("Cancel", new DialogInterface.OnClickListener() { + @Override + public void onClick(DialogInterface dialogInterface, int i) { + + } + }) + .show(); + + + return true; + } + }); + + } +} diff --git a/P02_HealthCalculator/Somyaguglani/Health Calculator complete/app/src/main/res/drawable/note_taking.jpg b/P02_HealthCalculator/Somyaguglani/Health Calculator complete/app/src/main/res/drawable/note_taking.jpg new file mode 100644 index 0000000000000000000000000000000000000000..f7d8b2e7db0884608f9a174af7fef560a261f2a6 GIT binary patch literal 11093 zcmYLvWmFt6v-ZN`uEiGL7N@vtv0bb{fklfKcP|cYk;1}aE$$R|cPlJVq-b$>r#J;J z@BQBI+)2)vNhXubuO#Q0=jqSWDu75?5vmA4K>+|zo*Uq40q_Zcje$u)6ykdl&wf|8n?ni|Z?%0Ny1l7*U*iI?#u8wWQxH#I%K2tTJVD;GBh z3Jwkq0X_i*5fLR9J?$&5XW{1J;QCL07UBP={yX9j{$JxibAtbW3CB|xfEWw#2e1c3 zVFI8MqX3Cfp85cw=N!?1&q@BD0MXDfP*5?kp1lwv04fR)1q~C3jgEnVg8sZ16$n5h zCP61<un?KD1 z@Sd|pB?b}$qyfhQnhGeYdF}WT2)qyADA*G~GavT}5Yx^&Pa%eCkv51I)V4|=JXk~< z?qz6qWHWZ->QFA#lR&y3V8exx0G{3GH7CHg%&!#X7-^U`nhk+#u7`dle?2n|T+$u*3+T^lsNT^s7Wi&0utm zcay#AO}2Rj&4x)WJTT9qP39qq-MD_g*E@I5ruaPzZuE8;z}rk6lezPB|>B!+lnNz@0Zd9R1ctIhhWrhpW*HBh9 zw~+w=oPj+v;GammC`Ja_t<3FVIUeG8b7F#-0H@0x&2sgx=$PwPuXu%>fhWnYjXK4x z!0f3HzvoMdC&)JwsK%T2!@6F8gE0x6gGB`OoD=T_5`XfeyXf&M!nB#coAS(^15!I* zv@N#o|FWp-zx?f+-N1(8mWq}->D46?AS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&Wz*L37A)xV}r$n0I0bYopeI}QUM5_cO{|lDLERXFJ?IwA}o*)EX`&{LzTei7Z>8T zYa!%swT^`~LaEy?2>xg}uwgd3JR=(MV$9h$fPw2$-At>ys;0YNw7=VjZ1_-2}Q<|08> zmeAD`7&z&D?Opt16@(Mju9v*Mw1SEOBPLSZ2sD0UcT50dB!uVus&K@|E~M~dVnZQO zzDxpgBn5H4>JUMF-Zj zP1JPW24@xgyDM>B{|OoNYFg85VhPH8WttOsmAm^hH4KO9=jG`U$1tBjU5 zoqJ5ua_Jou%N%*c`y9VQ(21CSIW+9MSr)HTEi}jQ@Kj-k`*Q}5crV;Xwqd(4FMil6;8?^ar5 zfY&jiU-MmrF_skrFC1Xk-`FL$i%;0{-^;-)auybQxxKaeZgz6z9i@TF_4RIh&(ARC zTWd!3tQa=BsSI&a^%ma%Mk^EKoQbl72glO)_#7y)F-=_=UmJl^8y&;7d8y;LrG`8o zQR=)I-rW`?eY3W2wX9lnaF9TW^!YPmhN*fCQ}^a0c+gx|ye$y`&S<`=5?q#N8;FS(8spPMmL-WxkJG4Zb93_AEamX}uwXCgg-@U1t>5sR!(9NrDE0wGDFR{^Ho`|>ShY=o*u@79CBnhy^nA^+M z#u#_jw3RYjJ_p1;eB08eVHv7asgWqwnWNJl&mDNS7R5P+DvE3Ti#_JdQ^{GqT#K + + diff --git a/P02_HealthCalculator/Somyaguglani/Health Calculator complete/app/src/main/res/layout/activity_note_editor.xml b/P02_HealthCalculator/Somyaguglani/Health Calculator complete/app/src/main/res/layout/activity_note_editor.xml new file mode 100644 index 00000000..fb148433 --- /dev/null +++ b/P02_HealthCalculator/Somyaguglani/Health Calculator complete/app/src/main/res/layout/activity_note_editor.xml @@ -0,0 +1,16 @@ + + + + + \ No newline at end of file diff --git a/P02_HealthCalculator/Somyaguglani/Health Calculator complete/app/src/main/res/layout/activity_note_start.xml b/P02_HealthCalculator/Somyaguglani/Health Calculator complete/app/src/main/res/layout/activity_note_start.xml new file mode 100644 index 00000000..22508e8a --- /dev/null +++ b/P02_HealthCalculator/Somyaguglani/Health Calculator complete/app/src/main/res/layout/activity_note_start.xml @@ -0,0 +1,19 @@ + + + + + + + + \ No newline at end of file diff --git a/P02_HealthCalculator/Somyaguglani/Health Calculator complete/app/src/main/res/menu/add_new_menu.xml b/P02_HealthCalculator/Somyaguglani/Health Calculator complete/app/src/main/res/menu/add_new_menu.xml new file mode 100644 index 00000000..d7834c5e --- /dev/null +++ b/P02_HealthCalculator/Somyaguglani/Health Calculator complete/app/src/main/res/menu/add_new_menu.xml @@ -0,0 +1,9 @@ + + + + + + + \ No newline at end of file diff --git a/P02_HealthCalculator/Somyaguglani/Health Calculator complete/app/src/main/res/values/strings.xml b/P02_HealthCalculator/Somyaguglani/Health Calculator complete/app/src/main/res/values/strings.xml index 68b751fa..31dca1f9 100644 --- a/P02_HealthCalculator/Somyaguglani/Health Calculator complete/app/src/main/res/values/strings.xml +++ b/P02_HealthCalculator/Somyaguglani/Health Calculator complete/app/src/main/res/values/strings.xml @@ -16,4 +16,6 @@ Severe Underweight Moderate weight BODY FAT PERCENTAGE IS + add_note + Add note