
Search In
In the below example I have created a simple fragment app code. Here, first I have created two new fragment xml layouts and neamed them fragmentone and fragmenttwo then in this I have added TextView and backgraund image. Now In activity_main.xml I ha
In the below example I have created a Tabs ViewPager by using three fragments. Before creating layout firstly I have added design libraries in the dependencies section of build.gradle file. Then I have created three fragments layout, in this I have a
In this example we are using two fragments Fragment1 and Fragment2 where Fragment1 consist of a button named click, this button will show the Fragment2 on clicking the Click button.
To implement Fragment in Android follow the steps mentioned below:-
These days android came up with new material design so lets get updated with one of the many features ie. Action Bar which is also special type of tool bar.
Before we start make sure you have these requirements fulfilled.
Android Studio.
Appcombat
Here I have created Action Bar in android. In android Action Bar is used to provide navigation and perform some actions.
In this blog I have implement a Action Bar in my Android project and perform actions such as switching fragment. Below example
Android has some of its policies due to which it don't allow you to upload apk more than the size of 50 MB. Many Apps contains too many media files that may increase the size leading to the exceeding the limit of 50 MB.
So if your App's apk is exce
First create a layout for Map Activity. The name of layout is activity_main.xml
<fragment
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/map"
class="com.google.android.
In the below example code I have Created a RecyclerView. In RecyclerView I have added CardView Item Alternatively like Chat app .
First Item is on left, second is on Right. In Adapter class I have used boolean type, variables(changeLayou
In this tutorial, we will learn to move layout view from one position to another position. We are using Draggable Layout, its a user interface which elements can rearrange from one position to another position. To drag an element just press over the
If you are looking how to create menuItem and make them visible or invisible on certain condition, here is way to create menuItems:-
Step 1:- Create items on menu.xml:-
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:c