How to organize classes and layout - android-studio

so i was trying to find how to make sub folders for java classes and the xml layouts, I have a big project to work on and having to many classes and layouts in 1 folder makes it messy, is there a video explaining it? because when I am trying to make folders it wont let the app run

managed to find the solution
for classes go here:
stackoverflow guide for class folders
for layouts go here:
guide for layout folders

Related

Animations with multiple Images using FFmpeg or another tools

What I have:
different video templates without logo
UI where users will select a template from that list
UI where users can upload their logotype, add mp3 file, text
What should be done:
new generated video based on this configuration.
What I found:
I can use ffmpeg and combine it all. But not sure how to make such animations with logo. Maybe there is existing gui.
I also found https://github.com/inlife/nexrender. But it works with Adobe After Effects and seems like what I need.
Example of result https://www.introbrand.com/logo-opening-mobiles.html
I'm not looking for the ready solution, just a few words - how to go, what to use..
This is absolutely new things for me, so if you could please suggest something or just tell me what's the best way - I'd appreciate this)
From what you described, I would say this is what you are looking for :https://creatomate.com/blog/video-rendering-with-nodejs-and-ffmpeg

Defining API class in component based structure

I have been reading the 'Node JS Best Practices' Github article. One point that I I found interesting was the very first best practice. Here they split up the project structure based on components. One of the advises was to use functions and classes outside the component by defining them in an API class. But I can't find any examples on how such class should be build.
This is the link to the Github article:
Component bases project structure
You Just Connect Your Main Index file .
every script File Then AutoLoad Practices.
Var myVar2 = require('./your_file')
You can have a look at this, if you wanna structure your project in different parts and make that more readable.
Im attaching one of the boilerplate link of github since, it will be huge to tell you everything here, just look at this setup you will know everything.
check this link for boilerplate.
If you have doubts let me know.

View JSF page structure

I'm working on project which uses JSF as UI framwork.
There is a lot of huge forms which contains many <ui:include> tags referring to other part of pages and they also includes others etc. When you drilling into structure it's really headache to hold it in your head.
So, my question is there any feature in IntelliJ Idea (or maybe in other IDE) which may graphically show such hierarchy?
Thanks for advice

Is there a clever way how to share custom controls among Xpages applications?

For our Xpages application stack we have to create cca. 100 controls that will cover our new UI parts/helpers and some additional services. These controls are meant to be very general and have to be used by many Xpages applications. Now question is how to share these controls among applications(databases). Controls need some managed beans to work, also some CSS, JS and images. To copy the whole stuff into each application and maintain it somehow is not the way (even design inheritance doesnt help here). What's more ... mixing these 100 controls among application specific controls is real hell as controls doesn't support any namespaces or some packages grouping (like java in Package Explorer), so at the end we have very long list of controls in DDE which is nightmare to navigate and work with.
We tried to use Extension Library approach and followed this tutorial
http://www-10.lotus.com/ldd/ddwiki.nsf/dx/Master_Table_of_Contents_for_XPages_Extensibility_APIs_Developer_Guide
... but honestly I tried 3 times on my computer from scratch and even example project from tutorial didn't work properly and still caused some errors in update site project. My colleague also tried this on his computer with no luck. And entire process as described in the article above is set of many java classes, XML and configuration files even for small control (eclipse plugin project -> feature project -> updated site project and then you have to install this update site test it and when bug occurs you have to run another cycle ...). Comparing to e.g. this http://tapestry.apache.org/component-classes.html its extremely heavy weight approach in Xpages.
So my question is, is there any other approach that can help us in this area to share controls among applications? Or is there any update expected in this area for upcoming Notes release e.g. R9.1 ?
the most efficient way to share controls is an extension library. It does come with a learning curve. You could use Nathan's XSP Starter Kit to ease your pain. Alternatively you can use the import/export plug-in from OpenNTF to move controls (and their supporting files) around.
In any case: XPages custom controls do support name spaces and grouping -> just have a look at the property panel of a control. You can define:
the namespace (defaults to xc, but you are free to design your own)
the group it should appear in
icons
how it looks at design time (to hide the inner workings)
So step 1 is to group and clean and then think about the distribution. Extlib definitely would be best.
There is good ol' method for sharing design elements in NSF: templates. You can make your database a template, and then inherit just specific design elements by copy/pasting them at designer level. In design element's properties view, Design tab, look for "Inherit from the design template" property. It contains template name from which you copied the element. Watch out for the property "Prohibit design refresh or replace to modify", it should be off.
This has some consequences when deploying the application to production, though, so please, read the documentation/help about template inheritance. Especially combination with XPages/custom controls requires the template to be built and signed.
We use it to share custom controls like application layout and picklists with no problems.

Working with Drupal views and theming views

I am new to drupal views. I know how to basically use views from from end i.e creating some views.
I wanted to know if i can create a view from my module and how do i theme a view that i have created.
Is there any clear ebook or something regarding this. I tried 1 book, But i felt it was not good explanation in it.
This is a fairly large subject. There are a lot of tutorials for Views & Panels out there.
Here's a link to the blog of the Views module author Angry Donuts, you'll find a link to the book he has written.
Have you checked drupal.org? You should find links to video tutorials and a lot of info about Views.
Is the question about theme views or programmatically create it? you can theme view by adding your own custom template for view, view field, view list, etc etc etc.
Now, create view or go edit some, at Basic settings, press Theme:information, and you'll see active template for each element of the view. So, you can copy required views template from views/theme folder to your_active_theme/templates, give it proper name (as written in Information pane), and press rescan in Theme: information.
After this, you should see your template highlighted.
That's actually it.
As for programmatic way of working with views, I suggest to create view via interface, and then call in in your module, and theme as you wish.
Please see this post for details.

Resources