This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.example.firebaseemailpasswordexample"> | |
<uses-permission android:name="android.permission.INTERNET" /> <!-- this line adds the required permission request --> | |
<application | |
android:allowBackup="true" | |
android:icon="@mipmap/ic_launcher" | |
android:label="@string/app_name" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout 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:gravity="center_vertical" | |
android:orientation="vertical" | |
android:padding="16dp" | |
tools:context=".RegistrationActivity"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.firebaseemailpasswordexample; | |
import android.content.Intent; | |
import android.support.annotation.NonNull; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.text.TextUtils; | |
import android.view.View; | |
import android.widget.Button; | |
import android.widget.EditText; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout 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:gravity="center_vertical" | |
android:orientation="vertical" | |
android:padding="16dp" | |
tools:context=".LoginActivity"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.firebaseemailpasswordexample; | |
import android.content.Intent; | |
import android.support.annotation.NonNull; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.text.TextUtils; | |
import android.view.View; | |
import android.widget.Button; | |
import android.widget.EditText; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
r=["Rivers",150710,473971],["Zamfara",438682,125423],["Kebbi",581552,154282],["Sokoto",490333,361604],["Bayelsa",118821,197933],["Akwa Ibom",175429,395832],["Delta",221292,590068],["Borno",836496,71788],["Plateau",468555,548665],["Katsina",1232133,308056],["Kano",1464768,391593],["Cross River",117302,295737],["Taraba",324906,374743],["Benue",347668,356817],["Imo",140463,334923],["Edo",267842,275691],["Bauchi",798428,209313],["Ogun",281762,194655],["Lagos",580825,448015],["Oyo",365229,366690],["Adamawa",378078,410266],["Anambra",33298,524738],["Kaduna",993445,649612],["Jigawa",794738,289895],["Niger",612371,218052],["Ebonyi",90726,258573],["Enugu",54423,355553],["Ondo",241769,275901],["Abia",85058,219698],["Yobe",497914,50763],["Gombe",402961,138484],["Kogi",285894,218207],["Nassarawa",289903,283847],["Kwara",308984,138184],["FCT",152224,259997],["Ekiti",219231,154032],["Osun",347634,337377] | |
for x in range(0,len(r)): | |
print(r[x][0],"State") | |
print("APC\t",r[x][1]) | |
print("PDP\t",r[x][2]) | |
print("\n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:padding="16dp" | |
xmlns:app="http://schemas.android.com/apk/res-auto"> | |
<TextView | |
android:id="@+id/name" | |
android:layout_width="wrap_content" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class DealAdapter extends RecyclerView.Adapter<DealAdapter.DealViewHolder> { | |
private List<TravelDeal> mDealList; | |
private RecyclerViewClickListener listener; | |
public DealAdapter(List<TravelDeal> mDealList, RecyclerViewClickListener listener) { | |
this.mDealList = mDealList; | |
this.listener = listener; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TravelDeal implements Serializable { | |
private String id; | |
private String title; | |
private String description; | |
private String price; | |
private String imageUrl; | |
private String imageName; | |
public TravelDeal() { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface RecyclerViewClickListener { | |
void onRowClicked(int position); | |
void onViewClicked(View v, int position); | |
} |
OlderNewer