SlidingMenu

In most of the android applications like Facebook , Google plus ,you tube, amazon kindle , true caller .. etc you have seen a side menu which appears on click of an icon on top left corner or by dragging on to the screen from left to right , so here in this tutorial we shall see how to create the sliding menu for you android application . For More Brief on design visit developer site Navigation Drawer . In this tutorial we will see an example in which i have added three items for listview , onclick of any particular item of the list , the corresponding content will be displayed . Below is the diagrammatic representation .

1. MainActivity.java

package com.cms.kilol;

import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.Intent;
import android.content.res.Configuration;
import android.graphics.drawable.ColorDrawable;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.view.GravityCompat;
import android.support.v4.widget.DrawerLayout;
import android.support.v7.app.ActionBar;
import android.support.v7.app.ActionBarDrawerToggle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.KeyEvent;
import android.view.MenuItem;
import android.view.View;
import android.view.WindowManager;
import android.view.View.OnClickListener;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.AutoCompleteTextView;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity implements OnClickListener,OnItemClickListener {

private DrawerLayout mDrawerLayout;
private RelativeLayout mDrawerList;
private ActionBarDrawerToggle mDrawerToggle;
private CharSequence mDrawerTitle;
private CharSequence mTitle;
Context context;
public static int lp = 0;
int flag = 1;
static ActionBar actionBar;
RelativeLayout lin2;
public static String CUR_PAGE_TITLE = "Title";
public static AutoCompleteTextView autoComplete;
@SuppressWarnings("unused")
private Handler mHandler = new Handler();
ImageView btn_card, btn_search, btn_close;
TextView btn_logo;
@Override
public void onResume() {
Log.v("DEBUG", "onResume of LoginFragment");
super.onResume();
}

protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN);
setContentView(R.layout.activity_main);
context = this;
actionBar = getSupportActionBar();
actionBar.setBackgroundDrawable(new ColorDrawable(getResources().getColor(R.color.gray)));
actionBar.setCustomView(R.layout.row);
actionBar.setDisplayShowTitleEnabled(true);
actionBar.setDisplayShowCustomEnabled(true);
actionBar.setDisplayHomeAsUpEnabled(false);
actionBar.setHomeButtonEnabled(true);
actionBar.setIcon(R.drawable.listicon);
btn_card = ((ImageView) findViewById(R.id.btn_card));
btn_search = ((ImageView) findViewById(R.id.btn_search));
btn_close = ((ImageView) findViewById(R.id.btn_close));
btn_logo = ((TextView) findViewById(R.id.btn_logo));
autoComplete = ((AutoCompleteTextView) findViewById(R.id.edt_search));
btn_card.setOnClickListener(this);
btn_close.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
btn_logo.setVisibility(View.VISIBLE);
btn_card.setVisibility(View.VISIBLE);
btn_search.setVisibility(View.VISIBLE);
btn_close.setVisibility(View.GONE);
autoComplete.setVisibility(View.GONE);

}
});

btn_search.setOnClickListener(new OnClickListener() {

@Override
public void onClick(View v) {
btn_logo.setVisibility(View.GONE);
btn_card.setVisibility(View.GONE);
btn_search.setVisibility(View.GONE);
btn_close.setVisibility(View.VISIBLE);
autoComplete.setVisibility(View.VISIBLE);
}
});
initMenu();
mTitle = mDrawerTitle = getTitle();
mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);
mDrawerList = (RelativeLayout) findViewById(R.id.left_drawer);

// set a custom shadow that overlays the main content when the drawer
// opens
mDrawerLayout.setDrawerShadow(R.drawable.drawer_shadow,GravityCompat.START);

// enable ActionBar app icon to behave as action to toggle nav drawer
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
getSupportActionBar().setHomeButtonEnabled(true);

