Skip to content

Instantly share code, notes, and snippets.

View worstkiller's full-sized avatar
🎯
Focusing

vikas kumar worstkiller

🎯
Focusing
View GitHub Profile
@worstkiller
worstkiller / MainActivity.java
Last active September 3, 2017 11:22
Passwordless authentication androidbuffer.com
import android.app.Fragment;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
@worstkiller
worstkiller / activity_main.xml
Last active September 3, 2017 11:21
Passwordless authentication androidbuffer.com
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/frameLayoutContainer"
tools:context="com.android.buffer.smsauth.MainActivity">
</FrameLayout>
@worstkiller
worstkiller / SmsSendFragment.java
Created September 3, 2017 11:21
Passwordless authentication androidbuffer.com
import android.app.Fragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.AppCompatImageButton;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
import android.widget.Toast;
@worstkiller
worstkiller / fragment_sms_send.xml
Created September 3, 2017 15:03
Passwordless authentication androidbuffer.com
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
tools:context="com.android.buffer.smsauth.MainActivity">
<FrameLayout
@worstkiller
worstkiller / round_button.xml
Created September 3, 2017 15:30
Passwordless authentication androidbuffer.com
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval">
<solid android:color="@color/colorAccent" />
<size android:height="56dp" android:width="56dp"/>
</shape>
@worstkiller
worstkiller / round_button.xml
Created September 3, 2017 15:35
Passwordless authentication androidbuffer.com
<?xml version="1.0" encoding="utf-8"?>
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="@color/rippleColor">
<item>
<shape
android:shape="oval">
<solid android:color="@color/colorAccent" />
<size android:height="56dp" android:width="56dp"/>
</shape>
</item>
@worstkiller
worstkiller / SmsAuthFragment.java
Last active September 3, 2017 18:26
Passwordless authentication androidbuffer.com
import android.app.Fragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.AppCompatImageButton;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
@worstkiller
worstkiller / fragment_sms_auth.xml
Last active September 3, 2017 17:51
Passwordless authentication androidbuffer.com
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/colorPrimary"
android:orientation="vertical"
android:padding="16dp">
@worstkiller
worstkiller / edit_text_code_back.xml
Created September 3, 2017 18:04
Passwordless authentication androidbuffer.com
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:left="-2dp"
android:right="-2dp"
android:top="-2dp">
<shape>
<solid android:color="@color/editTextCode" />
@worstkiller
worstkiller / strings.xml
Created September 3, 2017 18:07
Passwordless authentication androidbuffer.com
<resources>
<string name="app_name">Sms Auth</string>
<string name="text_enter_your_number_here">Enter your number here</string>
<string name="text_india_91">INDIA (+91)</string>
<string name="hint_your_phone_number">Your Phone Number</string>
<string name="text_verification_code">Verification Code</string>
<string name="text_enter_code">Please enter the verification code sent to \n %1s</string>
<string name="text_phone_valid">Please enter a valid phone no.</string>
<string name="button_verify">Verify</string>
</resources>