\hypertarget{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_1_1_simple_adapter}{}\doxysection{com.\+sudogeeks.\+talking\+\_\+reminder.\+Main\+Activity.\+Simple\+Adapter Class Reference}
\label{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_1_1_simple_adapter}\index{com.sudogeeks.talking\_reminder.MainActivity.SimpleAdapter@{com.sudogeeks.talking\_reminder.MainActivity.SimpleAdapter}}


Adapter class (Inner Class) for implementing recycler view.  


Inheritance diagram for com.\+sudogeeks.\+talking\+\_\+reminder.\+Main\+Activity.\+Simple\+Adapter\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_1_1_simple_adapter}
\end{center}
\end{figure}
\doxysubsection*{Classes}
\begin{DoxyCompactItemize}
\item 
class \mbox{\hyperlink{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_1_1_simple_adapter_1_1_date_time_comparator}{Date\+Time\+Comparator}}
\item 
class \mbox{\hyperlink{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_1_1_simple_adapter_1_1_reminder_item}{Reminder\+Item}}
\item 
class \mbox{\hyperlink{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_1_1_simple_adapter_1_1_vertical_item_holder}{Vertical\+Item\+Holder}}
\end{DoxyCompactItemize}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_1_1_simple_adapter_a6193b374f7d62f233478001e77ba5751}\label{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_1_1_simple_adapter_a6193b374f7d62f233478001e77ba5751}} 
void {\bfseries on\+Delete\+Item} (int count)
\item 
\mbox{\Hypertarget{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_1_1_simple_adapter_acadb1d9b3d7e5857ebaae77c31d9b192}\label{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_1_1_simple_adapter_acadb1d9b3d7e5857ebaae77c31d9b192}} 
void {\bfseries remove\+Item\+Selected} (int selected)
\item 
\mbox{\hyperlink{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_1_1_simple_adapter_1_1_vertical_item_holder}{Vertical\+Item\+Holder}} \mbox{\hyperlink{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_1_1_simple_adapter_a3e4c48f08bcc04c7829e5d1e05631116}{on\+Create\+View\+Holder}} (View\+Group container, int view\+Type)
\item 
void \mbox{\hyperlink{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_1_1_simple_adapter_ae1d02199de61b4df15813e12bed737eb}{on\+Bind\+View\+Holder}} (\mbox{\hyperlink{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_1_1_simple_adapter_1_1_vertical_item_holder}{Vertical\+Item\+Holder}} item\+Holder, int position)
\item 
int \mbox{\hyperlink{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_1_1_simple_adapter_abc29da753e6a79143a1cc62244020eaf}{get\+Item\+Count}} ()
\item 
\mbox{\Hypertarget{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_1_1_simple_adapter_a98e716cbaba43d063af3ef684eca0254}\label{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_1_1_simple_adapter_a98e716cbaba43d063af3ef684eca0254}} 
void {\bfseries set\+Item\+Count} (int count)
\item 
List$<$ \mbox{\hyperlink{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_1_1_simple_adapter_1_1_reminder_item}{Reminder\+Item}} $>$ \mbox{\hyperlink{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_1_1_simple_adapter_afba77d47c807f8e63cd62104f7e847c3}{generate\+Data}} (int count)
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Adapter class (Inner Class) for implementing recycler view. 

This class will handle how to display the reminder data on the main page. 

Definition at line 405 of file Main\+Activity.\+java.



\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_1_1_simple_adapter_afba77d47c807f8e63cd62104f7e847c3}\label{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_1_1_simple_adapter_afba77d47c807f8e63cd62104f7e847c3}} 
\index{com.sudogeeks.talking\_reminder.MainActivity.SimpleAdapter@{com.sudogeeks.talking\_reminder.MainActivity.SimpleAdapter}!generateData@{generateData}}
\index{generateData@{generateData}!com.sudogeeks.talking\_reminder.MainActivity.SimpleAdapter@{com.sudogeeks.talking\_reminder.MainActivity.SimpleAdapter}}
\doxysubsubsection{\texorpdfstring{generateData()}{generateData()}}
{\footnotesize\ttfamily List$<$\mbox{\hyperlink{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_1_1_simple_adapter_1_1_reminder_item}{Reminder\+Item}}$>$ com.\+sudogeeks.\+talking\+\_\+reminder.\+Main\+Activity.\+Simple\+Adapter.\+generate\+Data (\begin{DoxyParamCaption}\item[{int}]{count }\end{DoxyParamCaption})}

Prepare data for each reminder item to facilitate proper displaying in the view. this Helper method required because all the data in database are not directly representable.