// ActionBarDrawerToggle ties together the the proper interactions
// between the sliding drawer and the action bar app icon
mDrawerToggle = new ActionBarDrawerToggle(this, // host Activity
mDrawerLayout, // DrawerLayout object
// nav drawer image to replace 'Up' image
R.string.drawer_open, // "open drawer" description for
// accessibility
R.string.drawer_close // "close drawer" description for
// accessibility
) {
public void onDrawerClosed(View view) {
btn_logo.setVisibility(View.VISIBLE);
btn_card.setVisibility(View.VISIBLE);
btn_search.setVisibility(View.VISIBLE);
btn_close.setVisibility(View.GONE);
autoComplete.setVisibility(View.GONE);
autoComplete.setText("");
getSupportActionBar().setTitle(mTitle);
invalidateOptionsMenu(); // creates call to
// onPrepareOptionsMenu()
}

public void onDrawerOpened(View drawerView) {
btn_logo.setVisibility(View.VISIBLE);
btn_card.setVisibility(View.VISIBLE);
btn_search.setVisibility(View.VISIBLE);
btn_close.setVisibility(View.GONE);
autoComplete.setVisibility(View.GONE);
autoComplete.setText("");
getSupportActionBar().setTitle(mDrawerTitle);
invalidateOptionsMenu(); // creates call to
//onPrepareOptionsMenu()
}
};
mDrawerLayout.setDrawerListener(mDrawerToggle);

if (savedInstanceState == null) {
switchFragment(new HomeActivtiy());
setSelected(lin2);
}
}


@SuppressLint("CutPasteId")
private void initMenu() {
lin2 = (RelativeLayout) findViewById(R.id.lin2);
lin2.setOnClickListener(this);

}

@Override
public boolean onOptionsItemSelected(MenuItem item) {
if (item.getItemId() == android.R.id.home) {
if (mDrawerLayout.isDrawerOpen(mDrawerList)) {
mDrawerLayout.closeDrawer(mDrawerList);
} else {
mDrawerLayout.openDrawer(mDrawerList);
}
}
return true;

}

@Override
public void onClick(View v) {
Fragment newContent = null;
Bundle bundle = new Bundle();

if (v.getId() == R.id.lin2) {
newContent = new HomeActivtiy();
}
if (newContent != null) {
newContent.setArguments(bundle);
switchFragment(newContent);
}
}

// switching fragment
private void switchFragment(Fragment fragment) {
mDrawerLayout.closeDrawer(mDrawerList);
FragmentManager fragmentManager = getSupportFragmentManager();
// fragmentManager.beginTransaction().replace(R.id.content_frame,
// fragment).commit();
fragmentManager.beginTransaction()
.replace(R.id.content_frame, fragment)
.addToBackStack("my_fragment").commit();
}

@Override
public void setTitle(CharSequence title) {
mTitle = title;
getSupportActionBar().setTitle(mTitle);
}

// set the selected option as enabled
private void setSelected(RelativeLayout rl) {

lin2.setSelected(false);

rl.setSelected(true); // set current selection

}

// When using the ActionBarDrawerToggle, you must call it during
// onPostCreate() and onConfigurationChanged()
@Override
protected void onPostCreate(Bundle savedInstanceState) {
super.onPostCreate(savedInstanceState);
// Sync the toggle state after onRestoreInstanceState has occurred.
mDrawerToggle.syncState();
}

@Override
public void onConfigurationChanged(Configuration newConfig) {
super.onConfigurationChanged(newConfig);
// Pass any configuration change to the drawer toggles
mDrawerToggle.onConfigurationChanged(newConfig);
}

@SuppressLint("NewApi")
@Override
public void onBackPressed() {

if (MainActivity.lp == 1) {

Log.v("MainActivity", "" + MainActivity.lp);

} else {
Log.v("MainActivity", "" + MainActivity.lp);
super.onBackPressed();
}
}

@TargetApi(Build.VERSION_CODES.JELLY_BEAN)
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (MainActivity.lp == 1) {
if (keyCode == KeyEvent.KEYCODE_BACK && event.getRepeatCount() == 0) {
Intent intent = new Intent(Intent.ACTION_MAIN);
intent.addCategory(Intent.CATEGORY_HOME);
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(intent);
finish();
System.exit(0);
return true;
}
}
return super.onKeyDown(keyCode, event);
}

