How to make Android Jewellery Application Design

Showcase all your latest and featured design & development on you customers app. The Application gives you the facility to choose the best collection with gold silver. Get the collection in this app category basis, office details of retailer Sliding menu Order Details Payment mode add the best collection in your favorites list etc.

1. Main Activity

package com.tutorialsee;

import com.tutorialsee.R;
import com.tutorialsee.cart.dbhelpercart;

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;
static Context context;
public static int lp = 0;
int flag = 1;
static ActionBar actionBar;
RelativeLayout lin15,lin2,lin13,lin4444,lin5555,lin16,lin17,lin6666,lin18,lin7777,lin444,lin21,lin14,lin28,lin666;
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;
ImageView btn_logo,img_view,img_videw,img_viddsew,img_vidfdew;
public static dbhelpercart dbHelpercart;
public static TextView tx;

@Override
public void onResume() {
Log.v("DEBUG", "onResume of LoginFragment");

super.onResume();
}

protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN);
//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;
dbHelpercart = new dbhelpercart(context);
actionBar = getSupportActionBar();
actionBar.setBackgroundDrawable(new ColorDrawable(getResources().getColor(R.color.white)));
actionBar.setCustomView(R.layout.row);
actionBar.setDisplayShowTitleEnabled(true);
actionBar.setDisplayShowCustomEnabled(true);
actionBar.setDisplayHomeAsUpEnabled(false);
actionBar.setHomeButtonEnabled(true);
actionBar.setIcon(R.drawable.listicon);
btn_search = ((ImageView) findViewById(R.id.btn_search));
btn_close = ((ImageView) findViewById(R.id.btn_close));
btn_logo = ((ImageView) findViewById(R.id.btn_logo));
img_view = ((ImageView) findViewById(R.id.img_view));
img_videw = ((ImageView) findViewById(R.id.img_videw));
img_viddsew = ((ImageView) findViewById(R.id.img_viddsew));
img_vidfdew = ((ImageView) findViewById(R.id.img_vidfdew));
btn_card = ((ImageView) findViewById(R.id.btn_notifcation));
btn_card.setOnClickListener(new OnClickListener() {

@Override
public void onClick(View arg0) {
Fragment newContent = new Notifications();
if (newContent != null) {
switchFragment(newContent);
}
}
});
autoComplete = ((AutoCompleteTextView) findViewById(R.id.edt_search));

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) {
img_view.setImageResource(R.drawable.rightarrow);
img_videw.setImageResource(R.drawable.rightarrow);
img_viddsew.setImageResource(R.drawable.rightarrow);
img_vidfdew.setImageResource(R.drawable.rightarrow);
lin7777.setVisibility(View.GONE);
lin5555.setVisibility(View.GONE);
lin6666.setVisibility(View.GONE);
lin4444.setVisibility(View.GONE);
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(lin15);

}
}


