Skip to content

Instantly share code, notes, and snippets.

View ankit-lakhanpal's full-sized avatar

ankit-lakhanpal

View GitHub Profile
@ankit-lakhanpal
ankit-lakhanpal / MainActivity.java
Created August 12, 2015 17:46
signup screen rev1
package com.lakhanpal.ankit.alison;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.RelativeLayout;
import android.widget.Button;
import android.graphics.Color;
import android.widget.EditText;
package com.lakhanpal.ankit.alison;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.RelativeLayout;
import android.widget.Button;
import android.graphics.Color;
import android.widget.EditText;
@ankit-lakhanpal
ankit-lakhanpal / MainActivity.java
Created August 17, 2015 10:29
working startpoint
package com.lakhanpal.ankit.myapplication;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
public class MainActivity extends AppCompatActivity {
@Override
package com.lakhanpal.ankit.myapplication;
import android.content.res.Resources;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View; //any tipe of widget
import android.widget.Button; //pckage for button
import android.widget.TextView; //package for text widget
@ankit-lakhanpal
ankit-lakhanpal / MainActivity.java
Created August 17, 2015 13:13
event handling(long click)
package com.lakhanpal.ankit.myapplication;
import android.content.res.Resources;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View; //any tipe of widget
import android.widget.Button; //pckage for button
import android.widget.TextView; //package for text widget
package com.lakhanpal.ankit.gestures;
import android.support.v7.app.AppCompatActivity;
import android.support.v4.view.GestureDetectorCompat;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.TextView;
import android.view.MotionEvent;
import android.view.GestureDetector;
<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:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/build
/build
package com.lakhanpal.ankit.fragments;
import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;