Skip to main content

Posts

Showing posts from May, 2020

Shared Transition Animation Android

One of the more simple animations that can be done in Android is the shared transition animation. It is very effective and simple to achieve ,below we show you how to get this done with only a few lines of code where necessary. [1]  Edit your Window Transitions < style name ="AppTheme" parent ="Theme.AppCompat.Light.DarkActionBar" > <!-- Customize your theme here. --> < item name ="colorPrimary" >@color/colorPrimary</ item > < item name ="colorPrimaryDark" >@color/colorPrimaryDark</ item > < item name ="colorAccent" >@color/colorAccent</ item > < item name ="android:windowContentTransitions" >true</ item > </ style > [2]Create 2 separate elements of equal view types within 2 layouts and give the both the property of android :transitionName =" yourtransitionname" android :transitionName =" yourtransitionna...

Open an Android fragment from another fragment using a button click

In this video, we utilize the jetpack navigation component to launch a fragment from an existing fragment in android, utilizing a button within the launching fragment. I try to make it as simple and easy to understand as possible

Top 5 Programming Mistakes Beginners will Make

This video will show you the Top5 most common mistakes beginners will make and teach you the best approach to use in order to avoid them, in this video, I will talk about my very own mistakes that I had to learn from

What you need to know in order to create your first game

We all know that designing your first Android game is not easy, but the most difficult part is finding ready to use information that can guide you through the development process. With this in mind, I have decided to create a short video based on my experiences,.It illustrates what you need to know as well as master in order to design your first game. This video will not go into the technical nuances of creating your first game but will only act as a guidepost on what you need to know and master, in order to create that great game that you've been dreaming to show the world.

Android On-boarding made easy

In this video, we show you the easy way to get Onboarding tutorial in your Project THE EASY WAY Step 1. Add the JitPack repository to your build file Add it in your root build.gradle at the end of repositories: allprojects { repositories { .. . maven { url ' https://jitpack.io ' } } } Step 2. Add the dependency dependencies { implementation ' com.github.msayan:tutorial-view:v1.0.10 ' } Step 3   e xtend your activity  with Tutorialactivity this is done in Kotlin by class youractivityname : Tutorialactivity step4 copy the code into your oncreate method addFragment( new Step . Builder () . setTitle( " This is header " ) .setContent( " This is content " ) .setBackgroundColor( Color . parseColor( " #FF0957 " )) // int background color .setDrawable( R . drawable . ss_1) // ...

Loading Local Webpage inside Android Webview

[1] first create an asset folder, and place all your local web page files and assets within that folder [2] create a web view within your layout folder of the activity [3] finally use the web filter load the local page/HTML using an example of the code below Simply do  this: WebView webView = (WebView)findViewById(R.id.webView1); webview.loadUrl("file:///android_asset/file.html")];

Android placeholder animation made easy

Android has a huge library of animations, in fact in my opinion there's way too much to choose from. In fact the vast array of animation options in Android can make it daunting for newcomers and new programmers alike. They often range from the simple to the needlessly complex, in this article will take a look at a simple one for sure. This type of animation can be referred to as a placeholder animation

Using Glide Library in Android

Using Gif and other images in Android has become easier to implement using the Glide Library, with just a simple couple lines of code you can have your project up and  working.  First create a blank Activity Create a ImageView to hold the Gif/Images [2] add the dependencies to your grade file dependencies {  implementation ' com.github.bumptech.glide:glide:4.11.0 ' annotationProcessor ' com.github.bumptech.glide:compiler:4.11.0 ' } [3] utilising the Glide Library component ImageView imz = (ImageView) findViewById(R.id.my_image_view); Glide.with(this).load(R.drawable.pic).into(imageView); }

TextSwitcher in Kotlin

Hey hello world , welcome to my blog, for over a couple months now my programming language of choice has been Kotlin for many reasons. One off the main reasons is due to the ease in which many of androids more powerful features can be implemented with relatively few lines of code. In this article I will look at how to implement a text Witcher wake very few lines of kotlin code. [1] To Get started what you need is to add the Textswitcher to the layout file [2] Then create a list that  contains whatever you will need to display in the Textswitcher var list = listOf ( "one" , "two" , "three" , "four" , "five" , "six" , "seven" ) [3] Utilise the .setFactory method to use the textswitcher, this allows you to set exactly how the text will be viewed and displayed tswitch.setFactory { val textView = TextView( this @MainActivity ) textView. gravity = Gravity. TOP or Gravity. CENTER_HORIZON...