You have been beginner enough and now wants to intermediate in development. If this you keep reading.
This post will focus on Android Development skills and How to become Beginner to Intermediate Android Developer.
What makes you beginner and what makes you intermediate, let’s have a look.
Things beginners do:
1.No structure in code.
2.Keep pasting same code without making a function
3.Keep themselves away to learn the hard stuff (e.g. Architecture component)
4.They only focus on current task rather than think big, means how it can be used in future.
Things you need to do to become Intermediate.
1. Enhance your thinking by learning new things.
2. If you are not using kotlin, it’s definitely a time. Learning kotlin is very easy and very helpful in your coding.
3. Learn data binding and Architecture component, i prefer MVVM.
4. More Important is format your code in readable form. Make classes and functions to do the same type of work, for eg: create a Util class that has many functions, one of them is to check network connection and return true or false. So in your any activity you simply call this function and get value in boolean. Now that makes your code more readable and structured.
5. Take a look at a small example:
How to become Beginner to Intermediate Android Developer? Let’s try to learn something new that will make you close one step to Intermediate.
You may already know that google has launched Navigation Graph thing in android to make things more structured in project.
We consider using one Activity and some fragments in this post: we will keep it simple to learn basics about it.
Basic idea about it that you will have one host fragment in activity and you will replace all your fragments in it Follow steps now:
For this you first create a ‘navigation’ directory in res folder and create a ‘New Navigation Resource File’ in it. Name it: ‘nav_graph’. It will prompt this dialog to you.
Click ok, wait for synch , volla you have built your first navigation graph.
You see there is space available for HostFragment in your graph. Let’s fill it by adding following code in your activity_main
Create fragments just like you normally do, go to graph and click on the Add button
Select your fragments and keep adding as many as want. It generates auto id in if your read Text of nav_graph.
There is home icon on your first fragment that denotes your start fragment, you don’t have to do anything extra to open your start fragment, simply run your activity and you are good to go. You can change your start fragment anytime.
To open one fragment to another, just write this line.
Here fragmentB is the id given by nav_graph when you added a fragment in nav_graph. Go to nav_graph and check out your fragment ids.
Keep learning about Navigation Component , there is so much more
Thanks for Reading.
Please connect with us for any Android App Development needs. We are a team of experienced and skilled Android App Developers who is experienced in working for different industries all over the world. Hire Android App Developers with us for your next Android App Development. We provide high quality and interactive Android Applications with creative and innovative designs and a very user friendly system.