@Override
public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {
// TODO Auto-generated method stub

}
}

2. HomeActivity.java

package com.cms.kilol;

import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;


public class HomeActivtiy extends Fragment {
Context context;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
MainActivity.lp = 1;
}

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.home_activtiy, container, false);
MainActivity.actionBar.show();
context = container.getContext();

return v;

}


public void onBackPressed() {
MainActivity.lp = 1;
}

@Override
public void onResume() {
MainActivity.lp = 1;
super.onResume();
}

// switching fragment
@SuppressWarnings("unused")
private void switchFragment(Fragment fragment) {

// mDrawerLayout.closeDrawer(mDrawerList);
getActivity().getSupportFragmentManager().beginTransaction()
.replace(R.id.content_frame, fragment)
.addToBackStack("my_fragment").commit();
}
}

3. activity_main.xml

<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/drawer_layout"
    android:layout_width="match_parent"
    android:layout_height="match_parent" >

    <!-- mian content frame -->
    <FrameLayout
        android:id="@+id/content_frame"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />

    <!-- include sliding menu here -->
    <include layout="@layout/sliding_menu" />

</android.support.v4.widget.DrawerLayout>

4. row.xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical" >

    <RelativeLayout
        android:id="@+id/realtive_title"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="#009688" >

        <ImageView
            android:id="@+id/btn_card"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:layout_centerHorizontal="true"
            android:layout_centerVertical="true"
            android:background="@null"
            android:contentDescription="@drawable/card"
            android:padding="5dp"
            android:src="@drawable/card"
            android:visibility="visible" />

        <TextView
            android:id="@+id/row_title"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:gravity="center"
            android:padding="10dp"
            android:text="My Orders"
            android:textColor="@color/white"
            android:textSize="20sp"
            android:textStyle="bold"
            android:visibility="gone" />

        <AutoCompleteTextView
            android:id="@+id/edt_search"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:layout_centerHorizontal="true"
            android:layout_centerVertical="true"
            android:layout_marginRight="30dp"
            android:completionThreshold="3"
            android:hint="Search"
            android:padding="18dp"
            android:textColor="@android:color/black"
            android:visibility="gone" />

        <ImageView
            android:id="@+id/btn_close"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:layout_centerHorizontal="true"
            android:layout_centerVertical="true"
            android:background="@null"
            android:contentDescription="@drawable/closes"
            android:padding="8dp"
            android:src="@drawable/closes"
            android:visibility="gone" />

        <ImageView
            android:id="@+id/btn_search"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:layout_centerHorizontal="true"
            android:layout_centerVertical="true"
            android:layout_marginLeft="30dp"
            android:layout_marginRight="30dp"
            android:background="@null"
            android:contentDescription="@drawable/search"
            android:padding="5dp"
            android:src="@drawable/search"
            android:visibility="visible" />

        <TextView
            android:id="@+id/btn_logo"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginRight="30dp"
            android:contentDescription="@drawable/andrid"
            android:padding="8dp"
            android:gravity="center"
            android:textSize="20sp"
            android:textColor="@android:color/black"
            android:text="AndroidCode"
            android:visibility="visible" />
    </RelativeLayout>

</LinearLayout>