@SuppressLint("CutPasteId")
private void initMenu() {
lin15 = (RelativeLayout) findViewById(R.id.lin15);
lin2 = (RelativeLayout) findViewById(R.id.lin2);
lin13 = (RelativeLayout) findViewById(R.id.lin13);
lin4444 = (RelativeLayout) findViewById(R.id.lin4444);
lin16 = (RelativeLayout) findViewById(R.id.lin16);
lin5555 = (RelativeLayout) findViewById(R.id.lin5555);
lin17 = (RelativeLayout) findViewById(R.id.lin17);
lin6666 = (RelativeLayout) findViewById(R.id.lin6666);
lin18 = (RelativeLayout) findViewById(R.id.lin18);
lin7777 = (RelativeLayout) findViewById(R.id.lin7777);
lin444 = (RelativeLayout) findViewById(R.id.lin444);
lin21 = (RelativeLayout) findViewById(R.id.lin21);
lin14 = (RelativeLayout) findViewById(R.id.lin14);
lin28 = (RelativeLayout) findViewById(R.id.lin28);
lin666 = (RelativeLayout) findViewById(R.id.lin666);

lin666.setOnClickListener(this);

lin28.setOnClickListener(this);
lin18.setOnClickListener(this);
lin21.setOnClickListener(this);
lin444.setOnClickListener(this);
lin7777.setOnClickListener(this);
lin14.setOnClickListener(this);
lin6666.setOnClickListener(this);
lin17.setOnClickListener(this);
lin5555.setOnClickListener(this);
lin4444.setOnClickListener(this);
lin16.setOnClickListener(this);
lin13.setOnClickListener(this);
lin2.setOnClickListener(this);
lin15.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 UserProfile();
}else if (v.getId() == R.id.lin28) {
newContent = new AboutUs();
}else if (v.getId() == R.id.lin666) {
newContent = new Horoscope();
}else if (v.getId() == R.id.lin15) {
newContent = new HomeActivtiy();
}else if (v.getId() == R.id.lin21) {
newContent = new Feedback_activity();
}else if (v.getId() == R.id.lin14) {
newContent = new ContactUs();

}else if (v.getId() == R.id.lin2) {
newContent = new UserProfile();
}else if (v.getId() == R.id.lin13) {

if (flag % 2 == 0)
  {
img_view.setImageResource(R.drawable.bottomarrow);
lin4444.setVisibility(View.VISIBLE);
flag = flag+1;
} else {
img_view.setImageResource(R.drawable.rightarrow);
lin4444.setVisibility(View.GONE);
flag = flag+1;
}
}else if (v.getId() == R.id.lin16) {

if (flag % 2 == 0)
  {
img_videw.setImageResource(R.drawable.bottomarrow);
lin5555.setVisibility(View.VISIBLE);
flag = flag+1;
} else {
img_videw.setImageResource(R.drawable.rightarrow);
lin5555.setVisibility(View.GONE);
flag = flag+1;
}
}else if (v.getId() == R.id.lin17) {

if (flag % 2 == 0)
  {
img_viddsew.setImageResource(R.drawable.bottomarrow);
lin6666.setVisibility(View.VISIBLE);
flag = flag+1;
} else {
img_viddsew.setImageResource(R.drawable.rightarrow);
lin6666.setVisibility(View.GONE);
flag = flag+1;
}
}else if (v.getId() == R.id.lin18) {

if (flag % 2 == 0)
  {
img_vidfdew.setImageResource(R.drawable.bottomarrow);
lin7777.setVisibility(View.VISIBLE);
flag = flag+1;
} else {
img_vidfdew.setImageResource(R.drawable.rightarrow);
lin7777.setVisibility(View.GONE);
flag = flag+1;
}
}else if (v.getId() == R.id.lin444) {
newContent = new Jewellery();
}
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) {

lin15.setSelected(false);
lin2.setSelected(false);
lin13.setSelected(false);
lin4444.setSelected(false);
lin5555.setSelected(false);
lin16.setSelected(false);
lin17.setSelected(false);
lin6666.setSelected(false);
lin18.setSelected(false);
lin7777.setSelected(false);
lin444.setSelected(false);
lin21.setSelected(false);
lin14.setSelected(false);
lin28.setSelected(false);
lin666.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. Home Activity

package com.tutorialsee;


import java.util.ArrayList;
import java.util.List;
import com.tutorialsee.R;
import com.squareup.picasso.Picasso;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.view.ViewPager;
import android.support.v4.view.ViewPager.OnPageChangeListener;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.Toast;


public class HomeActivtiy extends Fragment implements OnPageChangeListener,OnClickListener {
private ViewPager vp;
private ViewPagerAdapter vpAdapter;
private List<View> views;
private ImageView[] dots;
private int currentIndex;
LinearLayout ll;
LinearLayout user,mycart,home,Offers,more;
ImageView s,ss,sss,ssss;


private static final String[] pics = {
"http://www.tutorialsee.com/demo/image/f.png",
"http://www.tutorialsee.com/demo/image/g.png",
"http://www.tutorialsee.com/demo/image/e.png",
"http://www.tutorialsee.com/demo/image/f.png" };


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();

more = (LinearLayout) v.findViewById(R.id.more);
Offers = (LinearLayout) v.findViewById(R.id.Offers);
home = (LinearLayout) v.findViewById(R.id.home);
mycart = (LinearLayout) v.findViewById(R.id.mycart);
user = (LinearLayout) v.findViewById(R.id.user);
s = (ImageView) v.findViewById(R.id.s);
ss = (ImageView) v.findViewById(R.id.ss);
sss = (ImageView) v.findViewById(R.id.sss);
ssss = (ImageView) v.findViewById(R.id.ssss);

//http://ratnajyoti.com/newjewel/r/jewelary/r_app/g.png
Picasso.with(context).load("http://www.tutorialsee.com/demo/image/b.png").into(s);
Picasso.with(context).load("http://www.tutorialsee.com/demo/image/c.png").into(ss);
Picasso.with(context).load("http://www.tutorialsee.com/demo/image/d.png").into(sss);
Picasso.with(context).load("http://www.tutorialsee.com/demo/image/a.png").into(ssss);

ll = (LinearLayout) v.findViewById(R.id.ll);

more.setOnClickListener(new OnClickListener() {

@Override
public void onClick(View arg0) {
/*Fragment newContent = new HomeActivtiy();
if (newContent != null) {
switchFragment(newContent);
}*/
}
});

Offers.setOnClickListener(new OnClickListener() {

@Override
public void onClick(View arg0) {
Toast.makeText(getActivity(), "There are no offers available at this time", Toast.LENGTH_LONG).show();


}
});

home.setOnClickListener(new OnClickListener() {

@Override
public void onClick(View arg0) {
Fragment newContent = new HomeActivtiy();
if (newContent != null) {
switchFragment(newContent);
}
}
});

user.setOnClickListener(new OnClickListener() {

@Override
public void onClick(View arg0) {
Fragment newContent = new LoginActivity();
if (newContent != null) {
switchFragment(newContent);
}
}
});

mycart.setOnClickListener(new OnClickListener() {

@Override
public void onClick(View arg0) {
Fragment newContent = new AddToCart();
if (newContent != null) {
switchFragment(newContent);
}
}
});

// View Pager code
views = new ArrayList<View>();
LinearLayout.LayoutParams mParams = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT,LinearLayout.LayoutParams.MATCH_PARENT);
for (int i = 0; i < pics.length; i++) {
ImageView iv = new ImageView(getActivity());
iv.setLayoutParams(mParams);
iv.setScaleType(ImageView.ScaleType.FIT_XY);
Picasso.with(getActivity()).load(pics[i].replace(" ", "%20")).into(iv);
views.add(iv);
}
vp = (ViewPager) v.findViewById(R.id.viewpager);
vpAdapter = new ViewPagerAdapter(views);
vp.setAdapter(vpAdapter);

vp.setOnPageChangeListener(this);

initDots();


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();
}

