Skip to content

Commit

Permalink
adding RecyclerView in Layout TeamList
Browse files Browse the repository at this point in the history
  • Loading branch information
arieftb committed Oct 7, 2018
1 parent c352a26 commit 6727129
Show file tree
Hide file tree
Showing 22 changed files with 159 additions and 4 deletions.
11 changes: 10 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright www.arieftb.com (c) 2018.
*/

apply plugin: 'com.android.application'

apply plugin: 'kotlin-android'
Expand Down Expand Up @@ -25,8 +29,9 @@ android {

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'

// retrofit
implementation "com.squareup.retrofit2:retrofit:2.4.0"
Expand All @@ -35,6 +40,10 @@ dependencies {
// rxandroid
implementation "io.reactivex.rxjava2:rxandroid:2.1.0"

// picasso
implementation 'com.squareup.picasso:picasso:2.71828'

implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright www.arieftb.com (c) 2018.
*/

package com.arieftb.fuclub

import android.support.test.InstrumentationRegistry
Expand Down
20 changes: 17 additions & 3 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright www.arieftb.com (c) 2018.
-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.arieftb.fuclub">

<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.INTERNET" />

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme" />
</manifest>
android:theme="@style/AppTheme">
<activity android:name=".feature.teamlist.TeamListActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*
* Copyright www.arieftb.com (c) 2018.
*/

package com.arieftb.fuclub.feature.teamlist

import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import com.arieftb.fuclub.R

class TeamListActivity : AppCompatActivity() {

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_team_list)
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
* Copyright www.arieftb.com (c) 2018.
*/

package com.arieftb.fuclub.feature.teamlist

class TeamListItemAdapter {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
* Copyright www.arieftb.com (c) 2018.
*/

package com.arieftb.fuclub.feature.teamlist

class TeamListPresenter {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
* Copyright www.arieftb.com (c) 2018.
*/

package com.arieftb.fuclub.feature.teamlist

interface TeamListView {
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright www.arieftb.com (c) 2018.
*/

package com.arieftb.fuclub.model.teamlist

import com.google.gson.annotations.SerializedName
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright www.arieftb.com (c) 2018.
*/

package com.arieftb.fuclub.model.teamlist

import com.google.gson.annotations.SerializedName
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/java/com/arieftb/fuclub/network/NetworkInit.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright www.arieftb.com (c) 2018.
*/

package com.arieftb.fuclub.network

import com.arieftb.fuclub.BuildConfig
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright www.arieftb.com (c) 2018.
*/

package com.arieftb.fuclub.network

import com.arieftb.fuclub.model.teamlist.TeamListResponse
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/java/com/arieftb/fuclub/utils/Constant.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright www.arieftb.com (c) 2018.
*/

package com.arieftb.fuclub.utils

class Constant {
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/res/drawable-v24/ic_launcher_foreground.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<!--
~ Copyright www.arieftb.com (c) 2018.
-->

<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
android:width="108dp"
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/res/drawable/ic_launcher_background.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright www.arieftb.com (c) 2018.
-->

<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
Expand Down
25 changes: 25 additions & 0 deletions app/src/main/res/layout/activity_team_list.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright www.arieftb.com (c) 2018.
-->

<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"
tools:context=".feature.teamlist.TeamListActivity">

<android.support.v7.widget.RecyclerView
android:id="@+id/rv_teamlist_item"
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintBottom_toBottomOf="parent">

</android.support.v7.widget.RecyclerView>


</android.support.constraint.ConstraintLayout>
10 changes: 10 additions & 0 deletions app/src/main/res/layout/list_item_team.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright www.arieftb.com (c) 2018.
-->

<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"
android:layout_height="match_parent">

</android.support.constraint.ConstraintLayout>
4 changes: 4 additions & 0 deletions app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright www.arieftb.com (c) 2018.
-->

<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_foreground" />
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright www.arieftb.com (c) 2018.
-->

<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_foreground" />
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright www.arieftb.com (c) 2018.
-->

<resources>
<color name="colorPrimary">#008577</color>
<color name="colorPrimaryDark">#00574B</color>
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<!--
~ Copyright www.arieftb.com (c) 2018.
-->

<resources>
<string name="app_name">FuClub</string>
</resources>
4 changes: 4 additions & 0 deletions app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<!--
~ Copyright www.arieftb.com (c) 2018.
-->

<resources>

<!-- Base application theme. -->
Expand Down
4 changes: 4 additions & 0 deletions app/src/test/java/com/arieftb/fuclub/ExampleUnitTest.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright www.arieftb.com (c) 2018.
*/

package com.arieftb.fuclub

import org.junit.Test
Expand Down

0 comments on commit 6727129

Please sign in to comment.