Friday 2 December 2016

How To Declare a Button in android source code



YOUR XML FILE SHOULD BE LIKE THIS

named as activity_main.xml

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
 xmlns:android="http://schemas.android.com/apk/res/android"
 xmlns:tools="http://schemas.android.com/tools" 
android:id="@+id/activity_main" 
android:layout_width="match_parent" 
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin" 
android:paddingLeft="@dimen/activity_horizontal_margin" 
android:paddingRight="@dimen/activity_horizontal_margin" 
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="contctsofvips.fun.stack.com.buttonclick.MainActivity">

    <Button     
android:layout_width="wrap_content"
android:layout_height="wrap_content" 
android:background="@drawable/apps"
android:id="@+id/btn1"         />
</RelativeLayout>


Your Main Activity should be Like this

named as  ActivityMain

package contctsofvips.fun.stack.com.buttonclick;

package contctsofvips.fun.stack.com.buttondesign;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

import com.dd.processbutton.iml.ActionProcessButton;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        // get the button view
      
            public void onClick(View view) {
               // Do Your Code
                }
            }
        });
    }
}


Saturday 26 November 2016

What we Are?

We can clearly understand the theory of life after a long time when we have no chances to do some thing big for some one or for just ourselves.At that time just we want to pass the time just want to carry some things which are not according to our will but now we do this because of our responsibilities.When we feel we are free we have no responsibilities at that time we all should try our best to become a hero of our own life.You people say what i am talking about but actually we all are hero of our own life.WE CAN do every thing to become a such person who attain all his achievement according to his own will.So,Never lose hope.One day we will be the master ,we will be the hero of our own life but the necessary thing is to try to your full extent.

Sunday 9 October 2016

All of you try at least once in your life to fulfill your heart desire with full determination so that if you succeed you can tell every body i am the person who wants to do this,and now see what i get.But by your bad luck if you can't succeed in your mission then you are satisfied with yourself that you tried your best.And in future you can transform all you energies in your child and try to take him away from those habbits and reasons by which you failed to get your aim..
And in my opinion live give at least one chance to every person to improve him and his standard of life..Allah give him chance repeatedly but by our bad luck .We can't understand and disappoint from our life.It is gift not a punishment.Take care of your life because it have many links with many other people like your parents your children your wife your friends your relative etc...
   God Bless You All/......

Wednesday 7 September 2016


Journey From Childhood To Worries.............



In childhood without any worry we leave like an independent bird.We just think about our wishes and about our intrests.Nothinhg else.If we get them we are happy we consider ourself the most lucky person in the world.We think we are the prince of the world.We can do any thing that we want.If we not succeeded we cry and our parents solve our problem.But as day passes we became elder and elder the life turned into its cruel form.We realize the hardships, the worries of life .Our life suck our happiness our time it gives us no permission to enjoy our life.Our life became dependent of many things such as time ,money or some thing like that.We feel just like a person which have a very heavey burden on his shoulders.Every one wants by us to do some thing.To do something for ourself so that they don't want to support us anymore or they lose the power to support us......................

Monday 8 August 2016

Today love is nothing special ...In every street there are many lovers who don't know the exact concept of love..Love is a trade now a days.Love is not present in true siprit.Hope for the best and one day it will be better for all of us....

Sunday 17 July 2016

Hi friends how are you all...................
  If you want to be a better person in the society then you should do some better things on which basis you can say that i am better from that person......
Respect your parents because they are the only persons in your life which loved you from the core of heart and without thinking that either you are a doctor or an engineer..
Stay Blessed............................

Monday 20 June 2016

      Key For Success
To get a success in life you should keep in mind that at what point of life what thing is more importent.you should prefer perfect things for you and you will become a person to lead the world......