diff --git a/BaseActivity.java b/BaseActivity.java new file mode 100644 index 0000000..c425a2a --- /dev/null +++ b/BaseActivity.java @@ -0,0 +1,557 @@ +package ngo.sapne.intents.sapne; + +import android.content.Context; +import android.content.Intent; +import android.content.res.Configuration; +import android.graphics.Typeface; +import android.net.Uri; +import android.os.Bundle; +import android.os.Handler; +import android.support.v4.app.Fragment; +import android.support.v4.widget.DrawerLayout; +import android.support.v7.app.ActionBarDrawerToggle; +import android.support.v7.app.AppCompatActivity; +import android.support.v7.widget.Toolbar; +import android.view.LayoutInflater; +import android.view.Menu; +import android.view.MenuItem; +import android.view.View; +import android.view.ViewGroup; +import android.widget.BaseExpandableListAdapter; +import android.widget.Button; +import android.widget.ExpandableListView; +import android.widget.FrameLayout; +import android.widget.ImageView; +import android.widget.TextView; +import android.widget.Toast; + +import com.mzelzoghbi.zgallery.ZGallery; +import com.mzelzoghbi.zgallery.entities.ZColor; + +import java.util.ArrayList; + +import ngo.sapne.intents.sapne.events.EventsFragment; + + +public class BaseActivity extends AppCompatActivity { + + public Button login; + protected FrameLayout frameLayout; + private boolean doubleBackToExitPressedOnce = false; + + protected DrawerLayout mDrawerLayout; + private Toolbar toolbar; + private int previousGroup; + private ActionBarDrawerToggle mDrawerToggle; + private ExpandableListView mCategoryList; + private ArrayList category_name = new ArrayList(); + private ArrayList> subcategory_name = new ArrayList>(); + private ArrayList subCatCount = new ArrayList(); + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_base); + this.getCatData(); + toolbar = findViewById(R.id.toolbar); + setSupportActionBar(toolbar); + + mDrawerLayout = findViewById(R.id.drawer_layout); + mCategoryList = findViewById(R.id.left_drawer); + + //set up the adapter for the expandablelistview to display the categories. + mCategoryList.setAdapter(new expandableListViewAdapter(BaseActivity.this, category_name, subcategory_name, subCatCount)); + + mCategoryList.setGroupIndicator(null); + + getSupportFragmentManager(). + beginTransaction(). + replace(R.id.content_frame, new MainFragment(), "MainFragment") + .commit(); + + //defining the behavior when any group is clicked in expandable listview + mCategoryList.setOnGroupClickListener(new ExpandableListView.OnGroupClickListener() { + @Override + public boolean onGroupClick(ExpandableListView parent, View view, + int groupPosition, long id) { + + if (groupPosition == 4) { + getSupportFragmentManager(). + beginTransaction(). + replace(R.id.content_frame, new EventsFragment(), "EventsFragment") + .commit(); + mDrawerLayout.closeDrawer(mCategoryList); + + } else if (groupPosition == 5) { + getSupportFragmentManager(). + beginTransaction(). + replace(R.id.content_frame, new ContactUs(), "ContactUs") + .commit(); + mDrawerLayout.closeDrawer(mCategoryList); + + } else if (groupPosition == 6) { + getSupportFragmentManager(). + beginTransaction(). + replace(R.id.content_frame, new VolunteerSpeak(), "VolunteerSpeak") + .commit(); + mDrawerLayout.closeDrawer(mCategoryList); + + } else if (groupPosition == 7) { + getSupportFragmentManager(). + beginTransaction(). + replace(R.id.content_frame, new SapneCare(), "SapneCare") + .commit(); + mDrawerLayout.closeDrawer(mCategoryList); + + } else if (groupPosition == 8) { + getSupportFragmentManager(). + beginTransaction(). + replace(R.id.content_frame, new MainFragment(), "MainFragment") + .commit(); + mDrawerLayout.closeDrawer(mCategoryList); + + } else if (parent.isGroupExpanded(groupPosition)) { + parent.collapseGroup(groupPosition); + + } else if (groupPosition == 3) { + getSupportFragmentManager(). + beginTransaction(). + replace(R.id.content_frame, new Products(), "Products") + .commit(); + mDrawerLayout.closeDrawer(mCategoryList); + + } else if (groupPosition == 2) { + getSupportFragmentManager(). + beginTransaction(). + replace(R.id.content_frame, new SuccessStoriesFrag(), "SuccessStoriesFrag") + .commit(); + mDrawerLayout.closeDrawer(mCategoryList); + + } else if (parent.isGroupExpanded(groupPosition)) { + parent.collapseGroup(groupPosition); + } else { + if (groupPosition != previousGroup) { + parent.collapseGroup(previousGroup); + } + previousGroup = groupPosition; + parent.expandGroup(groupPosition); + } + + parent.smoothScrollToPosition(groupPosition); + return true; + } + + }); + + mCategoryList.setOnChildClickListener(new ExpandableListView.OnChildClickListener() { + + @Override + public boolean onChildClick(ExpandableListView parent, View v, + int groupPosition, int childPosition, long id) { + + //calling CatWiseSearchResults with parameters of subcat code. + //CatWiseSearchResults will fetch items based on subcatcode. + if (groupPosition == 1 && childPosition == 1) { + getSupportFragmentManager(). + beginTransaction(). + replace(R.id.content_frame, new Activities(), "Activities") + .commit(); + + mDrawerLayout.closeDrawer(mCategoryList); + } + if (groupPosition == 2 && childPosition == 1) { + getSupportFragmentManager(). + beginTransaction(). + replace(R.id.content_frame, new SuccessStoriesFrag(), "VerticalViewPagerFragment") + .commit(); + + mDrawerLayout.closeDrawer(mCategoryList); + } + if (groupPosition == 0 && childPosition == 0) { + getSupportFragmentManager(). + beginTransaction(). + replace(R.id.content_frame, new AboutUs(), "AboutUs") + .commit(); + + mDrawerLayout.closeDrawer(mCategoryList); + + } + + if (groupPosition == 0 && childPosition == 1) { + getSupportFragmentManager(). + beginTransaction(). + replace(R.id.content_frame, new OurMission(), "OurMission") + .commit(); + + mDrawerLayout.closeDrawer(mCategoryList); + } + + if (groupPosition == 1 && childPosition == 0) { +// getSupportFragmentManager(). +// beginTransaction(). +// replace(R.id.content_frame, new RegularCamps(), "RegularCamps") +// .commit(); + + Intent intent = new Intent(BaseActivity.this, GridActivity.class); + startActivity(intent); + + mDrawerLayout.closeDrawer(mCategoryList); + } + + if (groupPosition == 1 && childPosition == 2) { + ZGallery.with(BaseActivity.this, new ArrayList() {{ + add(Uri.parse("android.resource://" + getApplicationContext().getPackageName() + "/" + R.drawable.g1).toString()); + add(Uri.parse("android.resource://" + getApplicationContext().getPackageName() + "/" + R.drawable.g2).toString()); + add(Uri.parse("android.resource://" + getApplicationContext().getPackageName() + "/" + R.drawable.g3).toString()); + add(Uri.parse("android.resource://" + getApplicationContext().getPackageName() + "/" + R.drawable.g4).toString()); + add(Uri.parse("android.resource://" + getApplicationContext().getPackageName() + "/" + R.drawable.g5).toString()); + add(Uri.parse("android.resource://" + getApplicationContext().getPackageName() + "/" + R.drawable.g6).toString()); + add(Uri.parse("android.resource://" + getApplicationContext().getPackageName() + "/" + R.drawable.g7).toString()); + add(Uri.parse("android.resource://" + getApplicationContext().getPackageName() + "/" + R.drawable.g8).toString()); + add(Uri.parse("android.resource://" + getApplicationContext().getPackageName() + "/" + R.drawable.g9).toString()); + add(Uri.parse("android.resource://" + getApplicationContext().getPackageName() + "/" + R.drawable.g10).toString()); + add(Uri.parse("android.resource://" + getApplicationContext().getPackageName() + "/" + R.drawable.g11).toString()); + add(Uri.parse("android.resource://" + getApplicationContext().getPackageName() + "/" + R.drawable.g12).toString()); + add(Uri.parse("android.resource://" + getApplicationContext().getPackageName() + "/" + R.drawable.g13).toString()); + add(Uri.parse("android.resource://" + getApplicationContext().getPackageName() + "/" + R.drawable.g14).toString()); + add(Uri.parse("android.resource://" + getApplicationContext().getPackageName() + "/" + R.drawable.g15).toString()); + }}).setToolbarTitleColor(ZColor.WHITE) // toolbar title color + .setGalleryBackgroundColor(ZColor.BLACK) // activity background color + .setToolbarColorResId(R.color.colorPrimary) // toolbar color + .setTitle("Gallery") // toolbar title + .show(); + + mDrawerLayout.closeDrawer(mCategoryList); + } + + if (groupPosition == 1 && childPosition == 3) { + getSupportFragmentManager(). + beginTransaction(). + replace(R.id.content_frame, new OurVolunteers(), "OurVolunteers") + .commit(); + + mDrawerLayout.closeDrawer(mCategoryList); + + } + + if (groupPosition == 0 && childPosition == 2) { + getSupportFragmentManager(). + beginTransaction(). + replace(R.id.content_frame, new OurVision(), "OurVision") + .commit(); + mDrawerLayout.closeDrawer(mCategoryList); + } + + if (groupPosition == 0 && childPosition == 3) { + getSupportFragmentManager(). + beginTransaction(). + replace(R.id.content_frame, new OurTeam(), "OurTeam") + .commit(); + + mDrawerLayout.closeDrawer(mCategoryList); + } + + return true; + } + }); + + mDrawerToggle = new ActionBarDrawerToggle(this, mDrawerLayout, toolbar, + R.string.navigation_drawer_open, R.string.navigation_drawer_close) { + + + @Override + public void onDrawerClosed(View view) { + invalidateOptionsMenu(); + } + + @Override + public void onDrawerOpened(View drawerView) { + invalidateOptionsMenu(); + } + + }; + + mDrawerLayout.setDrawerListener(mDrawerToggle); + } + + @Override + public boolean onOptionsItemSelected(MenuItem item) { + int itemId = item.getItemId(); + String btnName = null; + switch (itemId) { + + case R.id.login1: + getSupportFragmentManager(). + beginTransaction(). + replace(R.id.content_frame, new LoginFragment(), "LoginFragment") + .commit(); + break; + case R.id.notification: + Fragment mainFrag = getSupportFragmentManager().findFragmentByTag("MainFragment"); + if (mainFrag == null) { + getSupportFragmentManager(). + beginTransaction(). + replace(R.id.content_frame, new MainFragment(), "MainFragment") + .commit(); + } + break; + } + return true; + } + + @Override + public void onConfigurationChanged(Configuration newConfig) { + super.onConfigurationChanged(newConfig); + mDrawerToggle.onConfigurationChanged(newConfig); + } + + @Override + public boolean onCreateOptionsMenu(Menu menu) { + getMenuInflater().inflate(R.menu.main_menu, menu); + return true; + } + + @Override + protected void onPostCreate(Bundle savedInstanceState) { + super.onPostCreate(savedInstanceState); + // Sync the toggle state after onRestoreInstanceState has occurred. + mDrawerToggle.syncState(); + } + + @Override + public void onBackPressed() { + Fragment mainFrag = getSupportFragmentManager().findFragmentByTag("MainFragment"); + if (mainFrag == null) { + getSupportFragmentManager(). + beginTransaction(). + replace(R.id.content_frame, new MainFragment(), "MainFragment") + .commit(); + } else { + if (doubleBackToExitPressedOnce) { + super.onBackPressed(); + return; + } + + this.doubleBackToExitPressedOnce = true; + Toast.makeText(this, "Press again to exit", Toast.LENGTH_SHORT).show(); + + new Handler().postDelayed(new Runnable() { + + @Override + public void run() { + doubleBackToExitPressedOnce = false; + } + }, 3000); + } + } + + public void getCatData() { + category_name.clear(); + Category categoryDetails = new Category(); + + categoryDetails.setCatCode(10); + categoryDetails.setCatName("Who We Are"); + + category_name.add(categoryDetails); + + categoryDetails = new Category(); + categoryDetails.setCatCode(20); + categoryDetails.setCatName("Our Bit"); + category_name.add(categoryDetails); + + categoryDetails = new Category(); + categoryDetails.setCatCode(30); + categoryDetails.setCatName("Success Stories"); + category_name.add(categoryDetails); + + categoryDetails = new Category(); + categoryDetails.setCatCode(40); + categoryDetails.setCatName("Products"); + category_name.add(categoryDetails); + + categoryDetails = new Category(); + categoryDetails.setCatCode(50); + categoryDetails.setCatName("Events"); + category_name.add(categoryDetails); + + categoryDetails = new Category(); + categoryDetails.setCatCode(60); + categoryDetails.setCatName("Contact Us"); + category_name.add(categoryDetails); + + categoryDetails = new Category(); + categoryDetails.setCatCode(70); + categoryDetails.setCatName("Volunteers Speak"); + category_name.add(categoryDetails); + + categoryDetails = new Category(); + categoryDetails.setCatCode(80); + categoryDetails.setCatName("Sapne Care"); + category_name.add(categoryDetails); + + categoryDetails = new Category(); + categoryDetails.setCatCode(90); + categoryDetails.setCatName("Home"); + category_name.add(categoryDetails); + + + //----Populate Sub Category Codes + subcategory_name.clear(); + + ArrayList subCategoryMatches = new ArrayList(); + + SubCategory subCategoryMatch = new SubCategory(); + + subCategoryMatch.setSubCatName("About Us"); + subCategoryMatch.setSubCatCode("1001"); + subCategoryMatches.add(subCategoryMatch); + + subCategoryMatch = new SubCategory(); + subCategoryMatch.setSubCatName("Our Mission"); + subCategoryMatch.setSubCatCode("1002"); + subCategoryMatches.add(subCategoryMatch); + + subCategoryMatch = new SubCategory(); + subCategoryMatch.setSubCatName("Our Vision"); + subCategoryMatch.setSubCatCode("1003"); + subCategoryMatches.add(subCategoryMatch); + + subcategory_name.add(subCategoryMatches); + subCatCount.add(subCategoryMatches.size()); + //--- + + subCategoryMatches = new ArrayList(); + + subCategoryMatch = new SubCategory(); + subCategoryMatch.setSubCatName("Regular Camps"); + subCategoryMatch.setSubCatCode("2002"); + subCategoryMatches.add(subCategoryMatch); + + subCategoryMatch = new SubCategory(); + subCategoryMatch.setSubCatName("Activities Corner"); + subCategoryMatch.setSubCatCode("2004"); + subCategoryMatches.add(subCategoryMatch); + + subCategoryMatch = new SubCategory(); + subCategoryMatch.setSubCatName("Gallery"); + subCategoryMatch.setSubCatCode("2005"); + subCategoryMatches.add(subCategoryMatch); + + subCategoryMatch = new SubCategory(); + subCategoryMatch.setSubCatName("Our Team"); + subCategoryMatch.setSubCatCode("2002"); + subCategoryMatches.add(subCategoryMatch); + + subcategory_name.add(subCategoryMatches); + subCatCount.add(subCategoryMatches.size()); + } + + public class expandableListViewAdapter extends BaseExpandableListAdapter { + + ArrayList> subCategoryName = new ArrayList>(); + ArrayList subCategoryCount = new ArrayList(); + int count; + Typeface type; + SubCategory singleChild = new SubCategory(); + private LayoutInflater layoutInflater; + private ArrayList categoryName = new ArrayList(); + + public expandableListViewAdapter(Context context, ArrayList categoryName, ArrayList> subCategoryName, ArrayList subCategoryCount) { + + layoutInflater = LayoutInflater.from(context); + this.categoryName = categoryName; + this.subCategoryName = subCategoryName; + this.subCategoryCount = subCategoryCount; + this.count = categoryName.size(); + } + + + @Override + public int getGroupCount() { + return categoryName.size(); + } + + @Override + public int getChildrenCount(int groupPosition) { + + return (subCategoryCount.get(groupPosition)); + } + + @Override + public Object getGroup(int i) { + return categoryName.get(i).getCatName(); + } + + @Override + public SubCategory getChild(int i, int i1) { + ArrayList tempList = new ArrayList(); + tempList = subCategoryName.get(i); + return tempList.get(i1); + } + + @Override + public void onGroupCollapsed(int groupPosition) { + super.onGroupCollapsed(groupPosition); + } + + @Override + public long getGroupId(int groupPosition) { + return groupPosition; + } + + @Override + public long getChildId(int groupPosition, int childPosition) { + return childPosition; + } + + @Override + public boolean hasStableIds() { + return true; + } + + @Override + public View getGroupView(int groupPsition, boolean isExpanded, View view, ViewGroup viewGroup) { + if (view == null) { + view = layoutInflater.inflate(R.layout.expandablelistcategory, viewGroup, false); + } + + TextView textView = (TextView) view.findViewById(R.id.cat_desc_1); + textView.setText(getGroup(groupPsition).toString()); + textView.setTypeface(type); + + ImageView indicator = (ImageView) view.findViewById(R.id.expicon); + + if (groupPsition != 0 && groupPsition != 1) + { + indicator.setVisibility(View.INVISIBLE); + } else { + indicator.setVisibility(View.VISIBLE); + indicator.setImageResource(isExpanded ? R.drawable.ic_keyboard_arrow_up_black_24dp : R.drawable.ic_keyboard_arrow_down_black_24dp); + } + + return view; + } + + + @Override + public View getChildView(int i, int i1, boolean isExpanded, View view, ViewGroup viewGroup) { + if (view == null) { + view = layoutInflater.inflate(R.layout.expandablelistviewsubcat, viewGroup, false); + } + + singleChild = getChild(i, i1); + + TextView childSubCategoryName = (TextView) view.findViewById(R.id.subcat_name); + childSubCategoryName.setTypeface(type); + childSubCategoryName.setText(singleChild.getSubCatName()); + return view; + + } + + @Override + public boolean isChildSelectable(int groupPosition, int childPosition) { + return true; + } + } +} + diff --git a/CustomListAdapter.java b/CustomListAdapter.java new file mode 100644 index 0000000..19d6399 --- /dev/null +++ b/CustomListAdapter.java @@ -0,0 +1,34 @@ +package ngo.sapne.intents.sapne; + +import android.app.ListFragment; +import android.content.Context; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.ArrayAdapter; +import android.widget.ImageView; +import android.widget.TextView; + +public class CustomListAdapter extends ArrayAdapter { + String[] color_names; + Integer[] image_id; + Context context; + public CustomListAdapter(Context context, Integer[] image_id, String[] text){ + //VolunteerSpeak context, Integer[] image_id, String[] text + super(context, R.layout.list_row,text); + this.color_names = text; + this.image_id = image_id; + this.context =context; + } + @Override + public View getView(int position, View convertView, ViewGroup parent) { + LayoutInflater inflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); + View single_row = inflater.inflate(R.layout.list_row, null, + true); + TextView textView = (TextView) single_row.findViewById(R.id.textView); + ImageView imageView = (ImageView) single_row.findViewById(R.id.imageView); + textView.setText(""+color_names[position]); + imageView.setImageResource(image_id[position]); + return single_row; + } +} \ No newline at end of file diff --git a/Grid1Activity.java b/Grid1Activity.java new file mode 100644 index 0000000..27760eb --- /dev/null +++ b/Grid1Activity.java @@ -0,0 +1,13 @@ +package ngo.sapne.intents.sapne; + +import android.support.v7.app.AppCompatActivity; +import android.os.Bundle; + +public class Grid1Activity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_grid1); + } +} diff --git a/Grid2Activity.java b/Grid2Activity.java new file mode 100644 index 0000000..5a77d33 --- /dev/null +++ b/Grid2Activity.java @@ -0,0 +1,13 @@ +package ngo.sapne.intents.sapne; + +import android.support.v7.app.AppCompatActivity; +import android.os.Bundle; + +public class Grid2Activity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_grid2); + } +} diff --git a/Grid3Activity.java b/Grid3Activity.java new file mode 100644 index 0000000..a4db1d1 --- /dev/null +++ b/Grid3Activity.java @@ -0,0 +1,13 @@ +package ngo.sapne.intents.sapne; + +import android.support.v7.app.AppCompatActivity; +import android.os.Bundle; + +public class Grid3Activity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_grid3); + } +} diff --git a/Grid4Activity.java b/Grid4Activity.java new file mode 100644 index 0000000..eed564f --- /dev/null +++ b/Grid4Activity.java @@ -0,0 +1,13 @@ +package ngo.sapne.intents.sapne; + +import android.support.v7.app.AppCompatActivity; +import android.os.Bundle; + +public class Grid4Activity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_grid4); + } +} diff --git a/Grid5Activity.java b/Grid5Activity.java new file mode 100644 index 0000000..fd99708 --- /dev/null +++ b/Grid5Activity.java @@ -0,0 +1,13 @@ +package ngo.sapne.intents.sapne; + +import android.support.v7.app.AppCompatActivity; +import android.os.Bundle; + +public class Grid5Activity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_grid5); + } +} diff --git a/Grid6Activity.java b/Grid6Activity.java new file mode 100644 index 0000000..4ac4795 --- /dev/null +++ b/Grid6Activity.java @@ -0,0 +1,13 @@ +package ngo.sapne.intents.sapne; + +import android.support.v7.app.AppCompatActivity; +import android.os.Bundle; + +public class Grid6Activity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_grid6); + } +} diff --git a/Grid7Activity.java b/Grid7Activity.java new file mode 100644 index 0000000..ac31d09 --- /dev/null +++ b/Grid7Activity.java @@ -0,0 +1,13 @@ +package ngo.sapne.intents.sapne; + +import android.support.v7.app.AppCompatActivity; +import android.os.Bundle; + +public class Grid7Activity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_grid7); + } +} diff --git a/Grid8Activity.java b/Grid8Activity.java new file mode 100644 index 0000000..6bb4cd2 --- /dev/null +++ b/Grid8Activity.java @@ -0,0 +1,13 @@ +package ngo.sapne.intents.sapne; + +import android.support.v7.app.AppCompatActivity; +import android.os.Bundle; + +public class Grid8Activity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_grid8); + } +} diff --git a/GridActivity.java b/GridActivity.java new file mode 100644 index 0000000..aff17f7 --- /dev/null +++ b/GridActivity.java @@ -0,0 +1,112 @@ +package ngo.sapne.intents.sapne; + +import android.content.Intent; +import android.graphics.Color; +import android.support.v7.app.AppCompatActivity; +import android.os.Bundle; +import android.support.v7.widget.CardView; +import android.view.View; +import android.widget.GridLayout; +import android.widget.Toast; + +public class GridActivity extends AppCompatActivity { + + GridLayout mainGrid; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_grid); + + mainGrid = (GridLayout) findViewById(R.id.mainGrid); + + //Set Event + setSingleEvent(mainGrid); + //setToggleEvent(mainGrid); + } + + private void setToggleEvent(GridLayout mainGrid) { + //Loop all child item of Main Grid + for (int i = 0; i < mainGrid.getChildCount(); i++) { + //You can see , all child item is CardView , so we just cast object to CardView + final CardView cardView = (CardView) mainGrid.getChildAt(i); + cardView.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + if (cardView.getCardBackgroundColor().getDefaultColor() == -1) { + //Change background color + cardView.setCardBackgroundColor(Color.parseColor("#FF6F00")); + Toast.makeText(GridActivity.this, "State : True", Toast.LENGTH_SHORT).show(); + + } else { + //Change background color + cardView.setCardBackgroundColor(Color.parseColor("#FFFFFF")); + Toast.makeText(GridActivity.this, "State : False", Toast.LENGTH_SHORT).show(); + } + } + }); + } + } + + private void setSingleEvent(GridLayout mainGrid) { + //Loop all child item of Main Grid + for (int i = 0; i < mainGrid.getChildCount(); i++) { + //You can see , all child item is CardView , so we just cast object to CardView + CardView cardView = (CardView) mainGrid.getChildAt(i); + final int finalI = i; + cardView.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + +// Intent intent = new Intent(GridActivity.this,BaseActivity.class); +// intent.putExtra("info","This is activity from card item index "+finalI); +// startActivity(intent); + + switch(view.getId()) + { + case R.id.cv1: + Intent intent1 = new Intent(GridActivity.this, Grid1Activity.class); + startActivity(intent1); + break; + + case R.id.cv2: + Intent intent2 = new Intent(GridActivity.this, Grid2Activity.class); + startActivity(intent2); + break; + + case R.id.cv3: + Intent intent3 = new Intent(GridActivity.this, Grid3Activity.class); + startActivity(intent3); + break; + + case R.id.cv4: + Intent intent4 = new Intent(GridActivity.this, Grid4Activity.class); + startActivity(intent4); + break; + + + case R.id.cv5: + Intent intent5 = new Intent(GridActivity.this, Grid5Activity.class); + startActivity(intent5); + break; + + case R.id.cv6: + Intent intent6 = new Intent(GridActivity.this, Grid6Activity.class); + startActivity(intent6); + break; + + case R.id.cv7: + Intent intent7 = new Intent(GridActivity.this, Grid7Activity.class); + startActivity(intent7); + break; + + case R.id.cv8: + Intent intent8 = new Intent(GridActivity.this, Grid8Activity.class); + startActivity(intent8); + } + + } + }); + } + } +} diff --git a/MainFragment.java b/MainFragment.java new file mode 100644 index 0000000..bf38a2a --- /dev/null +++ b/MainFragment.java @@ -0,0 +1,110 @@ +package ngo.sapne.intents.sapne; + +import android.content.Intent; +import android.graphics.Color; +import android.net.Uri; +import android.os.Bundle; +import android.os.Handler; +import android.support.annotation.Nullable; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.Button; +import android.widget.ImageView; + +import ngo.sapne.intents.sapne.events.ExtraEventsFragment; + + +public class MainFragment extends android.support.v4.app.Fragment implements View.OnClickListener { + + private ImageView img; + + @Nullable + @Override + public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { + View view = inflater.inflate(R.layout.fragment_main, container, false); + img = view.findViewById(R.id.mainimgview); + + final int[] imageArray = {R.drawable.p8, R.drawable.p5, R.drawable.p1, R.drawable.p3, R.drawable.p11, R.drawable.p12, R.drawable.p7}; + + try { + final Handler handler = new Handler(); + Runnable runnable = new Runnable() { + int i = 0; + + public void run() { + img.setImageResource(imageArray[i]); + i++; + if (i > imageArray.length - 1) { + i = 0; + } + handler.postDelayed(this, 4000); //for interval... + } + }; + handler.postDelayed(runnable, 25); //for initial delay.. + } catch (OutOfMemoryError ignored) { + } + + return view; + } + + @Override + public void onActivityCreated(@Nullable Bundle savedInstanceState) { + super.onActivityCreated(savedInstanceState); + + Button explore = getActivity().findViewById(R.id.explore); + Button btnJoinUs = getActivity().findViewById(R.id.btnJoinUs1); + Button btnSubmit = getActivity().findViewById(R.id.btnDonate1); + + explore.setOnClickListener(this); + btnJoinUs.setOnClickListener(this); + btnSubmit.setOnClickListener(this); + + getActivity().findViewById(R.id.appBarAnim).setBackgroundColor(Color.parseColor("#1DE9B6")); + } + + public void explore() { + getActivity().getSupportFragmentManager(). + beginTransaction(). + replace(R.id.content_frame, new ExtraEventsFragment(), "ExtraEventsFragment") + .commit(); + } + + + public void donate() { + Intent myIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.payumoney.com/paybypayumoney/#/206415")); + startActivity(myIntent); + } + + public void join() { + getActivity().getSupportFragmentManager(). + beginTransaction(). + replace(R.id.content_frame, new FragmentJoinUs(), "FragmentJoinUs") + .commit(); + } + + @Override + public void onClick(View view) { + + switch (view.getId()) { + case R.id.explore: + explore(); + break; + + case R.id.btnJoinUs1: + join(); + break; + + case R.id.btnDonate1: + donate(); + break; + } + } + + @Override + public void onDestroy() { + getActivity().findViewById(R.id.appBarAnim).setBackgroundResource(R.drawable.gradient_green); + super.onDestroy(); + } +} + diff --git a/MyAdapter.java b/MyAdapter.java new file mode 100644 index 0000000..4e05ac8 --- /dev/null +++ b/MyAdapter.java @@ -0,0 +1,46 @@ +package ngo.sapne.intents.sapne; + + +import android.content.Context; + import android.support.v7.widget.RecyclerView; + import android.view.LayoutInflater; + import android.view.View; + import android.view.ViewGroup; + +public class MyAdapter extends RecyclerView.Adapter { + + Context c; + String[] players; + int[] imgs; + + public MyAdapter(Context ctx, String[] names, int[] images) + { + + this.c=ctx; + this.players=names; + this.imgs=images; + } + + @Override + public MyHolder onCreateViewHolder(ViewGroup parent, int viewType) { + + View v= LayoutInflater.from(parent.getContext()).inflate(R.layout.model,null); + + MyHolder holder=new MyHolder(v); + return holder; + } + + @Override + public void onBindViewHolder(MyHolder holder, final int position) { + holder.img.setImageResource(imgs[position]); + holder.nameTxt.setText(players[position]); + + + + } + + @Override + public int getItemCount() { + return players.length; + } +} \ No newline at end of file diff --git a/RegularCampItem.java b/RegularCampItem.java new file mode 100644 index 0000000..e97df8b --- /dev/null +++ b/RegularCampItem.java @@ -0,0 +1,32 @@ +package ngo.sapne.intents.sapne; + +/** + * Created by Pankaj on 17-01-2018. + */ + +public class RegularCampItem { + + private int imageCamp; + private int txtCamp; + + public RegularCampItem(int imageCamp, int txtCamp) { + this.imageCamp = imageCamp; + this.txtCamp = txtCamp; + } + + public int getImageCamp() { + return imageCamp; + } + + public void setImageCamp(int imageCamp) { + this.imageCamp = imageCamp; + } + + public int getTxtCamp() { + return txtCamp; + } + + public void setTxtCamp(int txtCamp) { + this.txtCamp = txtCamp; + } +} diff --git a/RegularCamp_RecyclerAdapter.java b/RegularCamp_RecyclerAdapter.java new file mode 100644 index 0000000..71f6851 --- /dev/null +++ b/RegularCamp_RecyclerAdapter.java @@ -0,0 +1,55 @@ +package ngo.sapne.intents.sapne; + +import android.support.v7.widget.RecyclerView; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.ImageView; +import android.widget.TextView; + +import java.util.ArrayList; +import java.util.List; + +/** + * Created by Pankaj on 17-01-2018. + */ + +public class RegularCamp_RecyclerAdapter extends RecyclerView.Adapter{ + + private List listData = new ArrayList<>(); + + public RegularCamp_RecyclerAdapter(List listData) { + this.listData = listData; + } + + @Override + public RegularCampViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { + LayoutInflater inflater = LayoutInflater.from(parent.getContext()); + View view = inflater.inflate(R.layout.regular_camp_item, parent, false); + return new RegularCampViewHolder(view); + } + + @Override + public void onBindViewHolder(RegularCampViewHolder holder, int position) { + holder.mImageView.setImageResource(listData.get(position).getImageCamp()); + holder.mTextView.setText(listData.get(position).getTxtCamp()); + } + + @Override + public int getItemCount() { + return listData.size(); + } + + public class RegularCampViewHolder extends RecyclerView.ViewHolder{ + ImageView mImageView; + TextView mTextView; + + public RegularCampViewHolder(View itemView) { + super(itemView); + + mImageView = itemView.findViewById(R.id.imgRegularCamp); + mTextView = itemView.findViewById(R.id.txtRegularCamp); + } + } + +} diff --git a/RegularCamps.java b/RegularCamps.java new file mode 100644 index 0000000..4a44997 --- /dev/null +++ b/RegularCamps.java @@ -0,0 +1,45 @@ +package ngo.sapne.intents.sapne; + +import android.content.Context; +import android.os.Bundle; +import android.support.annotation.Nullable; +import android.support.v4.app.Fragment; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import java.util.ArrayList; +import java.util.List; +import android.support.v7.widget.LinearLayoutManager; +import android.support.v7.widget.RecyclerView; + +public class RegularCamps extends Fragment{ + private List listData = new ArrayList<>(); + /* + String names[]={"A teacher presents the past, reveals the present and creates the future, rightly said by John Holt. So, here at Sapne - our NGO, we are providing quality teachers, for the children who are willing to study and who want to make their future bright but due to some obstacles , they are unable to do so. Due to this reason, we are teaching them, making them capable for themselves and for the society too. We have organized regular camps in which we teach students, we provide the children with the academic education and apart from this, we play with them, we teach them how to live life to its fullest. And in the two hours of the camp, those children are so happy that their happiness, their joy, their cheer, cannot be expressed in words." , + "We believe that Learning is not the product of teaching , Learning is the product of activities of learners .\" So we indulge the children in various kinds of activities of their own interest and also in other activities which can benefit them in future. We dance together , we sing together , we play together , we study together , we giggle together , we gossip together , we share our memories , our experiences in those two hours of regular camps organized by Sapne For us , every sapna , every dream is important and hence we try our best to accomplish that , if not accomplish , we try our best to give that dream , a direction. For this , we provide teachers , who are skilled in their field of work and accordingly they teach , they train the students . In this way teachers get the platform to teach and express or share their knowledge , moreover , increase their knowledge , and students get quality education .\n" , + "\nWhile moving on the roads , we see many children who have not worn proper clothes , who are deprived of the basic needs , who should study and play at this age , but due to their financial conditions , they can't even think of doing all these things because , for them , three-time meal is more than enough for survival. Now the question arrises , What do we , as responsible citizen of the country , do for them ? Except for showing concern , except for being sympathetic , we do nothing . But Sapne , our NGO , is proud to tell that , we are doing something , we have taken first step and it is the \" First step that leads to the Final step . And we are sure that we will definitely reach till the final step with the support of our team and the children who want to make their future bright and satisfying .\n" , + "\n"}; + int[] images={R.drawable.b,R.drawable.banner,R.drawable.slide1,R.drawable.slide2,R.drawable.slide3}; +*/ + @Nullable + @Override + public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { + + View view = inflater.inflate(R.layout.content_regular1, container, false); + initData(); + RecyclerView recyclerView = view.findViewById(R.id.recyclerView1); + RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(getActivity()); + recyclerView.setLayoutManager(layoutManager); + RegularCamp_RecyclerAdapter myAdapter = new RegularCamp_RecyclerAdapter(listData); + recyclerView.setAdapter(myAdapter); + return view; + } + private void initData() { + listData.add(new RegularCampItem(R.drawable.rc_1, R.string.regularcamp_para1)); + listData.add(new RegularCampItem(R.drawable.rc_2, R.string.regularcamp_para2)); + listData.add(new RegularCampItem(R.drawable.rc_3,R.string.regularcamp_para3)); + } + private void it(){ + + } +} diff --git a/RegularCampsFrag.java b/RegularCampsFrag.java new file mode 100644 index 0000000..91d5dcc --- /dev/null +++ b/RegularCampsFrag.java @@ -0,0 +1,33 @@ +package ngo.sapne.intents.sapne; + +import android.os.Bundle; +import android.support.annotation.Nullable; +import android.support.v4.app.Fragment; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; + +/** + * Created by itsmeemohit on 11-11-2017. + */ + +public class RegularCampsFrag extends Fragment{ + + + String names[]={"A teacher presents the past, reveals the present and creates the future, rightly said by John Holt. So, here at Sapne - our NGO, we are providing quality teachers, for the children who are willing to study and who want to make their future bright but due to some obstacles , they are unable to do so. Due to this reason, we are teaching them, making them capable for themselves and for the society too. We have organized regular camps in which we teach students, we provide the children with the academic education and apart from this, we play with them, we teach them how to live life to its fullest. And in the two hours of the camp, those children are so happy that their happiness, their joy, their cheer, cannot be expressed in words." , + "We believe that Learning is not the product of teaching , Learning is the product of activities of learners .\" So we indulge the children in various kinds of activities of their own interest and also in other activities which can benefit them in future. We dance together , we sing together , we play together , we study together , we giggle together , we gossip together , we share our memories , our experiences in those two hours of regular camps organized by Sapne For us , every sapna , every dream is important and hence we try our best to accomplish that , if not accomplish , we try our best to give that dream , a direction. For this , we provide teachers , who are skilled in their field of work and accordingly they teach , they train the students . In this way teachers get the platform to teach and express or share their knowledge , moreover , increase their knowledge , and students get quality education .\n" , + "\nWhile moving on the roads , we see many children who have not worn proper clothes , who are deprived of the basic needs , who should study and play at this age , but due to their financial conditions , they can't even think of doing all these things because , for them , three-time meal is more than enough for survival. Now the question arrises , What do we , as responsible citizen of the country , do for them ? Except for showing concern , except for being sympathetic , we do nothing . But Sapne , our NGO , is proud to tell that , we are doing something , we have taken first step and it is the \" First step that leads to the Final step . And we are sure that we will definitely reach till the final step with the support of our team and the children who want to make their future bright and satisfying .\n" , + "\n"}; + int[] images={R.drawable.b,R.drawable.banner,R.drawable.slide1,R.drawable.slide2,R.drawable.slide3}; + + @Nullable + @Override + public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { + return inflater.inflate(R.layout.activity_regular_camps,container,false); + } + + @Override + public void onActivityCreated(@Nullable Bundle savedInstanceState) { + super.onActivityCreated(savedInstanceState); + } +} diff --git a/activity_grid.xml b/activity_grid.xml new file mode 100644 index 0000000..aa198c8 --- /dev/null +++ b/activity_grid.xml @@ -0,0 +1,403 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/activity_grid1.xml b/activity_grid1.xml new file mode 100644 index 0000000..3615de2 --- /dev/null +++ b/activity_grid1.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + diff --git a/activity_grid2.xml b/activity_grid2.xml new file mode 100644 index 0000000..85a18cd --- /dev/null +++ b/activity_grid2.xml @@ -0,0 +1,25 @@ + + + + + + + diff --git a/activity_grid3.xml b/activity_grid3.xml new file mode 100644 index 0000000..37081c7 --- /dev/null +++ b/activity_grid3.xml @@ -0,0 +1,40 @@ + + + + + + + + + diff --git a/activity_grid4.xml b/activity_grid4.xml new file mode 100644 index 0000000..6588ceb --- /dev/null +++ b/activity_grid4.xml @@ -0,0 +1,22 @@ + + + + + + + diff --git a/activity_grid5.xml b/activity_grid5.xml new file mode 100644 index 0000000..160b6f5 --- /dev/null +++ b/activity_grid5.xml @@ -0,0 +1,19 @@ + + + + + + + diff --git a/activity_grid6.xml b/activity_grid6.xml new file mode 100644 index 0000000..63a3257 --- /dev/null +++ b/activity_grid6.xml @@ -0,0 +1,18 @@ + + + + + + + \ No newline at end of file diff --git a/activity_grid7.xml b/activity_grid7.xml new file mode 100644 index 0000000..bf17a2c --- /dev/null +++ b/activity_grid7.xml @@ -0,0 +1,22 @@ + + + + + + + + diff --git a/activity_grid8.xml b/activity_grid8.xml new file mode 100644 index 0000000..a41276a --- /dev/null +++ b/activity_grid8.xml @@ -0,0 +1,22 @@ + + + + + + + + diff --git a/bgy.png b/bgy.png new file mode 100644 index 0000000..f77f7c2 Binary files /dev/null and b/bgy.png differ diff --git a/colors.xml b/colors.xml new file mode 100644 index 0000000..219807a --- /dev/null +++ b/colors.xml @@ -0,0 +1,18 @@ + + + #00f7ff + #13967f + #3ffafa + + #FF0000 + #e1e1e1 + #000000 + #FFFF00 + #faf0e6 + #FFFFFF + #212121 + #727272 + #FFFFFF + #B6B6B6 + + diff --git a/dimens.xml b/dimens.xml new file mode 100644 index 0000000..424a2d9 --- /dev/null +++ b/dimens.xml @@ -0,0 +1,18 @@ + + + 16dp + 160dp + + 16dp + 16dp + 16dp + 10dp + + 10dp + + 70dp + + 14sp + 300dp + 200dp + diff --git a/drawable-xxxhdpi/bg.png b/drawable-xxxhdpi/bg.png new file mode 100644 index 0000000..1e2e9f6 Binary files /dev/null and b/drawable-xxxhdpi/bg.png differ diff --git a/drawable-xxxhdpi/calendar.png b/drawable-xxxhdpi/calendar.png new file mode 100644 index 0000000..cd7fe23 Binary files /dev/null and b/drawable-xxxhdpi/calendar.png differ diff --git a/drawable-xxxhdpi/family_time.png b/drawable-xxxhdpi/family_time.png new file mode 100644 index 0000000..40689a5 Binary files /dev/null and b/drawable-xxxhdpi/family_time.png differ diff --git a/drawable-xxxhdpi/friends.png b/drawable-xxxhdpi/friends.png new file mode 100644 index 0000000..a31c286 Binary files /dev/null and b/drawable-xxxhdpi/friends.png differ diff --git a/drawable-xxxhdpi/lovely_time.png b/drawable-xxxhdpi/lovely_time.png new file mode 100644 index 0000000..ac722c1 Binary files /dev/null and b/drawable-xxxhdpi/lovely_time.png differ diff --git a/drawable-xxxhdpi/me_time.png b/drawable-xxxhdpi/me_time.png new file mode 100644 index 0000000..8f65064 Binary files /dev/null and b/drawable-xxxhdpi/me_time.png differ diff --git a/drawable-xxxhdpi/team_time.png b/drawable-xxxhdpi/team_time.png new file mode 100644 index 0000000..038806e Binary files /dev/null and b/drawable-xxxhdpi/team_time.png differ diff --git a/sapnea.jpeg b/sapnea.jpeg new file mode 100644 index 0000000..3f3ecc6 Binary files /dev/null and b/sapnea.jpeg differ diff --git a/sapneb.jpeg b/sapneb.jpeg new file mode 100644 index 0000000..9fb724d Binary files /dev/null and b/sapneb.jpeg differ diff --git a/sapnec.jpeg b/sapnec.jpeg new file mode 100644 index 0000000..b383781 Binary files /dev/null and b/sapnec.jpeg differ diff --git a/sapned.jpeg b/sapned.jpeg new file mode 100644 index 0000000..e7f5e24 Binary files /dev/null and b/sapned.jpeg differ diff --git a/sapnee.jpeg b/sapnee.jpeg new file mode 100644 index 0000000..f8a9251 Binary files /dev/null and b/sapnee.jpeg differ diff --git a/sapnef.jpeg b/sapnef.jpeg new file mode 100644 index 0000000..0f36795 Binary files /dev/null and b/sapnef.jpeg differ diff --git a/sapneg.jpeg b/sapneg.jpeg new file mode 100644 index 0000000..0667c4e Binary files /dev/null and b/sapneg.jpeg differ diff --git a/sapneh.jpeg b/sapneh.jpeg new file mode 100644 index 0000000..179f0a0 Binary files /dev/null and b/sapneh.jpeg differ diff --git a/strings.xml b/strings.xml new file mode 100644 index 0000000..18cd275 --- /dev/null +++ b/strings.xml @@ -0,0 +1,101 @@ + + Sapne + All Volunteers + linear sectioned recycler view + + + Open navigation drawer + Close navigation drawer + AboutUs + Education for all + + + A teacher presents the past, + reveals the present and creates the future, rightly said by John Holt. + So, here at Sapne - our NGO, we are providing quality teachers, for the + children who are willing to study and who want to make their future bright + but due to some obstacles , they are unable to do so. Due to this reason, + we are teaching them, making them capable for themselves and for the + society too. We have organized regular camps in which we teach students, + we provide the children with the academic education and apart from this, + we play with them, we teach them how to live life to its fullest. And in + the two hours of the camp, those children are so happy that their happiness, their joy, their cheer, cannot be expressed in words. + + We believe that , Learning is not the product of teaching , Learning is the product of activities of learners . + So we indulge the children in various kinds of activities of their own interest and also in other activities which can benefit them in future. + We dance together , we sing together , we play together , we study together , we giggle together , we gossip together , we share our memories , + our experiences in those two hours of regular camps organized by Sapne For us , every sapna , every dream is important and hence we try our best to accomplish that , + if not accomplish , we try our best to give that dream , a direction. For this , we provide teachers , who are skilled in their field of work and + accordingly they teach , they train the students . In this way teachers get the platform to teach and express or share their knowledge , moreover , + increase their knowledge , and students get quality education . + + While moving on the roads , we see many children who have not worn proper clothes , who are deprived of the basic needs , + who should study and play at this age , but due to their financial conditions , they can\'t even think of doing all these things because , for them , + three-time meal is more than enough for survival. Now the question arrises , What do we , as responsible citizen of the country , do for them ? Except for + showing concern , except for being sympathetic , we do nothing . But Sapne , our NGO , is proud to tell that , we are doing something , we have taken first + step and it is the First step that leads to the Final step . And we are sure that we will definitely reach till the final step with the support of our team and + the children who want to make their future bright and satisfying . + + + "No account yet? Create one" + + Her name is Sapna, a young girl who recently migrated to Delhi from Nepal, along with her parents. The first few months in Delhi were tough. Having little knowledge of Hindi, the common language, Sapna struggled to communicate with other kids of her dilapidated locality in Delhi. But not only does she share her name with our organisation, she shares SAPNE\'s grit and determination as well! Since the past three months, Sapnas been working diligently on her Hindi under the guidance of tutors provided by SAPNE. Her hardwork seems to be paying off and she can now converse and play with her friends with relative ease. During one of the career counselling sessions organised by SAPNE at her locality, Sapna shared her dream of becoming a doctor when she grows up. "I want to help the needy" she says with her trademark adorable smile. Help her fulfil her dreams. + + "AJAY, a 26 year old boy suffering from EPILEPSY,a neurological disorder. He is a man of great inspiration for all of us. Ajay is so keen to get himself educated like all the other children. His innocence,dedication and hard work will not let him down. Despite facing the major problems he has in his life,his struggle fades all the other things that hinders the path of learning. He has that zeal to attain good and achieve best. We are very much involved into him by supporting his efforts. Are you? Help us so that we could provide him the best he wants." + + "Manpreet, despite belonging to a underprivileged section of the society is an integral part of SAPNE family and is no less than any of the so-called “rich children”. But due to some social and economic barriers, her dreams are somehow being neglected. She wants to adore her life and aspires to be a successful and respected teacher. Though, she has some learning disabilities and speech defects but, due to this, her dreams should not be shattered. So, we, with the help of our special educators are teaching her through the play-way method and hence she is edging towards her dreams." + Education is not preparation for life; education is life itself - rightly said by John Deway. \n\n Education is life and life is the right of each and every human living on the earth whether she/he is poor , rich or anyone . But due to lack of some resources , the so-called money , the so-called wealth , the poor section of our society is struggling for basic needs like education, food , shelter , clothing ,etc. + And we as the responsible citizens of the country must bridge the gap between rich and poor . So to give this thought a direction, we have "SAPNE" , an NGO which is there to educate , to provide some basic requirements to the unprivileged section of children. + So, Sapne is working for the betterment of the children who do not know the real meaning of their life by analyzing their sapne , their dreams , we provide them the way to their dreams , we enlighten the way of their dreams. In this world , everyone dreams and everyone chase their respective dreams , so why can\'t these children ? They also have dreams and they also have right to fulfill their dreams and they must also know and hence we teach them that , " A dream is not that you see in sleep , dream is something that doesn\'t let you sleep." + OurMission + Develop research teams and centres with special focus on developing advanced curriculum for the children of the NGO. + Create at least 20 educational camps all over Delhi in next 2 years. + Creating job opportunities in distinct fields and train at least 1000 employable youth for specialized and well respected roles. + About Us + Our Mission + Establish a Gurukul with a functional library, ground, auditorium and accommodation for the kids. + Include more trained and experienced teachers into the SAPNE family to train the kids. + Our Vision + SAPNE is working towards developing skills and providing special teaching aids in order to make the knowledge accessible to all. This will be done through our Gurukuls, or Education centres, for children where they can learn, play and get a chance of realizing their sapne (dreams). + The ultimate aim is to create a highly aware generation of youth that is not susceptible to social and financial barriers and can fight their own battles with the power of knowledge and skills. + Our Team + An Accountant/Social Worker/Entrepreneur/Event organizer. He is young Enthusiastic , Energetic and active personality with have positive approach towards life. He is a founder of SAPNE. He founded SAPNE with a promising commitment towards the nation and the Society. He is positive , Intellectual and funny at the same time. He loves kids and love to interact with them. + EventsActivity + + + Hello blank fragment + “The function of education is to teach one to think intensively and to think critically. Intelligence plus character - that is the goal of true education. - Martin Luther King, Jr. + \n\nThis is what SAPNE believes in. And to accomplish this goal we provide education to all the underprivileged children. + “A teacher presents the past, reveals the present and creates the future.” + Providing education does not only mean giving them the knowledge of alphabets and numbers but also includes overall development of the children. For this we encourage skill development along with academic education. We train them in co-curricular areas like drawing, handicraft, dancing, English speaking, extempore along with other activities which are conducted regularly in form of events. + Health camps are also held once or twice in a month where we provide free health check up and also create awareness about hygiene and cleanliness amongst the people. The classes are held daily from Monday– Saturday at 4–6 in evening. At present 4 educational camps are working in this field. + Lohri is famously an occasion which marks the end of winter and the coming of spring. SAPNE celebrated Lohri 2016 with great enthusiasm and exuberance to give our children + an experience of different festivals. + Lohri Celebration + Republic Day + In our country, we strive to inculcate our youth the feeling of brotherhood, patriotism, and other core values. Keeping this thought in mind, we celebrated Republic Day with deprived section of our society. This national occasion comprised a mini parade and national anthem sung towards the acquaintance with the celebration of our national festivals. + Express Your Dreams + No matter from where you belong, your dreams are valid and feasible. And that is why SAPNE was formed - to value everyone\'s dream. This event was held on 29th June 2016 at D-Mall, Rohini, Delhi. The event was anchored by Mr. Devesh Mittal, Ms. Diivya Verma, Mr. Anurag Pandey and the whole Sapne Team participated. + + This event was organised at Netaji Subhash Place, Delhi with an aim to bring out some hidden curiosity among the people. The theme of this event was to put some daring people forward to try and attempt the dares given to them by the volunteers which were meant for social welfare. The active involvement of the people made it a huge success. + Independence Day + Cleanliness Drive + SAPNE along with the children from various sections of the deprived society celebrated the Independence Day at Siraspur, Delhi. It was an occasion of both Independence Day as well as opening ceremony of the centre. Flag hoisting was followed by some cultural programs. The program consisted of patriotic group song, graceful dance and short plays. + On the auspicious occasion of Ganesh Chaturthi, we came across a canal in Rohini Sec- 18, Delhi which was long overdue and it was getting noxious for the ones living nearby. Our group of volunteers initiated the drive and dedicated themselves to this movement whole heartedly. Holding up the broom in hand and with determination in the heart to clean the dirt, to make Swachh Bharat Abhiyan a great success across the nation. + These camps are: ~District Park I block, Sector - 16, Rohini, Delhi-89 ~Nursery Park, Sector -16, G Block, Rohini, Delhi - 89 ~Sector - 16, slum side, near Ambedkar Bhawan, Rohini, Delhi - 85 ~ Siraspur, Delhi + MRIG TRISHNA , an event organized by SAPNE was held at Unity One Mall , Janakpuri, Delhi consisted of two activities . Firstly , there was an activity , “Find me” in which there were some cubes and on each side of the cube , a letter was written . In 30 seconds , people had to rearrange those cubes to make a meaningful word and those who were successful in making the words won a smiley , as the token of appreciation . + Diwali, the auspicious festival of lights bring joy to many but ignore the underprivileged, but SAPNE didn\'t. SAPNE decided to bring light and joy in the lives of those people. On 16th October 2016, SAPNE conducted an awareness drive at Saket, Delhi, urging the public to celebrate a Cracker- free and Eco-friendly Diwali. We distributed handmade Diyas and candles to everyone who pledged to celebrate a safe Diwali. These beautiful Diyas and candles were made by the underprivileged and differently-abled children of SAPNE. + This year SAPNE celebrated Diwali, the festival of lights by bringing some spark and light in the lives of the children of SAPNE. We conducted Diwali Fiesta event at growing steps where we addressed the children who are underprivileged and who may not have any reason to look forward for this festival. \n\nChildren from our centre gave the dance performance learnt from their Choreographer in dance classes. They danced gracefully. We managed to bring a smile on the faces of all the kids. + The SAPNE team and the Children celebrated Children\'s Day with love and warmth. The idea of coming up with this event was to give the feeling of happiness and joy to children and spread awareness about child rights among people. \n\nThe event was hosted by Ms. Rupali Jain and co-hosted by Ms. Nikita Kedia. The engagement was vibrant with total of 100 underprivileged kids from our camps and privileged children from nearby societies coming together to share the fun on 14th November, 2016, which was held at Siraspur in New Delhi. + We organised an event called \'Kindness Day\' at Play School - Growing steps. Kindness day was celebrated with the inclusion of kids from SAPNE camps and Growing Steps. They were taught sharing, caring and KINDNESS towards other people and were asked to be a helping hand to others. They learnt the same with great enthusiasm. They were told to be compassionate and helpful to others. + Christmas is the time of celebration, hope and joy. It is the time when children wait eagerly for the presents from their favourite Santa Claus. In order to bring the joy and light in the lives of underprivileged kids, SAPNE took the initiative to celebrate Christmas with them. \n\nThe children from our camps and nearby slums, took part with great zeal in this amazing event. Children got to know the story of Jesus Christ and the reason we celebrate Christmas and showed great interest. At the closing of this event, each participant received gifts and chocolates. + Anniversaries are an important part of life. They remind us of important events both personal and cultural. Anniversary puts a pin on the calendar to remind us of something that matters to us. \n\nSAPNE, also celebrated its first anniversary on 22 January 2017 at Rohini,Sector-11, Delhi, the place from where the journey of SAPNE begun, the journey to teach underprivileged section of the society. + Decorate a life campaign\' was organized by Team Sapne on Saturday, February 18,2017. + Team Sapne invited volunteers to come together and clean the surroundings and + decorate the walls of their education centers with creative art, inspiring messages or + their wishes as well. + \n\nThe children showed great enthusiasm while painting the walls. They showed their + creative skills by painting the walls using their handprints and decorate the walls + with alphabets and numbers. + Sapne care intends to act as an interface between the volunteers and organisation. \n\nFeel free to tell us anything and our management team will get back to you. + diff --git a/styles.xml b/styles.xml new file mode 100644 index 0000000..8d2a924 --- /dev/null +++ b/styles.xml @@ -0,0 +1,37 @@ + + + + + + + + + + + + + +