\begin{DoxyParams}{Parameters}
{\em count} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\end{DoxyReturn}


Definition at line 475 of file Main\+Activity.\+java.

\mbox{\Hypertarget{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_1_1_simple_adapter_abc29da753e6a79143a1cc62244020eaf}\label{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_1_1_simple_adapter_abc29da753e6a79143a1cc62244020eaf}} 
\index{com.sudogeeks.talking\_reminder.MainActivity.SimpleAdapter@{com.sudogeeks.talking\_reminder.MainActivity.SimpleAdapter}!getItemCount@{getItemCount}}
\index{getItemCount@{getItemCount}!com.sudogeeks.talking\_reminder.MainActivity.SimpleAdapter@{com.sudogeeks.talking\_reminder.MainActivity.SimpleAdapter}}
\doxysubsubsection{\texorpdfstring{getItemCount()}{getItemCount()}}
{\footnotesize\ttfamily int com.\+sudogeeks.\+talking\+\_\+reminder.\+Main\+Activity.\+Simple\+Adapter.\+get\+Item\+Count (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}

Retuns the number of reminders in the database

\begin{DoxyReturn}{Returns}

\end{DoxyReturn}


Definition at line 458 of file Main\+Activity.\+java.

\mbox{\Hypertarget{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_1_1_simple_adapter_ae1d02199de61b4df15813e12bed737eb}\label{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_1_1_simple_adapter_ae1d02199de61b4df15813e12bed737eb}} 
\index{com.sudogeeks.talking\_reminder.MainActivity.SimpleAdapter@{com.sudogeeks.talking\_reminder.MainActivity.SimpleAdapter}!onBindViewHolder@{onBindViewHolder}}
\index{onBindViewHolder@{onBindViewHolder}!com.sudogeeks.talking\_reminder.MainActivity.SimpleAdapter@{com.sudogeeks.talking\_reminder.MainActivity.SimpleAdapter}}
\doxysubsubsection{\texorpdfstring{onBindViewHolder()}{onBindViewHolder()}}
{\footnotesize\ttfamily void com.\+sudogeeks.\+talking\+\_\+reminder.\+Main\+Activity.\+Simple\+Adapter.\+on\+Bind\+View\+Holder (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_1_1_simple_adapter_1_1_vertical_item_holder}{Vertical\+Item\+Holder}}}]{item\+Holder,  }\item[{int}]{position }\end{DoxyParamCaption})}

Bind a reminder item to a position in the main view Overridden method


\begin{DoxyParams}{Parameters}
{\em item\+Holder} & \\
\hline
{\em position} & \\
\hline
\end{DoxyParams}


Definition at line 445 of file Main\+Activity.\+java.

\mbox{\Hypertarget{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_1_1_simple_adapter_a3e4c48f08bcc04c7829e5d1e05631116}\label{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_1_1_simple_adapter_a3e4c48f08bcc04c7829e5d1e05631116}} 
\index{com.sudogeeks.talking\_reminder.MainActivity.SimpleAdapter@{com.sudogeeks.talking\_reminder.MainActivity.SimpleAdapter}!onCreateViewHolder@{onCreateViewHolder}}
\index{onCreateViewHolder@{onCreateViewHolder}!com.sudogeeks.talking\_reminder.MainActivity.SimpleAdapter@{com.sudogeeks.talking\_reminder.MainActivity.SimpleAdapter}}
\doxysubsubsection{\texorpdfstring{onCreateViewHolder()}{onCreateViewHolder()}}
{\footnotesize\ttfamily \mbox{\hyperlink{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_1_1_simple_adapter_1_1_vertical_item_holder}{Vertical\+Item\+Holder}} com.\+sudogeeks.\+talking\+\_\+reminder.\+Main\+Activity.\+Simple\+Adapter.\+on\+Create\+View\+Holder (\begin{DoxyParamCaption}\item[{View\+Group}]{container,  }\item[{int}]{view\+Type }\end{DoxyParamCaption})}

View holder for recycler view items Overridden method


\begin{DoxyParams}{Parameters}
{\em container} & \\
\hline
{\em view\+Type} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
an object of \mbox{\hyperlink{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_1_1_simple_adapter_1_1_vertical_item_holder}{Vertical\+Item\+Holder}} 
\end{DoxyReturn}


Definition at line 431 of file Main\+Activity.\+java.



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
C\+:/\+Users/\+Raushan Raj/\+Studio\+Projects/\+Talking\+Reminder2/\+Talking\+Reminder/app/src/main/java/com/sudogeeks/talking\+\_\+reminder/Main\+Activity.\+java\end{DoxyCompactItemize}
