This file contains hidden or 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 'PACKAGE' | |
class ClassAdapter(private val context: Context, | |
private val arrayList: ArrayList<Model>) : | |
RecyclerView.Adapter<ClassAdapter.ViewHolder>() { | |
override fun onCreateViewHolder(p0: ViewGroup, p1: Int): ClassAdapter.ViewHolder { | |
return ViewHolder(LayoutInflater.from(context) | |
.inflate(R.layout.layout, p0, false)) | |
} |
This file contains hidden or 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"?> | |
<RelativeLayout 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/dimWhite" | |
tools:context="com.Example.khanstan.FacebookReactions.MainActivity"> | |
<LinearLayout |
This file contains hidden or 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.khanstan.FacebookReactions; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.view.View; | |
import android.view.animation.Animation; | |
import android.view.animation.AnimationUtils; | |
import android.widget.Button; | |
import android.widget.LinearLayout; | |
import android.widget.TextView; |