I'm not sure if I got your question correctly. If you need to create list views for sObjects (tabs), you can easily do this by using metadada api. Then you can deply profiles to assign appropriate views to profiles.
Creating list views is not supported by Apex as essentially ListViews are treated as Metadata. You might need to use a Metadata API (https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_intro.htm) and if you want to do it using Apex you might want to look at this: https://github.com/financialforcedev/apex-mdapi
But the bottom line is that you will have to know Metadata API in order to create list views.
The other option you can think of is - Extracting current list views in eclispe (they come wrapped in object manifest) and modifying them and saving back to server. For this approach you should know how the metadata is represented in xml and how to change it create new list views.
I'm not sure if I got your question correctly. If you need to create list views for sObjects (tabs), you can easily do this by using metadada api. Then you can deply profiles to assign appropriate views to profiles.
Here xml snippet for List Views-
Please upvote and mark this answer as solved, if it helped you.
Cheers!
Ajinkya Deshmukh
Creating list views is not supported by Apex as essentially ListViews are treated as Metadata.
You might need to use a Metadata API (https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_intro.htm) and if you want to do it using Apex you might want to look at this: https://github.com/financialforcedev/apex-mdapi
But the bottom line is that you will have to know Metadata API in order to create list views.
The other option you can think of is - Extracting current list views in eclispe (they come wrapped in object manifest) and modifying them and saving back to server. For this approach you should know how the metadata is represented in xml and how to change it create new list views.
Hopes this helps you!