@SuppressWarnings("unused")
private void initDots() {
Activity v = null;

dots = new ImageView[pics.length];
for (int i = 0; i < pics.length; i++) {
dots[i] = (ImageView) ll.getChildAt(i);
dots[i].setEnabled(true);
dots[i].setOnClickListener((OnClickListener) context);
dots[i].setTag(i);
}
currentIndex = 0;
dots[currentIndex].setEnabled(false);
}

// View Pager code
private void setCurView(int position) {
if (position < 0 || position >= pics.length) {
return;
}
vp.setCurrentItem(position);
}

// View Pager code
private void setCurDot(int positon) {
if (positon < 0 || positon > pics.length - 1 || currentIndex == positon) {
return;
}
dots[positon].setEnabled(false);
dots[currentIndex].setEnabled(true);
currentIndex = positon;
}

// View Pager code
@Override
public void onPageScrollStateChanged(int arg0) {
// TODO Auto-generated method stub
}

// View Pager code
@Override
public void onPageScrolled(int arg0, float arg1, int arg2) {
// TODO Auto-generated method stub
}

// View Pager code
@Override
public void onPageSelected(int arg0) {
setCurDot(arg0);
}

@Override
public void onClick(View v) {
int position = (Integer) v.getTag();
setCurView(position);
setCurDot(position);

}


}