5. sliding_menu.xml

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/left_drawer"
    android:layout_width="240dp"
    android:layout_height="match_parent"
    android:layout_gravity="start"
    android:background="@color/sliding_menu_bg" >

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_above="@+id/footer"
        android:fillViewport="true" >

        <LinearLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:background="@color/slider1"
            android:orientation="vertical" >

            <LinearLayout
                android:id="@+id/lin134"
                android:layout_width="match_parent"
                android:layout_height="10dp"
                android:background="@color/slider2"
                android:orientation="horizontal"
                android:padding="3dp" >
            </LinearLayout>

            <LinearLayout
                android:id="@+id/lin1"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="@color/slider2"
                android:padding="3dp" >

                <TextView
                    android:id="@+id/name"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginLeft="10dp"
                    android:text="Welcome "
                    android:textColor="@color/slider3"
                    android:textSize="15sp" />

                <TextView
                    android:id="@+id/username"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginLeft="5dp"
                    android:text="guest"
                    android:textAllCaps="true"
                    android:textColor="@color/slider3"
                    android:textSize="15sp"
                    android:textStyle="bold" />

                <TextView
                    android:id="@+id/ussddsername"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginLeft="1dp"
                    android:text=" !"
                    android:textColor="@color/slider3"
                    android:textSize="15sp"
                    android:textStyle="bold" />
            </LinearLayout>

            <LinearLayout
                android:id="@+id/l"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="@color/slider1"
                android:orientation="horizontal" >

                <LinearLayout
                    android:id="@+id/le"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginBottom="0.1dp"
                    android:layout_marginTop="0.1dp"
                    android:background="@color/slider1"
                    android:baselineAligned="false"
                    android:orientation="horizontal" >

                    <RelativeLayout
                        android:id="@+id/lin2"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_weight="1"
                        android:background="@color/slider2"
                        android:orientation="horizontal"
                        android:padding="8dp" >

                        <ImageView
                            android:id="@+id/btn_home"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_marginLeft="7dp"
                            android:background="@null"
                            android:contentDescription="@drawable/home"
                            android:src="@drawable/home" />

                        <TextView
                            android:id="@+id/_ord"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_gravity="center"
                            android:layout_marginLeft="40dp"
                            android:layout_marginTop="2dp"
                            android:text="Home"
                            android:textColor="@color/slider3"
                            android:textSize="15sp" />
                    </RelativeLayout>

                   
                   
                    <RelativeLayout
                        android:id="@+id/lin9"
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:layout_marginLeft="0.1dp"
                        android:layout_weight="1"
                        android:background="@color/slider2"
                        android:orientation="horizontal"
                        android:padding="8dp"
                        android:visibility="visible" >

                        <TextView
                            android:id="@+id/_ordd"
                            android:layout_width="match_parent"
                            android:layout_height="wrap_content"
                            android:gravity="center"
                            android:text="Login"
                            android:textColor="@color/slider3"
                            android:textSize="15sp" />
                    </RelativeLayout>
                </LinearLayout>
            </LinearLayout>
