package com.smart.framework; import android.view.View; public interface SmartFragmentHandler { /** * @return <b>R.layout.layout_id</b> <br> * * This method will set the layout of the activity from R class. <br> * <code><pre> * public int setLayoutId() { * return R.layout.main; * }</pre></code> */ public int setLayoutId(); /** * @return <b>new View()</b> <br> * * This method will set the custom view for the activity. <br> */ public View setLayoutView(); /** * This is the first method which is being called from <b>OnCreate()</b> * method.<br> * For keeping the activity code organized, the whole activity development * process is divided into three different parts.<br> * <li><b>initComponents</b><br> * This method will include all the "findViewByIds" and initial code for * each view which is to be displayed on activity.</li> <li> * <b>prepareViews</b><br> * This method will include all the view preparation code like, setting some * views visible or invisible, setting text to header etc.</li> <li> * <b>setActionListeners</b><br> * This method will include all actionListeners to be set to the views used * in activity.<br> * <b>Note </b>: All the action listeners' should only be implemented on * class level.</li> */ public void initComponents(View currentView); /** * This is the second method which is being called from <b>OnCreate()</b> * method.<br> * For keeping the activity code organized, the whole activity development * process is divided into three different parts.<br> * <li>initComponents<br> * This method will include all the "findViewByIds" and initial code for * each view which is to be displayed on activity.</li> <li>prepareViews<br> * This method will include all the view preparation code like, setting some * views visible or invisible, setting text to header etc.</li> <li> * setActionListeners<br> * This method will include all actionListeners to be set to the views used * in activity.<br> * <b>Note </b>: All the action listeners' should only be implemented on * class level.</li> */ public void prepareViews(View currentView); /** * This is the third and last method which is being called from * <b>OnCreate()</b> method.<br> * For keeping the activity code organized, the whole activity development * process is divided into three different parts.<br> * <li>initComponents<br> * This method will include all the "findViewByIds" and initial code for * each view which is to be displayed on activity.</li> <li>prepareViews<br> * This method will include all the view preparation code like, setting some * views visible or invisible, setting text to header etc.</li> <li> * setActionListeners<br> * This method will include all actionListeners to be set to the views used * in activity.<br> * <b>Note </b>: All the action listeners' should only be implemented on * class level.</li> */ public void setActionListeners(View currentView); }