3. home_activity

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="#F4F2F2"
    android:orientation="vertical" >

    <ScrollView
        android:id="@+id/realtive_tixzxtlefdd"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_above="@+id/footer"
        android:background="#F4F2F2"
        android:fadingEdge="none"
        android:scrollbars="@null" >

        <RelativeLayout
            android:id="@+id/realtivsae_titlefdd"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:background="#F4F2F2"
            android:descendantFocusability="blocksDescendants"
            android:orientation="horizontal" >

            <RelativeLayout
                android:id="@+id/realtive_titlefdd"
                android:layout_width="match_parent"
                android:layout_height="180dp"
                android:background="#F4F2F2"
                android:orientation="horizontal" >

                <android.support.v4.view.ViewPager
                    android:id="@+id/viewpager"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content" />

                <LinearLayout
                    android:id="@+id/ll"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_alignParentBottom="true"
                    android:layout_centerHorizontal="true"
                    android:layout_marginBottom="02dp"
                    android:gravity="center"
                    android:orientation="horizontal" >

                    <ImageView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_gravity="center_vertical"
                        android:clickable="true"
                        android:contentDescription="@drawable/dot"
                        android:padding="3.0dip"
                        android:src="@drawable/dot" />

                    <ImageView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_gravity="center_vertical"
                        android:clickable="true"
                        android:contentDescription="@drawable/dot"
                        android:padding="3.0dip"
                        android:src="@drawable/dot" />

                    <ImageView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_gravity="center_vertical"
                        android:clickable="true"
                        android:contentDescription="@drawable/dot"
                        android:padding="3.0dip"
                        android:src="@drawable/dot" />

                    <ImageView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_gravity="center_vertical"
                        android:clickable="true"
                        android:contentDescription="@drawable/dot"
                        android:padding="3.0dip"
                        android:src="@drawable/dot" />
                </LinearLayout>
            </RelativeLayout>

                    <LinearLayout
                        android:id="@+id/swe"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_marginLeft="7dp"
            android:layout_marginRight="7dp"
            android:layout_marginTop="7dp"
            android:background="#EDEDED"
            android:layout_below="@+id/realtive_titlefdd"
            android:orientation="horizontal" >

            <LinearLayout
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:layout_margin="0.1dp"
                android:layout_weight="1"
                android:gravity="center"
                android:background="@color/white"
                android:orientation="vertical" >
                   
                 <ImageView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:background="@null"
                android:src="@drawable/c" />
               
               
            </LinearLayout>

            <LinearLayout
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_weight="5"
                android:background="#EDEDED"
                android:orientation="vertical" >

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginBottom="0.1dp"
                    android:layout_marginRight="0.1dp"
                    android:layout_marginTop="0.1dp"
                    android:layout_weight="1"
                    android:gravity="center"
                    android:background="@color/white"
                    android:orientation="vertical" >
                   
                     <ImageView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:background="@null"
                android:src="@drawable/e" />
                </LinearLayout>

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_weight="1"
                    android:background="#EDEDED"
                    android:orientation="horizontal" >

                    <LinearLayout
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_weight="1"
                        android:background="@color/white"
                        android:gravity="center"
                        android:orientation="vertical" >
                       
                         <ImageView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:background="@null"
                android:src="@drawable/d" />
                    </LinearLayout>

                    <LinearLayout
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginLeft="0.1dp"
                        android:layout_weight="1"
                        android:background="@color/white"
                        android:gravity="center"
                        android:orientation="vertical" >
                        
                          <ImageView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:background="@null"
                android:src="@drawable/d" />
                    </LinearLayout>
                </LinearLayout>
            </LinearLayout>
        </LinearLayout>
           
           
            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_below="@+id/swe"
                android:orientation="vertical" >

                <ImageView
                    android:id="@+id/s"
                    android:layout_width="fill_parent"
                    android:layout_height="140dp"
                    android:layout_margin="8dp"
                    android:background="@drawable/border_shado0w_layout" />

                <ImageView
                    android:id="@+id/ss"
                    android:layout_width="fill_parent"
                    android:layout_height="140dp"
                    android:layout_marginLeft="8dp"
                    android:layout_marginRight="8dp"
                    android:background="@drawable/border_shado0w_layout" />

                <ImageView
                    android:id="@+id/sss"
                    android:layout_width="fill_parent"
                    android:layout_height="140dp"
                    android:layout_margin="8dp"
                    android:background="@drawable/border_shado0w_layout" />

                <ImageView
                    android:id="@+id/ssss"
                    android:layout_width="fill_parent"
                    android:layout_height="140dp"
                    android:layout_marginBottom="8dp"
                    android:layout_marginLeft="8dp"
                    android:layout_marginRight="8dp"
                    android:background="@drawable/border_shado0w_layout" />
            </LinearLayout>
        </RelativeLayout>
    </ScrollView>

    <LinearLayout
        android:id="@+id/footer"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:background="#00AAA0"
        android:orientation="horizontal" >

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="0.1dp"
            android:background="#ffffff"
            android:orientation="horizontal" >

            <LinearLayout
                android:id="@+id/home"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="3dp"
                android:layout_weight="1"
                android:orientation="vertical" >

                <ImageView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:background="@drawable/home"
                    android:contentDescription="@drawable/home" />

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:layout_marginBottom="3dp"
                    android:text="Home"
                    android:textColor="#00AAA0"
                    android:textSize="10sp" />
            </LinearLayout>

            <LinearLayout
                android:id="@+id/user"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="3dp"
                android:layout_weight="1"
                android:orientation="vertical" >

                <ImageView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:background="@drawable/userss"
                    android:contentDescription="@drawable/userss" />

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:layout_marginBottom="3dp"
                    android:text="User"
                    android:textColor="#00AAA0"
                    android:textSize="10sp" />
            </LinearLayout>

            <LinearLayout
                android:id="@+id/Offers"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="3dp"
                android:layout_weight="1"
                android:orientation="vertical" >

                <ImageView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:background="@drawable/offer"
                    android:contentDescription="@drawable/offer" />

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:layout_marginBottom="3dp"
                    android:text="Offers"
                    android:textColor="#00AAA0"
                    android:textSize="10sp" />
            </LinearLayout>

            <LinearLayout
                android:id="@+id/mycart"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="3dp"
                android:layout_weight="1"
                android:orientation="vertical" >

                <ImageView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:background="@drawable/cart"
                    android:contentDescription="@drawable/cart" />

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:layout_marginBottom="3dp"
                    android:text="My Cart"
                    android:textColor="#00AAA0"
                    android:textSize="10sp" />
            </LinearLayout>

            <LinearLayout
                android:id="@+id/more"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="3dp"
                android:layout_weight="1"
                android:orientation="vertical" >

                <ImageView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:background="@drawable/more"
                    android:contentDescription="@drawable/more" />

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:layout_marginBottom="3dp"
                    android:text="More"
                    android:textColor="#00AAA0"
                    android:textSize="10sp" />
            </LinearLayout>
        </LinearLayout>
    </LinearLayout>

</RelativeLayout>

Comments

Email Address: 

Hi sir,

This is mohanraj from coimbatore. I am android mobile application developer.

Today i am read your tutorials i really impress especially your Jewellery app

awesome.

i had import my android studio your Jewellery app but not configure. This app

create which platform ? Android Eclipse ? Kindly clarify my doubts.