<ScrollView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@color/slider1"
        android:fillViewport="true"
        android:scrollbars="none"
        android:fadingEdge="none" >
               
       <LinearLayout
                android:id="@+id/ldssd"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="@color/slider1"
                android:orientation="vertical"
                android:fadingEdge="none" >
    
            <RelativeLayout
                android:id="@+id/lin11"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="0.1dp"
                android:background="@color/slider2"
                android:orientation="horizontal" >

                <TextView
                    android:id="@+id/_orddd"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:layout_marginTop="2dp"
                    android:padding="12dp"
                    android:text="Layout1"
                    android:textColor="@color/slider3"
                    android:textSize="15sp" />
            </RelativeLayout>

            <RelativeLayout
                android:id="@+id/lin12"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="0.1dp"
                android:background="@color/slider2"
                android:orientation="horizontal" >

                <TextView
                    android:id="@+id/_orddddddd"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:layout_marginTop="2dp"
                    android:padding="12dp"
                    android:text="Layout2"
                    android:textColor="@color/slider3"
                    android:textSize="15sp" />
            </RelativeLayout>

            <RelativeLayout
                android:id="@+id/lin13"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="0.1dp"
                android:background="@color/slider2"
                android:orientation="horizontal" >

                <TextView
                    android:id="@+id/_ordddd"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:layout_marginTop="2dp"
                    android:padding="12dp"
                    android:text="Layout3"
                    android:textColor="@color/slider3"
                    android:textSize="15sp" />
            </RelativeLayout>

            <RelativeLayout
                android:id="@+id/lin14"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="0.1dp"
                android:background="@color/slider2"
                android:orientation="horizontal" >

                <TextView
                    android:id="@+id/_ordddg"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:layout_marginTop="2dp"
                    android:padding="12dp"
                    android:text="Layout4"
                    android:textColor="@color/slider3"
                    android:textSize="15sp" />
            </RelativeLayout>

            <RelativeLayout
                android:id="@+id/lin15"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="0.1dp"
                android:background="@color/slider2"
                android:orientation="horizontal" >

                <TextView
                    android:id="@+id/Layout5"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:layout_marginTop="2dp"
                    android:padding="12dp"
                    android:text="Layout5"
                    android:textColor="@color/slider3"
                    android:textSize="15sp" />
            </RelativeLayout>

            <RelativeLayout
                android:id="@+id/lin16"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="0.1dp"
                android:background="@color/slider2"
                android:orientation="horizontal" >

                <TextView
                    android:id="@+id/Layout6"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:layout_marginTop="2dp"
                    android:padding="12dp"
                    android:text="Layout6"
                    android:textColor="@color/slider3"
                    android:textSize="15sp" />
            </RelativeLayout>

            <RelativeLayout
                android:id="@+id/lin17"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="0.1dp"
                android:background="@color/slider2"
                android:orientation="horizontal" >

                <TextView
                    android:id="@+id/Layout7"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:layout_marginTop="2dp"
                    android:padding="12dp"
                    android:text="Layout7"
                    android:textColor="@color/slider3"
                    android:textSize="15sp" />
            </RelativeLayout>

            <RelativeLayout
                android:id="@+id/lin18"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="0.1dp"
                android:background="@color/slider2"
                android:orientation="horizontal" >

                <TextView
                    android:id="@+id/Layout8"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:layout_marginTop="2dp"
                    android:padding="12dp"
                    android:text="Layout8"
                    android:textColor="@color/slider3"
                    android:textSize="15sp" />
            </RelativeLayout>

            <RelativeLayout
                android:id="@+id/lin19"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="0.1dp"
                android:background="@color/slider2"
                android:orientation="horizontal" >

                <TextView
                    android:id="@+id/Layout9"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:layout_marginTop="2dp"
                    android:padding="12dp"
                    android:text="Layout9"
                    android:textColor="@color/slider3"
                    android:textSize="15sp" />
            </RelativeLayout>

            <RelativeLayout
                android:id="@+id/lin20"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="0.1dp"
                android:background="@color/slider2"
                android:orientation="horizontal" >

                <TextView
                    android:id="@+id/_ocvcrddd"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:layout_marginTop="2dp"
                    android:padding="12dp"
                    android:text="Layout10"
                    android:textColor="@color/slider3"
                    android:textSize="15sp" />
            </RelativeLayout>

            <RelativeLayout
                android:id="@+id/lin21"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="0.1dp"
                android:background="@color/slider2"
                android:orientation="horizontal" >

                <TextView
                    android:id="@+id/_ordddngfgfddddd"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:layout_marginTop="2dp"
                    android:padding="12dp"
                    android:text="Layout11"
                    android:textColor="@color/slider3"
                    android:textSize="15sp" />
            </RelativeLayout>

            <RelativeLayout
                android:id="@+id/lin22"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="0.1dp"
                android:background="@color/slider2"
                android:orientation="horizontal" >

                <TextView
                    android:id="@+id/_orfhgdddd"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:layout_marginTop="2dp"
                    android:padding="12dp"
                    android:text="Layout12"
                    android:textColor="@color/slider3"
                    android:textSize="15sp" />
            </RelativeLayout>

            <RelativeLayout
                android:id="@+id/lin23"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="0.1dp"
                android:background="@color/slider2"
                android:orientation="horizontal" >

                <TextView
                    android:id="@+id/_orfghfgdddg"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:layout_marginTop="2dp"
                    android:padding="12dp"
                    android:text="Layout13"
                    android:textColor="@color/slider3"
                    android:textSize="15sp" />
            </RelativeLayout>

            <RelativeLayout
                android:id="@+id/lin24"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="0.1dp"
                android:background="@color/slider2"
                android:orientation="horizontal" >

                <TextView
                    android:id="@+id/Layoufgft5"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:layout_marginTop="2dp"
                    android:padding="12dp"
                    android:text="Layout14"
                    android:textColor="@color/slider3"
                    android:textSize="15sp" />
            </RelativeLayout>

            <RelativeLayout
                android:id="@+id/lin25"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="0.1dp"
                android:background="@color/slider2"
                android:orientation="horizontal" >

                <TextView
                    android:id="@+id/Layouhfht6"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:layout_marginTop="2dp"
                    android:padding="12dp"
                    android:text="Layout15"
                    android:textColor="@color/slider3"
                    android:textSize="15sp" />
            </RelativeLayout>

            <RelativeLayout
                android:id="@+id/lin26"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="0.1dp"
                android:background="@color/slider2"
                android:orientation="horizontal" >

                <TextView
                    android:id="@+id/Layoughgft7"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:layout_marginTop="2dp"
                    android:padding="12dp"
                    android:text="Layout16"
                    android:textColor="@color/slider3"
                    android:textSize="15sp" />
            </RelativeLayout>

            <RelativeLayout
                android:id="@+id/lin27"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="0.1dp"
                android:background="@color/slider2"
                android:orientation="horizontal" >

                <TextView
                    android:id="@+id/Layoutgfh8"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:layout_marginTop="2dp"
                    android:padding="12dp"
                    android:text="Layout17"
                    android:textColor="@color/slider3"
                    android:textSize="15sp" />
            </RelativeLayout>

            <RelativeLayout
                android:id="@+id/lin28"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="0.1dp"
                android:background="@color/slider2"
                android:orientation="horizontal" >

                <TextView
                    android:id="@+id/Lafgfyout9"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:layout_marginTop="2dp"
                    android:padding="12dp"
                    android:text="Layout18"
                    android:textColor="@color/slider3"
                    android:textSize="15sp" />
            </RelativeLayout>

            <RelativeLayout
                android:id="@+id/lin29"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="0.1dp"
                android:background="@color/slider2"
                android:orientation="horizontal" >

                <TextView
                    android:id="@+id/Lafgfyoghut9"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:layout_marginTop="2dp"
                    android:padding="12dp"
                    android:text="Layout19"
                    android:textColor="@color/slider3"
                    android:textSize="15sp" />
            </RelativeLayout>

            <RelativeLayout
                android:id="@+id/lin30"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="0.1dp"
                android:background="@color/slider2"
                android:orientation="horizontal" >

                <TextView
                    android:id="@+id/Ladfgfgfyout9"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:layout_marginTop="2dp"
                    android:padding="12dp"
                    android:text="Layout20"
                    android:textColor="@color/slider3"
                    android:textSize="15sp" />
            </RelativeLayout>
            </LinearLayout>
            </ScrollView>
        </LinearLayout>
    </LinearLayout>

    <LinearLayout
        android:id="@+id/footer"
        android:layout_width="match_parent"
        android:layout_height="42dp"
        android:layout_alignParentBottom="true"
        android:orientation="horizontal" >

        <ImageView
            android:id="@+id/ivMenuFacebook"
            android:layout_width="wrap_content"
            android:layout_height="40dp"
            android:layout_gravity="center"
            android:layout_weight="1"
             android:contentDescription="@drawable/fb_selector"
            android:background="@drawable/fb_selector"
            android:padding="7dp"
            android:src="@drawable/menu_fb_icon" />

        <ImageView
            android:id="@+id/ivMenuTwitter"
            android:layout_width="wrap_content"
            android:layout_height="40dp"
            android:layout_gravity="center"
            android:layout_weight="1"
            android:background="@drawable/twt_selector"
            android:padding="7dp"
            android:contentDescription="@drawable/twt_selector"
            android:src="@drawable/menu_twt_icon" />

        <ImageView
            android:id="@+id/ivMenuShare"
            android:layout_width="wrap_content"
            android:layout_height="40dp"
            android:layout_gravity="center"
            android:layout_weight="1"
             android:contentDescription="@drawable/share_selector"
            android:background="@drawable/share_selector"
            android:padding="7dp"
            android:src="@drawable/menu_share_icon" />
    </LinearLayout>

 

</RelativeLayout>