Commit a04cc19a authored by 9731301's avatar 9731301

change custom drawer to drawer navigation and change background

parent f631d444
package com.example.mynotepad;
import androidx.appcompat.app.AppCompatActivity;
import androidx.drawerlayout.widget.DrawerLayout;
import androidx.room.Room;
import android.annotation.SuppressLint;
import android.content.Intent;
import android.os.Bundle;
import android.view.Gravity;
import android.view.MenuItem;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.ImageView;
import android.widget.TextView;
import com.example.mynotepad.Menu.CustomMenu;
import com.example.mynotepad.MenuFeatures.AllArchivedNotes.ArchivedNotesActivity;
import com.example.mynotepad.MenuFeatures.AllNotes.AllNotesActivity;
import com.example.mynotepad.MenuFeatures.AllNotes.DataBase.NoteDataBase;
import com.example.mynotepad.MenuFeatures.Information.InfoClickListener;
import com.example.mynotepad.MenuFeatures.Information.Information;
import com.example.mynotepad.MenuFeatures.Calender.MyCalenderActivity;
import com.example.mynotepad.MenuFeatures.Pics.PicsActivity;
import com.example.mynotepad.MenuFeatures.Setting.SettingActivity;
import com.example.mynotepad.MenuFeatures.VoiceMassages.VoiceMassagesActivity;
import com.google.android.material.navigation.NavigationView;
public class MainActivity extends AppCompatActivity implements View.OnClickListener {
public class MainActivity extends AppCompatActivity implements NavigationView.OnNavigationItemSelectedListener {
private ImageView toolbarListImg;
private CustomMenu customMenu;
private TextView wlcTxt;
private Information informationView;
public static NoteDataBase noteDataBase;
@Override
......@@ -33,52 +34,70 @@ public class MainActivity extends AppCompatActivity implements View.OnClickListe
setWlcTxt();
}
private void setWlcTxt() {
//ToDo with shared Prefrences in setting
//if () else()
wlcTxt.setText("welcome :)");
wlcTxt.setTextSize(30);
wlcTxt.setGravity(Gravity.CENTER);
}
private void init() {
noteDataBase = Room.databaseBuilder(this, NoteDataBase.class, "RoomDb").fallbackToDestructiveMigration().allowMainThreadQueries().build();
customMenu = findViewById(R.id.mainListItem);
customMenu.setVisibility(customMenu.GONE);
wlcTxt = findViewById(R.id.wlcTxt);
toolbarListImg = findViewById(R.id.toolbarList);
informationView = findViewById(R.id.infoView);
informationView.setVisibility(View.GONE);
toolbarListImg.setOnClickListener(this);
findViewById(R.id.main).setOnClickListener(this);
customMenu.setOnClickListener(this);
final DrawerLayout drawerLayout = findViewById(R.id.drawerLayout);
NavigationView navigationView = findViewById(R.id.main_menu);//menu drawer in ui
navigationView.setNavigationItemSelectedListener(this);
customMenu.setInfoClickListener(new InfoClickListener() {
ImageView toolbarListImg = findViewById(R.id.toolbarList);
toolbarListImg.setOnClickListener(new View.OnClickListener() {
@SuppressLint("WrongConstant")
@Override
public void onInfoTvClicked(TextView infoTv) {
informationView.setVisibility(View.VISIBLE);
public void onClick(View v) {
if(!drawerLayout.isDrawerOpen(Gravity.START))
drawerLayout.openDrawer(Gravity.START);
else drawerLayout.closeDrawer(Gravity.END);
}
});
}
private void setWlcTxt() {
//ToDo with shared Prefrences in setting
//if () else()
wlcTxt.setText("welcome :)");
}
@SuppressLint("NonConstantResourceId")
@Override
public void onClick(View view) {
if (view.getId() == toolbarListImg.getId() || customMenu.getId() == view.getId()) {
if (view.getId() == toolbarListImg.getId()){//start animation
Animation animOpen = AnimationUtils.loadAnimation(this,R.anim.menu_anim_open);
customMenu.startAnimation(animOpen);
public boolean onNavigationItemSelected(MenuItem item) {
// Handle navigation view item clicks here.
int id = item.getItemId();
switch (id) {
case R.id.allNotes:{
startActivity(new Intent(getApplicationContext(), AllNotesActivity.class));
break;
}
case R.id.favorites:{
startActivity(new Intent(getApplicationContext(), ArchivedNotesActivity.class));
break;
}
case R.id.folders:{
break;
}
case R.id.calender:{
startActivity(new Intent(getApplicationContext(), MyCalenderActivity.class));
break;
}
case R.id.voiceMassages:{
startActivity(new Intent(getApplicationContext(), VoiceMassagesActivity.class));
break;
}
case R.id.notedPics:{
startActivity(new Intent(getApplicationContext(), PicsActivity.class));
break;
}
case R.id.programs:{
}
case R.id.setting:{
startActivity(new Intent(getApplicationContext(), SettingActivity.class));
}
case R.id.information:{
}
customMenu.setVisibility(customMenu.VISIBLE);
informationView.setVisibility(View.GONE);
} else if (R.id.main == view.getId()) {
if (customMenu.getVisibility() == View.VISIBLE)
customMenu.startAnimation(AnimationUtils.loadAnimation(this , R.anim.menu_anim_close));
customMenu.setVisibility(customMenu.GONE);
informationView.setVisibility(View.GONE);
}
return true;
}
}
\ No newline at end of file
package com.example.mynotepad.Menu;
import android.content.Context;
import android.content.Intent;
import android.util.AttributeSet;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.example.mynotepad.MenuFeatures.AllArchivedNotes.ArchivedNotesActivity;
import com.example.mynotepad.MenuFeatures.AllNotes.AllNotesActivity;
import com.example.mynotepad.MenuFeatures.Calender.MyCalenderActivity;
import com.example.mynotepad.MenuFeatures.Information.InfoClickListener;
import com.example.mynotepad.MenuFeatures.Setting.SettingActivity;
import com.example.mynotepad.MenuFeatures.VoiceMassages.VoiceMassagesActivity;
import com.example.mynotepad.R;
import com.google.android.material.snackbar.Snackbar;
public class CustomMenu extends LinearLayout implements View.OnClickListener {
private View rootView;
private TextView settingTv, allNotesTv, archivedTv, calenderTv, informationTv, voiceMassagesTv;
private ImageView img;
private InfoClickListener infoClickListener;
public CustomMenu(Context context) {
super(context);
init(context);
}
public CustomMenu(Context context, AttributeSet attrs) {
super(context, attrs);
init(context);
}
private void init(Context context) {
rootView = inflate(context, R.layout.custom_menu, this);
settingTv = findViewById(R.id.settingTxt);
allNotesTv = findViewById(R.id.allNotesTxt);
archivedTv = findViewById(R.id.archivedTxt);
calenderTv = findViewById(R.id.calenderTxt);
informationTv = findViewById(R.id.infoTxt);
voiceMassagesTv = findViewById(R.id.voiceTxt);
img = findViewById(R.id.imageView5);
settingTv.setOnClickListener(this);
allNotesTv.setOnClickListener(this);
archivedTv.setOnClickListener(this);
calenderTv.setOnClickListener(this);
informationTv.setOnClickListener(this);
voiceMassagesTv.setOnClickListener(this);
img.setOnClickListener(this);
}
@Override
public void onClick(View view) {
if (view.getId() == settingTv.getId()) {
showSetting();
} else if (view.getId() == allNotesTv.getId()) {
showAllNotes();
} else if (view.getId() == archivedTv.getId()) {
showArchived();
} else if (view.getId() == calenderTv.getId()) {
showCalender();
} else if (view.getId() == informationTv.getId()) {
infoClickListener.onInfoTvClicked(informationTv);
} else if (view.getId() == voiceMassagesTv.getId()) {
showVoiceMassages();
} else {
Snackbar.make(view, "this is zahra's app ;)", Snackbar.LENGTH_LONG).setAction("Action", null).show();
}
}
private void showVoiceMassages() {
Intent intent = new Intent(getContext(), VoiceMassagesActivity.class);
getContext().startActivity(intent);
}
private void showCalender() {
Intent intent = new Intent(getContext(), MyCalenderActivity.class);
getContext().startActivity(intent);
}
private void showArchived() {
Intent newIntent = new Intent(getContext(), ArchivedNotesActivity.class);
getContext().startActivity(newIntent);
}
private void showSetting() {
Intent newIntent = new Intent(getContext(), SettingActivity.class);
getContext().startActivity(newIntent);
}
private void showAllNotes() {
Intent newIntent = new Intent(getContext(), AllNotesActivity.class);
getContext().startActivity(newIntent);
}
public void setInfoClickListener(InfoClickListener infoClickListener) {
this.infoClickListener = infoClickListener;
}
}
......@@ -26,6 +26,7 @@ import com.example.mynotepad.MenuFeatures.Calender.MyCalenderRecyclerView.TimePi
import com.example.mynotepad.MenuFeatures.CustomToolbarOption;
import com.example.mynotepad.MenuFeatures.CustomToolbarOptionListener;
import com.example.mynotepad.R;
import com.google.android.material.floatingactionbutton.FloatingActionButton;
import java.util.ArrayList;
import java.util.List;
......@@ -34,7 +35,7 @@ import static com.example.mynotepad.MainActivity.noteDataBase;
public class ArchivedNoesListFragment extends Fragment {
private FloatingActionButton addNoteButton;
private CustomToolbarOption customToolbarOption;
private FrameLayout allNoteToolBar;
private RecyclerView recyclerView;
......@@ -50,7 +51,7 @@ public class ArchivedNoesListFragment extends Fragment {
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
return inflater.inflate(R.layout.fragment_archived_noes_list, container, false);
return inflater.inflate(R.layout.fragment_all_notes_list, container, false);
}
@Override
......@@ -63,15 +64,18 @@ public class ArchivedNoesListFragment extends Fragment {
// get data from database
setAllNoteListAndTitles();
setAllDateNoteListAndTitles();
customToolbarOption = view.findViewById(R.id.customToolbarOption2);
customToolbarOption = view.findViewById(R.id.customToolbarOption);
customToolbarOption.setVisibility(View.GONE);
allNoteToolBar = view.findViewById(R.id.allNotesToolbar2);
allNoteToolBar = view.findViewById(R.id.toolbar);
allNoteToolBar.setEnabled(false);
navController = Navigation.findNavController(view);
//hide add button in favourite list
addNoteButton = view.findViewById(R.id.addButton);
addNoteButton.setVisibility(View.GONE);
// show list with recycler view
recyclerView = view.findViewById(R.id.recyclerView2);
recyclerView = view.findViewById(R.id.recyclerView);
LinearLayoutManager linearLayoutManager = new LinearLayoutManager(getContext(), LinearLayoutManager.VERTICAL, false);
myarchivedAdaptor = new MyArchivedAdaptor(myNotes, myDates);
recyclerView.setAdapter(myarchivedAdaptor);
......
......@@ -62,9 +62,9 @@ public class AllNotesListFragment extends Fragment {
customToolbarOption = view.findViewById(R.id.customToolbarOption);
customToolbarOption.setVisibility(View.GONE);
allNoteToolBar = view.findViewById(R.id.allNotesToolbar);
allNoteToolBar = view.findViewById(R.id.toolbar);
allNoteToolBar.setEnabled(false);
addNoteButton = view.findViewById(R.id.addNoteButton);
addNoteButton = view.findViewById(R.id.addButton);
navController = Navigation.findNavController(view);
// show list with recycler view
......
......@@ -18,7 +18,6 @@ import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.Toast;
import com.example.mynotepad.MenuFeatures.AllNotes.DataBase.DateEntity;
import com.example.mynotepad.MenuFeatures.AllNotes.Note.NoteFragment;
import com.example.mynotepad.MenuFeatures.Calender.MyCalenderRecyclerView.MyCalenderAdaptor;
import com.example.mynotepad.MenuFeatures.Calender.MyCalenderRecyclerView.OnCalenderItemClickListener;
import com.example.mynotepad.MenuFeatures.Calender.MyCalenderRecyclerView.TimePicker.DatePickerActivity;
......@@ -49,7 +48,7 @@ public class CalenderNotesListFragment extends Fragment {
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
return inflater.inflate(R.layout.fragment_calender_notes_list, container, false);
return inflater.inflate(R.layout.fragment_all_notes_list, container, false);
}
@Override
......@@ -73,17 +72,17 @@ public class CalenderNotesListFragment extends Fragment {
private void init(View view) {
setAllDateNoteListAndTitles();
addDateBtn = view.findViewById(R.id.addDateButton);
addDateBtn = view.findViewById(R.id.addButton);
customToolbarOption = view.findViewById(R.id.calenderCustomToolbarOption);
customToolbarOption = view.findViewById(R.id.customToolbarOption);
customToolbarOption.setVisibility(View.GONE);
calenderToolbar = view.findViewById(R.id.calenderToolbar);
calenderToolbar = view.findViewById(R.id.toolbar);
calenderToolbar.setEnabled(false);
addDateBtn = view.findViewById(R.id.addDateButton);
addDateBtn = view.findViewById(R.id.addButton);
navController = Navigation.findNavController(view);
// show list with recycler view
recyclerView = view.findViewById(R.id.calenderRecyclerView);
recyclerView = view.findViewById(R.id.recyclerView);
LinearLayoutManager linearLayoutManager = new LinearLayoutManager(getContext(), LinearLayoutManager.VERTICAL, false);
myAdaptor = new MyCalenderAdaptor(myDates);
recyclerView.setAdapter(myAdaptor);
......
......@@ -7,6 +7,7 @@ import android.app.AlertDialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
......@@ -25,22 +26,23 @@ import static com.example.mynotepad.MainActivity.noteDataBase;
public class DatePickerActivity extends AppCompatActivity {
private DateEntity dateEntity;
private TextView chosenDate, description;
private EditText chosenDate;
private TextView description;
private Date mDate;
private FloatingActionButton back;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_date_picker);
setContentView(R.layout.fragment_note);
init();
showTimePicker();
}
private void init() {
chosenDate = findViewById(R.id.chosenDate);
description = findViewById(R.id.description);
back = findViewById(R.id.calenderBackBtn);
chosenDate = findViewById(R.id.myTitle);
description = findViewById(R.id.textBody);
back = findViewById(R.id.backBtn);
back.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
......
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
android:shape="rectangle">
<solid android:color="#83B5DD"/>
<stroke
android:width="15dp"
android:color="#9983B5DD"/>
<corners android:radius="0dp"/>
</shape>
\ No newline at end of file
......@@ -2,10 +2,10 @@
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#83B5DD"/>
<solid android:color="#A0B9Fc"/>
<stroke
android:width="15dp"
android:color="#4883B5DD"/>
<corners android:radius="0dp"/>
android:width="20dp"
android:color="#16A0B9FC"/>
<corners android:radius="20dp"/>
</shape>
\ No newline at end of file
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M10,4H4c-1.1,0 -1.99,0.9 -1.99,2L2,18c0,1.1 0.9,2 2,2h16c1.1,0 2,-0.9 2,-2V8c0,-1.1 -0.9,-2 -2,-2h-8l-2,-2z"/>
</vector>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FF000000"
android:pathData="M22,16V4c0,-1.1 -0.9,-2 -2,-2H8c-1.1,0 -2,0.9 -2,2v12c0,1.1 0.9,2 2,2h12c1.1,0 2,-0.9 2,-2zm-11,-4l2.03,2.71L16,11l4,5H8l3,-4zM2,6v14c0,1.1 0.9,2 2,2h14v-2H4V6H2z" />
</vector>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M19,2h-4.18C14.4,0.84 13.3,0 12,0c-1.3,0 -2.4,0.84 -2.82,2L5,2c-1.1,0 -2,0.9 -2,2v16c0,1.1 0.9,2 2,2h14c1.1,0 2,-0.9 2,-2L21,4c0,-1.1 -0.9,-2 -2,-2zM12,2c0.55,0 1,0.45 1,1s-0.45,1 -1,1 -1,-0.45 -1,-1 0.45,-1 1,-1zM19,20L5,20L5,4h2v3h10L17,4h2v16z"/>
</vector>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MenuFeatures.Calender.MyCalenderRecyclerView.TimePicker.DatePickerActivity">
<ImageView
android:id="@+id/img"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_marginTop="0dp"
android:scaleType="fitXY"
app:srcCompat="@drawable/index" />
<TextView
android:id="@+id/date1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/img"
android:layout_marginStart="50dp"
android:layout_marginLeft="50dp"
android:layout_marginTop="60dp"
android:background="@drawable/background"
android:enabled="false"
android:text="@string/date"
android:textColor="#000000"
android:textSize="30dp" />
<TextView
android:id="@+id/chosenDate"
android:layout_width="219dp"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/date1"
android:layout_marginLeft="20dp"
android:layout_marginBottom="0dp"
android:layout_toRightOf="@+id/date1"
android:background="@drawable/title_background"
android:enabled="false"
android:gravity="center"
android:lines="1"
android:textColor="#000000"
android:textSize="30dp" />
<TextView
android:id="@+id/date2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/chosenDate"
android:layout_marginStart="50dp"
android:layout_marginLeft="50dp"
android:layout_marginTop="60dp"
android:background="@drawable/background"
android:enabled="false"
android:text="@string/description"
android:textColor="#000000"
android:textSize="30dp" />
<LinearLayout
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_below="@+id/date2"
android:layout_centerHorizontal="true"
android:layout_marginLeft="50dp"
android:layout_marginTop="21dp"
android:background="@drawable/title_background"
>
<EditText
android:id="@+id/description"
android:layout_width="260dp"
android:layout_height="match_parent"
android:layout_marginLeft="20dp"
android:gravity="top"
android:lines="9"
android:textColor="#000000"
android:layout_marginStart="20dp" />
</LinearLayout>
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/calenderBackBtn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_marginRight="30dp"
android:layout_marginBottom="30dp"
android:src="@drawable/ic_baseline_keyboard_backspace_24"
app:backgroundTint="#DF4141"
android:layout_marginEnd="30dp"
android:layout_alignParentEnd="true" />
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
<androidx.drawerlayout.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/drawerLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/main_bg_bright"
android:orientation="vertical">
<RelativeLayout
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/wlcTxt"
android:layout_width="0dp"
android:layout_height="80dp"
android:layout_centerHorizontal="true"
android:textSize="30dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="@+id/toolBarId"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/toolBarId"
android:gravity="center"
android:textColor="#0652DD"
android:textStyle="bold"/>
<Toolbar
android:id="@+id/toolBarId"
android:layout_width="match_parent"
android:layout_height="50dp"
android:background="#457FAE"
android:layout_height="?attr/actionBarSize"
android:background="@drawable/bg_toolbar"
app:layout_constraintTop_toTopOf="parent"
tools:targetApi="lollipop">
<ImageView
android:id="@+id/toolbarList"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:adjustViewBounds="true"
android:src="@drawable/list" />
</Toolbar>
<RelativeLayout
android:id="@+id/main"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/toolBarId"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_marginTop="-6dp"
android:layout_marginEnd="-2dp"
android:layout_marginRight="-2dp"
android:background="@drawable/simple_color">
<ImageView
android:id="@+id/imageView"
android:layout_width="356dp"
android:layout_height="271dp"
android:layout_centerInParent="true"
android:src="@drawable/stones" />
<TextView
android:id="@+id/wlcTxt"
android:layout_centerHorizontal="true"
android:layout_width="wrap_content"
android:layout_height="73dp"
android:layout_above="@+id/imageView"
android:layout_marginBottom="30dp"/>
</RelativeLayout>
</RelativeLayout>
<com.example.mynotepad.Menu.CustomMenu
android:id="@+id/mainListItem"
android:layout_width="270dp"
android:layout_height="match_parent"
android:layout_alignParentTop="true"
android:layout_marginTop="2dp" />
<com.example.mynotepad.MenuFeatures.Information.Information
android:id="@+id/infoView"
</androidx.constraintlayout.widget.ConstraintLayout>
<com.google.android.material.navigation.NavigationView
android:id="@+id/main_menu"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center" />
</FrameLayout>
\ No newline at end of file
android:layout_height="match_parent"
android:layout_gravity="start"
android:fitsSystemWindows="true"
android:background="#F083B5DD"
app:headerLayout="@layout/menu_header"
app:menu="@menu/drawer_menu" />
</androidx.drawerlayout.widget.DrawerLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"
android:layout_height="100dp"
android:layout_height="160dp"
android:orientation="vertical"
android:background="@drawable/row_bg">
android:background="@drawable/bg_row">
<TextView
android:id="@+id/titleTv"
......@@ -14,6 +14,7 @@
android:layout_marginRight="15dp"
android:layout_marginTop="5dp"
android:text="title"
android:padding="5dp"
android:textColor="#000A43"
android:textSize="20dp" />
......
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="260dp"
android:layout_height="match_parent"
android:background="@drawable/background"
android:orientation="vertical">
<ImageView
android:id="@+id/imageView5"
android:layout_width="match_parent"
android:layout_height="51dp"
android:scaleType="fitXY"
app:srcCompat="@drawable/index" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<LinearLayout
android:id="@+id/imagesLinearLayout"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:orientation="vertical">
<ImageView
android:id="@+id/imageView2"
android:layout_width="22dp"
android:layout_height="22dp"
android:layout_marginLeft="18dp"
android:layout_marginTop="12dp"
android:src="@drawable/notes" />
<ImageView
android:id="@+id/imageView3"
android:layout_width="22dp"
android:layout_height="22dp"
android:layout_marginLeft="18dp"
android:layout_marginTop="15dp"
android:src="@drawable/black_star" />
<ImageView
android:id="@+id/voiceImg"
android:layout_width="22dp"
android:layout_height="22dp"
android:layout_marginLeft="18dp"
android:layout_marginTop="15dp"
android:src="@drawable/voice" />
<ImageView
android:id="@+id/calenderImg"
android:layout_width="22dp"
android:layout_height="22dp"
android:layout_marginLeft="18dp"
android:layout_marginTop="15dp"
android:src="@drawable/calender" />
<ImageView
android:id="@+id/imageView4"
android:layout_width="22dp"
android:layout_height="22dp"
android:layout_marginLeft="18dp"
android:layout_marginTop="15dp"
android:src="@drawable/setting" />
<ImageView
android:id="@+id/infoImg"
android:layout_width="22dp"
android:layout_height="22dp"
android:layout_marginLeft="18dp"
android:layout_marginTop="17dp"
android:src="@drawable/information" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/allNotesTxt"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginLeft="20dp"
android:layout_marginTop="10dp"
android:layout_weight="5"
android:gravity="center_vertical"
android:text="@string/all_notes"
android:textSize="20dp" />
<TextView
android:id="@+id/archivedTxt"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginLeft="20dp"
android:layout_marginTop="10dp"
android:layout_weight="6"
android:gravity="center_vertical"
android:text="@string/archived"
android:textSize="20dp" />
<TextView
android:id="@+id/voiceTxt"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="20dp"
android:layout_marginTop="10dp"
android:gravity="center_vertical"
android:text="@string/voice_massages"
android:textSize="20dp" />
<TextView
android:id="@+id/calenderTxt"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="20dp"
android:layout_marginTop="10dp"
android:gravity="center_vertical"
android:text="@string/calender"
android:textSize="20dp" />
<TextView
android:id="@+id/settingTxt"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginLeft="20dp"
android:layout_marginTop="10dp"
android:gravity="center_vertical"
android:text="@string/setting"
android:textSize="20dp" />
<TextView
android:id="@+id/infoTxt"
android:layout_width="193dp"
android:layout_height="match_parent"
android:layout_marginLeft="20dp"
android:layout_marginTop="10dp"
android:gravity="center_vertical"
android:text="@string/information"
android:textSize="20dp" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
......@@ -2,7 +2,7 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="50dp"
android:background="@drawable/all_notes_bg"
android:background="@drawable/bg_toolbar"
android:orientation="horizontal">
......
......@@ -2,7 +2,7 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="80dp"
android:background="@drawable/row_bg">
android:background="@drawable/bg_row">
<FrameLayout
android:id="@+id/start_stopBtn"
......
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:background="@drawable/main_bg_bright"
android:orientation="vertical"
tools:context=".MenuFeatures.AllNotes.AllNotesListFragment">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<FrameLayout
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<FrameLayout
android:id="@+id/allNotesToolbar"
<ImageView
android:id="@+id/imageView7"
android:layout_width="match_parent"
android:layout_height="wrap_content">
android:layout_height="50dp"
android:scaleType="fitXY"
app:srcCompat="@drawable/index" />
<ImageView
android:id="@+id/imageView7"
android:layout_width="match_parent"
android:layout_height="50dp"
android:scaleType="fitXY"
app:srcCompat="@drawable/index" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:enabled="false"
android:text="@string/all_notes"
android:textColor="#02091E"
android:textSize="26dp" />
</FrameLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:enabled="false"
android:text="@string/all_notes"
android:textColor="#02091E"
android:textSize="26dp" />
</FrameLayout>
<com.example.mynotepad.MenuFeatures.CustomToolbarOption
android:id="@+id/customToolbarOption"
android:layout_width="match_parent"
android:layout_height="50dp" />
<com.example.mynotepad.MenuFeatures.CustomToolbarOption
android:id="@+id/customToolbarOption"
android:layout_width="match_parent"
android:layout_height="50dp" />
</FrameLayout>
</FrameLayout>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<FrameLayout
android:layout_width="wrap_content"
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerView"
android:layout_width="409dp"
android:layout_height="match_parent"
android:background="#4883B5DD"
tools:layout_editor_absoluteX="1dp"
tools:layout_editor_absoluteY="1dp" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerView"
android:layout_width="409dp"
android:layout_height="match_parent"
android:background="#4883B5DD"
tools:layout_editor_absoluteX="1dp"
tools:layout_editor_absoluteY="1dp" />
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/addNoteButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"
android:layout_marginBottom="30dp"
android:layout_marginRight="30dp"
android:clickable="true"
android:src="@drawable/add"
app:backgroundTint="#5266D5"
tools:layout_editor_absoluteX="310dp"
tools:layout_editor_absoluteY="612dp"
android:layout_alignParentEnd="true"
android:focusable="true" />
</RelativeLayout>
</FrameLayout>
</LinearLayout>
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/addButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"
android:layout_marginRight="16dp"
android:layout_marginBottom="16dp"
android:clickable="true"
android:focusable="true"
android:src="@drawable/add"
app:backgroundTint="#EA2027"
tools:layout_editor_absoluteX="310dp"
tools:layout_editor_absoluteY="612dp" />
</RelativeLayout>
</FrameLayout>
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".MenuFeatures.AllArchivedNotes.ArchivedNoesListFragment">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<FrameLayout
android:id="@+id/allNotesToolbar2"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/imageView72"
android:layout_width="match_parent"
android:layout_height="50dp"
android:scaleType="fitXY"
app:srcCompat="@drawable/index" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:enabled="false"
android:text="@string/archived"
android:textColor="#02091E"
android:textSize="26dp" />
</FrameLayout>
<com.example.mynotepad.MenuFeatures.CustomToolbarOption
android:id="@+id/customToolbarOption2"
android:layout_width="match_parent"
android:layout_height="50dp" />
</FrameLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerView2"
android:layout_width="409dp"
android:layout_height="match_parent"
android:background="#4883B5DD"
tools:layout_editor_absoluteX="1dp"
tools:layout_editor_absoluteY="1dp" />
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".MenuFeatures.Calender.CalenderNotesListFragment">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<FrameLayout
android:id="@+id/calenderToolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/imageView7"
android:layout_width="match_parent"
android:layout_height="50dp"
android:scaleType="fitXY"
app:srcCompat="@drawable/index"
tools:ignore="ContentDescription" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginLeft="10dp"
android:enabled="false"
android:text="@string/calender"
android:textColor="#02091E"
android:textSize="26dp"
android:layout_marginStart="10dp"
tools:ignore="SpUsage" />
</FrameLayout>
<com.example.mynotepad.MenuFeatures.CustomToolbarOption
android:id="@+id/calenderCustomToolbarOption"
android:layout_width="match_parent"
android:layout_height="50dp" />
</FrameLayout>
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="match_parent">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:ignore="UselessParent">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/calenderRecyclerView"
android:layout_width="409dp"
android:layout_height="match_parent"
android:background="#4883B5DD"
tools:layout_editor_absoluteX="1dp"
tools:layout_editor_absoluteY="1dp" />
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/addDateButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"
android:layout_marginRight="30dp"
android:layout_marginBottom="30dp"
android:clickable="true"
android:src="@drawable/add"
app:backgroundTint="#5266D5"
tools:layout_editor_absoluteX="310dp"
tools:layout_editor_absoluteY="612dp"
tools:ignore="KeyboardInaccessibleWidget,RtlHardcoded" />
</RelativeLayout>
</FrameLayout>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<RelativeLayout
android:id="@+id/myTitleParent"
android:background="@drawable/notes_bg"
android:orientation="vertical"
android:visibility="visible">
<EditText
android:id="@+id/myTitle"
android:layout_width="311dp"
android:layout_height="48dp"
android:layout_marginTop="52dp"
android:hint=" title"
android:textColor="@color/black"
android:textSize="24dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<EditText
android:id="@+id/textBody"
android:layout_width="341dp"
android:layout_height="0dp"
android:layout_alignParentBottom="true"
android:layout_marginTop="8dp"
android:layout_marginBottom="20dp"
android:gravity="top"
android:hint="@string/dots"
android:selectAllOnFocus="false"
android:textColor="#000000"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.492"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/myTitle"
app:layout_constraintVertical_bias="0.353" />
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/backBtn"
android:layout_width="wrap_content"
android:layout_height="50dp"
android:layout_marginLeft="10dp"
android:layout_marginTop="5dp"
android:layout_marginRight="10dp"
android:background="@drawable/title_background">
<EditText
android:id="@+id/myTitle"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:hint=" title"
android:textSize="24dp" />
</RelativeLayout>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/myTitleParent2"
android:layout_below="@id/myTitleParent">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignTop="@+id/myTitleParent"
android:layout_marginLeft="10dp"
android:layout_marginTop="10dp"
android:layout_marginRight="10dp"
android:layout_marginBottom="10dp"
android:background="@drawable/description_backgroung"
android:gravity="top">
<EditText
android:id="@+id/textBody"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="top"
android:hint="@string/dots"
android:layout_marginRight="10dp"
android:layout_marginLeft="10dp"/>
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/backBtn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"
android:layout_marginRight="30dp"
android:layout_marginBottom="30dp"
android:src="@drawable/ic_baseline_keyboard_backspace_24"
app:backgroundTint="#DF4141" />
</RelativeLayout>
</FrameLayout>
</RelativeLayout>
\ No newline at end of file
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"
android:layout_marginEnd="16dp"
android:layout_marginRight="16dp"
android:layout_marginBottom="16dp"
android:src="@drawable/ic_baseline_keyboard_backspace_24"
app:backgroundTint="#EA2027"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
......@@ -26,8 +26,7 @@
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:src="@drawable/stones" />
android:layout_gravity="center_horizontal" />
<Chronometer
android:id="@+id/chronometerTimer"
......
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="@drawable/index">
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
......@@ -14,5 +14,5 @@
<item
android:id="@+id/navigation_picturedNoteList"
android:icon="@drawable/list"
android:title="pictured notes" />
android:title="noted pics" />
</menu>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
tools:showIn="navigation_view">
<group>
<item
android:id="@+id/allNotes"
android:icon="@drawable/notes"
android:title="@string/all_notes" />
<item
android:id="@+id/favorites"
android:icon="@drawable/black_star"
android:title="@string/favourites" />
<item
android:id="@+id/folders"
android:title="@string/folders"
android:icon="@drawable/folder"/>
<item android:title="@string/calender"
android:id="@+id/calender"
android:icon="@drawable/calender"/>
<item android:title="@string/voice_massages"
android:id="@+id/voiceMassages"
android:icon="@drawable/voice"/>
<item
android:id="@+id/notedPics"
android:icon="@drawable/noted_pics"
android:title="@string/noted_pics" />
<item android:title="@string/programs"
android:id="@+id/programs"
android:icon="@drawable/program"/>
<item android:title="@string/setting"
android:id="@+id/setting"
android:icon="@drawable/setting"/>
<item android:title="@string/information"
android:id="@+id/information"
android:icon="@drawable/information"/>
</group>
</menu>
\ No newline at end of file
......@@ -17,4 +17,8 @@
<string name="file_name">file name</string>
<string name="camera">camera</string>
<string name="gallery">gallery</string>
<string name="favourites">favourites</string>
<string name="noted_pics">noted pics</string>
<string name="programs">programs</string>
<string name="folders">folders</string>
</resources>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment