In android, you can define your own custom fonts for the strings in your application. You just need to download the required font from the internet, and then place it in assets/fonts folder. In Eclipse the assets folder is by-default created but in Android Studio you have to create assets folder. Note : assets folder creating
Read MoreWith the new Design support library for Android, it has become easier for us to create some great animations with minimal effort. We have seen WhatsApp profile view design with user image hide on scrolling. For that we need Design Support Library. In one of my earlier tutorial i had shown how to hide and show
Read MoreWhen Android 5.0 was released, new design guidelines were also released with it, called material design. It introduced many new design patterns and guidelines. But here we’ll discuss only one new UX concept introduced in material design called Snackbar. This new concept is inspired from the Toast widget of android. Android Snackbar is just like
Read MoreOne of the most basic UI widgets in Android is an EditText. It is generally used to take inputs from the user. But what it lacked was a label attached to it. Therefore in most of the implementations a hint was used as a label for the EditText. But last year when material design was
Read MoreIn my earlier tutorials of RecyclerView we had learn how to use RecyclerView to create ListView and GridView items. Today we are going to create Staggered GridView and Horizontal RecyclerView. Staggered GridView Staggered GridView is nothing but GridView with random grid sizes that look nice in app. To achieve this we need StaggeredGridLayoutManager and the syntax
Read MoreIn Android we can pass data from one activity to another via Intent using startActivity(). The syntax for this is shown below :
1 2 3 |
Intent in = new Intent(MainActivity.this, SecondActivity.class); in.putExtra("message",message); startActivity(in); |
Similarly we can get data from our other activity that is opened by an activity like SecondActivity from MainActivity and we need some message from SecondActivity back again to MainActivity so for this
Read MoreSubscribe to us and get the latest news.
RECENT COMMENTS