android

parents
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.externalNativeBuild
.cxx
<component name="ProjectCodeStyleConfiguration">
<code_scheme name="Project" version="173">
<codeStyleSettings language="XML">
<indentOptions>
<option name="CONTINUATION_INDENT_SIZE" value="4" />
</indentOptions>
<arrangement>
<rules>
<section>
<rule>
<match>
<AND>
<NAME>xmlns:android</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>^$</XML_NAMESPACE>
</AND>
</match>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>xmlns:.*</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>^$</XML_NAMESPACE>
</AND>
</match>
<order>BY_NAME</order>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>.*:id</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>
</AND>
</match>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>.*:name</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>
</AND>
</match>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>name</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>^$</XML_NAMESPACE>
</AND>
</match>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>style</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>^$</XML_NAMESPACE>
</AND>
</match>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>.*</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>^$</XML_NAMESPACE>
</AND>
</match>
<order>BY_NAME</order>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>.*</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>
</AND>
</match>
<order>ANDROID_ATTRIBUTE_ORDER</order>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>.*</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>.*</XML_NAMESPACE>
</AND>
</match>
<order>BY_NAME</order>
</rule>
</section>
</rules>
</arrangement>
</codeStyleSettings>
</code_scheme>
</component>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
<option name="distributionType" value="DEFAULT_WRAPPED" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="modules">
<set>
<option value="$PROJECT_DIR$" />
<option value="$PROJECT_DIR$/app" />
</set>
</option>
<option name="resolveModulePerSourceSet" value="false" />
<option name="testRunner" value="PLATFORM" />
</GradleProjectSettings>
</option>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">
<option name="id" value="Android" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RunConfigurationProducerService">
<option name="ignoredProducers">
<set>
<option value="org.jetbrains.plugins.gradle.execution.test.runner.AllInPackageGradleConfigurationProducer" />
<option value="org.jetbrains.plugins.gradle.execution.test.runner.TestClassGradleConfigurationProducer" />
<option value="org.jetbrains.plugins.gradle.execution.test.runner.TestMethodGradleConfigurationProducer" />
</set>
</option>
</component>
</project>
\ No newline at end of file
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-android'
android {
compileSdkVersion 28
buildToolsVersion "29.0.3"
defaultConfig {
applicationId "com.example.login"
minSdkVersion 26
targetSdkVersion 28
versionCode 1
versionName "1.0"
useLibrary 'org.apache.http.legacy'
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:support-v4:28.0.0'
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'
implementation 'com.android.support:design:28.0.0'
implementation 'com.mcxiaoke.volley:library-aar:1.0.0'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'com.amitshekhar.android:jackson-android-networking:1.0.1'
implementation 'com.android.support:design:28.0.0'
implementation 'com.squareup.okhttp3:okhttp:3.9.1'
implementation 'org.apache.httpcomponents:httpclient-android:4.3.5.1'
implementation 'com.google.android.gms:play-services-auth:9.0.0'
implementation 'com.amitshekhar.android:android-networking:1.0.0'
implementation 'com.squareup.retrofit2:retrofit:2.3.0'
implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
implementation 'com.squareup.retrofit2:converter-scalars:2.3.0'
implementation 'de.hdodenhof:circleimageview:2.1.0'
implementation 'com.squareup.picasso:picasso:2.71828'
}
repositories {
mavenCentral()
}
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
package com.example.login;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
assertEquals("com.example.login", appContext.getPackageName());
}
}
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.login">
<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">
<activity android:name=".Home.BphActivity"
android:theme="@style/AppTheme.NoActionBar"/>
<activity android:name=".Home.MahasiswaActivity"
android:theme="@style/AppTheme.NoActionBar"/>
<activity android:name=".Home.PengumumanFragment.DetailPengumuman"
android:theme="@style/AppTheme.NoActionBar"/>
<activity
android:name=".Home.HomeFragment.DetailActivity"
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name=".Home.HomeActivity"
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name=".Home.ActivityDashboard"
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name=".MainActivity"
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name=".LoginActivity"
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name=".CourseActivity"
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name=".SplashActivity"
android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
\ No newline at end of file
package com.example.login.Adapter
import android.content.Context
import android.support.v7.widget.CardView
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import com.example.login.Model.Mahasiswa
import com.example.login.Model.BirthModel
import com.example.login.R
import com.squareup.picasso.Picasso
class AdapterBirth(private val context: Context?, private val BirthLIst: MutableList<BirthModel>): RecyclerView.Adapter<AdapterBirth.MyViewHolder>(){
class MyViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {
var lbIDMahasiswaList: TextView?= null
var lbNamaList: TextView?= null
var lbImageList: ImageView?= null
var cardView: CardView?= null
init {
cardView= itemView.findViewById(R.id.cardview)
lbImageList = itemView.findViewById(R.id.lbImageList)
lbIDMahasiswaList = itemView.findViewById(R.id.lbIDMahasiswa)
lbNamaList = itemView.findViewById(R.id.lbNamaList)
}
}
override fun onCreateViewHolder(p0: ViewGroup, p1: Int): MyViewHolder {
var itemView= LayoutInflater.from(context).inflate(R.layout.birth_item, p0, false)
return MyViewHolder(itemView)
}
override fun getItemCount(): Int {
return BirthLIst.size
}
override fun onBindViewHolder(p0: MyViewHolder, p1: Int) {
p0.lbNamaList!!.text = BirthLIst[p1].nama
Picasso.get().load("http://192.168.43.148/Himatif/foto_mahasiswa/"+BirthLIst[p1].foto_mahasiswa).into(p0.lbImageList)
}
}
\ No newline at end of file
package com.example.login.Adapter
import android.content.Context
import android.support.v7.widget.CardView
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import com.example.login.Model.BphModel
import com.example.login.R
import com.squareup.picasso.Picasso
class AdapterBph(private val context: Context?, private val BphLIst: MutableList<BphModel>): RecyclerView.Adapter<AdapterBph.MyViewHolder>(){
class MyViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {
var lbIDBph: TextView?= null
var lbIDPeriode: TextView?= null
var lbIDMahasiswaList: TextView?= null
var lbJabatanList: TextView?= null
var lbNamaList: TextView?= null
var lbUsernameList: TextView?= null
var lbPasswordList: TextView?= null
var lbNimList: TextView?= null
var lbKelasList: TextView?= null
var lbAngkatanList: TextView?= null
var lbAlamatList: TextView?= null
var lbEmailList: TextView?= null
var lbStatmaList: TextView?= null
var lbTelatList: TextView?= null
var lbTalaList: TextView?= null
var lbRoleList: TextView?= null
var lbImageList: ImageView?= null
var lbPeawList: TextView?= null
var lbPeakList: TextView?= null
var lbStatpeList: TextView?= null
var cardView: CardView?= null
init {
cardView= itemView.findViewById(R.id.mana)
lbImageList = itemView.findViewById(R.id.lbImageList)
lbIDBph = itemView.findViewById(R.id.lbIDBph)
lbIDPeriode = itemView.findViewById(R.id.lbIDPeriode)
lbIDMahasiswaList = itemView.findViewById(R.id.lbIDMahasiswa)
lbJabatanList = itemView.findViewById(R.id.lbJabatanList)
lbNamaList = itemView.findViewById(R.id.lbNamaList)
lbUsernameList = itemView.findViewById(R.id.lbUsernameList)
lbPasswordList = itemView.findViewById(R.id.lbPasswordList)
lbNimList = itemView.findViewById(R.id.lbNimList)
lbKelasList = itemView.findViewById(R.id.lbKelasList)
lbAngkatanList = itemView.findViewById(R.id.lbAngkatanList)
lbAlamatList = itemView.findViewById(R.id.lbAlamatList)
lbEmailList = itemView.findViewById(R.id.lbEmailList)
lbStatmaList = itemView.findViewById(R.id.lbStatmaList)
lbTelatList = itemView.findViewById(R.id.lbTelaList)
lbTalaList = itemView.findViewById(R.id.lbTalaList)
lbRoleList = itemView.findViewById(R.id.lbRoleList)
lbPeawList = itemView.findViewById(R.id.lbPeawList)
lbPeakList = itemView.findViewById(R.id.lbPeakList)
lbStatpeList = itemView.findViewById(R.id.lbStatpeList)
}
}
override fun onCreateViewHolder(p0: ViewGroup, p1: Int): MyViewHolder {
var itemView= LayoutInflater.from(context).inflate(R.layout.bph_list, p0, false)
return MyViewHolder(itemView)
}
override fun getItemCount(): Int {
return BphLIst.size
}
override fun onBindViewHolder(p0: MyViewHolder, p1: Int) {
p0.lbIDBph!!.text = BphLIst[p1].bph_id
p0.lbIDPeriode!!.text = BphLIst[p1].periode_id
p0.lbIDMahasiswaList!!.text = BphLIst[p1].mahasiswa_id
p0.lbJabatanList!!.text = BphLIst[p1].jabatan
p0.lbNamaList!!.text = BphLIst[p1].nama
p0.lbUsernameList!!.text = BphLIst[p1].username
p0.lbPasswordList!!.text = BphLIst[p1].password
p0.lbNimList!!.text = BphLIst[p1].nim
p0.lbKelasList!!.text = BphLIst[p1].kelas
p0.lbAngkatanList!!.text = BphLIst[p1].angkatan
p0.lbAlamatList!!.text = BphLIst[p1].alamat
p0.lbEmailList!!.text = BphLIst[p1].email
p0.lbStatmaList!!.text = BphLIst[p1].status_mahasiswa
p0.lbTelatList!!.text = BphLIst[p1].tempat_lahir
p0.lbTalaList!!.text = BphLIst[p1].tanggal_lahir
p0.lbRoleList!!.text = BphLIst[p1].role
p0.lbPeawList!!.text = BphLIst[p1].periode_awal
p0.lbPeakList!!.text = BphLIst[p1].periode_akhir
p0.lbStatpeList!!.text = BphLIst[p1].status
Picasso.get().load("http://192.168.43.148/Himatif/foto_mahasiswa/"+BphLIst[p1].foto_mahasiswa).into(p0.lbImageList)
}
}
\ No newline at end of file
package com.example.login.Adapter
import android.content.Context
import android.content.Intent
import android.support.v7.widget.CardView
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import com.example.login.Home.HomeFragment.DetailActivity
import com.example.login.Model.Kegiatan
import com.example.login.R
import com.squareup.picasso.Picasso
class AdapterKegiatan(private val context: Context?, private val KegiatanLIst:MutableList<Kegiatan>):
RecyclerView.Adapter<AdapterKegiatan.MyViewHolder>(){
class MyViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {
var lbIdlist:TextView?= null
var lbBPHlist:TextView?= null
var lbPeriodeList:TextView?= null
var lbNamaList:TextView?= null
var lbWaktuList:TextView?= null
var lbTempatList:TextView?= null
var lbDeskripsiList:TextView?= null
var lbImageList:ImageView?= null
var lbBerakhirList:TextView?= null
var lbStatusList:TextView?= null
var lbPenulisList:TextView?= null
var cardView:CardView?= null
init {
cardView= itemView.findViewById(R.id.detailKegiatan)
lbIdlist = itemView.findViewById(R.id.lbIdList)
lbBPHlist = itemView.findViewById(R.id.lbBPHList)
lbPeriodeList = itemView.findViewById(R.id.lbPeriodeList)
lbNamaList = itemView.findViewById(R.id.lbNamaList)
lbWaktuList = itemView.findViewById(R.id.lbWaktuList)
lbTempatList = itemView.findViewById(R.id.lbTempatList)
lbDeskripsiList = itemView.findViewById(R.id.lbDeskripsiList)
lbImageList = itemView.findViewById(R.id.lbImageList)
lbBerakhirList = itemView.findViewById(R.id.lbBerakhirList)
lbStatusList = itemView.findViewById(R.id.lbStatusList)
lbPenulisList = itemView.findViewById(R.id.lbPenulisList)
}
}
override fun onCreateViewHolder(p0: ViewGroup, p1: Int): MyViewHolder {
var itemView= LayoutInflater.from(context).inflate(R.layout.kegiatan_list, p0, false)
return MyViewHolder(itemView)
}
override fun getItemCount(): Int {
return KegiatanLIst.size
}
override fun onBindViewHolder(p0: MyViewHolder, p1: Int) {
p0.lbIdlist!!.text = KegiatanLIst[p1].kegiatan_id
p0.lbBPHlist!!.text = KegiatanLIst[p1].bph_id
p0.lbPeriodeList!!.text = KegiatanLIst[p1].periode_id
p0.lbNamaList!!.text = KegiatanLIst[p1].nama_kegiatan
p0.lbWaktuList!!.text = KegiatanLIst[p1].waktu_kegiatan
p0.lbTempatList!!.text = KegiatanLIst[p1].tempat_kegiatan
p0.lbDeskripsiList!!.text = KegiatanLIst[p1].deskripsi_kegiatan
p0.lbBerakhirList!!.text = KegiatanLIst[p1].tanggal_berakhir
p0.lbStatusList!!.text = KegiatanLIst[p1].status_kegiatan
p0.lbPenulisList!!.text = KegiatanLIst[p1].penulis
Picasso.get().load("http://192.168.43.148/Himatif/foto_kegiatan/"+KegiatanLIst[p1].foto_kegiatan).into(p0.lbImageList)
p0.cardView!!.setOnClickListener {
var intent = Intent(context,DetailActivity::class.java)
intent.putExtra("foto_kegiatan", KegiatanLIst[p1].foto_kegiatan)
intent.putExtra("kegiatan_id", KegiatanLIst[p1].kegiatan_id)
intent.putExtra("bph_id", KegiatanLIst[p1].bph_id)
intent.putExtra("periode_id", KegiatanLIst[p1].periode_id)
intent.putExtra("nama_kegiatan", KegiatanLIst[p1].nama_kegiatan)
intent.putExtra("waktu_kegiatan", KegiatanLIst[p1].waktu_kegiatan)
intent.putExtra("tempat_kegiatan", KegiatanLIst[p1].tempat_kegiatan)
intent.putExtra("deskripsi_kegiatan", KegiatanLIst[p1].deskripsi_kegiatan)
intent.putExtra("tanggal_berakhir", KegiatanLIst[p1].tanggal_berakhir)
intent.putExtra("status_kegiatan", KegiatanLIst[p1].status_kegiatan)
intent.putExtra("penulis", KegiatanLIst[p1].penulis)
context!!.startActivity(intent)
}
}
}
\ No newline at end of file
package com.example.login.Adapter
import android.content.Context
import android.support.v7.widget.CardView
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import com.example.login.Model.Mahasiswa
import com.example.login.Model.MahasiswaModel
import com.example.login.R
import com.squareup.picasso.Picasso
class AdapterMahasiswa(private val context: Context?, private val MahasiswaLIst: MutableList<MahasiswaModel>): RecyclerView.Adapter<AdapterMahasiswa.MyViewHolder>(){
class MyViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {
var lbIDMahasiswaList: TextView?= null
var lbNamaList: TextView?= null
var lbUsernameList: TextView?= null
var lbPasswordList: TextView?= null
var lbNimList: TextView?= null
var lbKelasList: TextView?= null
var lbAngkatanList: TextView?= null
var lbAlamatList: TextView?= null
var lbEmailList: TextView?= null
var lbStatmaList: TextView?= null
var lbTelatList: TextView?= null
var lbTalaList: TextView?= null
var lbRoleList: TextView?= null
var lbImageList: ImageView?= null
var cardView: CardView?= null
init {
cardView= itemView.findViewById(R.id.masa)
lbImageList = itemView.findViewById(R.id.lbImageList)
lbIDMahasiswaList = itemView.findViewById(R.id.lbIDMahasiswa)
lbNamaList = itemView.findViewById(R.id.lbNamaList)
lbUsernameList = itemView.findViewById(R.id.lbUsernameList)
lbPasswordList = itemView.findViewById(R.id.lbPasswordList)
lbNimList = itemView.findViewById(R.id.lbNimList)
lbKelasList = itemView.findViewById(R.id.lbKelasList)
lbAngkatanList = itemView.findViewById(R.id.lbAngkatanList)
lbAlamatList = itemView.findViewById(R.id.lbAlamatList)
lbEmailList = itemView.findViewById(R.id.lbEmailList)
lbStatmaList = itemView.findViewById(R.id.lbStatmaList)
lbTelatList = itemView.findViewById(R.id.lbTelaList)
lbTalaList = itemView.findViewById(R.id.lbTalaList)
lbRoleList = itemView.findViewById(R.id.lbRoleList)
}
}
override fun onCreateViewHolder(p0: ViewGroup, p1: Int): MyViewHolder {
var itemView= LayoutInflater.from(context).inflate(R.layout.mahasiswa_list, p0, false)
return MyViewHolder(itemView)
}
override fun getItemCount(): Int {
return MahasiswaLIst.size
}
override fun onBindViewHolder(p0: MyViewHolder, p1: Int) {
p0.lbIDMahasiswaList!!.text = MahasiswaLIst[p1].mahasiswa_id
p0.lbNamaList!!.text = MahasiswaLIst[p1].nama
p0.lbUsernameList!!.text = MahasiswaLIst[p1].username
p0.lbPasswordList!!.text = MahasiswaLIst[p1].password
p0.lbNimList!!.text = MahasiswaLIst[p1].nim
p0.lbKelasList!!.text = MahasiswaLIst[p1].kelas
p0.lbAngkatanList!!.text = MahasiswaLIst[p1].angkatan
p0.lbAlamatList!!.text = MahasiswaLIst[p1].alamat
p0.lbEmailList!!.text = MahasiswaLIst[p1].email
p0.lbStatmaList!!.text = MahasiswaLIst[p1].status_mahasiswa
p0.lbTelatList!!.text = MahasiswaLIst[p1].tempat_lahir
p0.lbTalaList!!.text = MahasiswaLIst[p1].tanggal_lahir
p0.lbRoleList!!.text = MahasiswaLIst[p1].role
Picasso.get().load("http://192.168.43.148/Himatif/foto_mahasiswa/"+MahasiswaLIst[p1].foto_mahasiswa).into(p0.lbImageList)
}
}
\ No newline at end of file
package com.example.login.Adapter
import android.content.Context
import android.content.Intent
import android.support.v7.widget.CardView
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import com.example.login.Home.PengumumanFragment.DetailPengumuman
import com.example.login.Model.Pengumuman
import com.example.login.R
import com.squareup.picasso.Picasso
class AdapterPengumuman(private val context: Context?, private val PengumumanLIst:MutableList<Pengumuman>): RecyclerView.Adapter<AdapterPengumuman.MyViewHolder>(){
class MyViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {
var lbIdlist:TextView?= null
var lbBPHlist:TextView?= null
var lbPeriodeList:TextView?= null
var lbDetailList:TextView?= null
var lbWaktuakhirList:TextView?= null
var lbJudulList:TextView?= null
var lbImageList:ImageView?= null
var cardView:CardView?= null
init {
cardView = itemView.findViewById(R.id.pengumumandetail)
lbIdlist = itemView.findViewById(R.id.lbIdList)
lbBPHlist = itemView.findViewById(R.id.lbBPHList)
lbPeriodeList = itemView.findViewById(R.id.lbPeriodeList)
lbDetailList = itemView.findViewById(R.id.lbDetailList)
lbWaktuakhirList = itemView.findViewById(R.id.lbWaktuakhirList)
lbJudulList = itemView.findViewById(R.id.lbJudulList)
lbImageList = itemView.findViewById(R.id.lbImageList)
// lbImageList = itemView.findViewById(R.id.lbImageList)
}
}
override fun onCreateViewHolder(p0: ViewGroup, p1: Int): MyViewHolder {
var itemView= LayoutInflater.from(context).inflate(R.layout.pengumuman_list, p0, false)
return MyViewHolder(itemView)
}
override fun getItemCount(): Int {
return PengumumanLIst.size
}
override fun onBindViewHolder(p0: MyViewHolder, p1: Int) {
p0.lbIdlist!!.text = PengumumanLIst[p1].pengumuman_id
p0.lbBPHlist!!.text = PengumumanLIst[p1].bph_id
p0.lbPeriodeList!!.text = PengumumanLIst[p1].periode_id
p0.lbDetailList!!.text = PengumumanLIst[p1].detail_pengumuman
p0.lbWaktuakhirList!!.text = PengumumanLIst[p1].tanggal_akhir_pengumuman
p0.lbJudulList!!.text = PengumumanLIst[p1].judul_pengumuman
Picasso.get().load("http://192.168.43.148/Himatif/foto_pengumuman/"+PengumumanLIst[p1].foto_pengumuman).into(p0.lbImageList)
p0.cardView!!.setOnClickListener {
var intent = Intent(context,DetailPengumuman::class.java)
intent.putExtra("foto_pengumuman", PengumumanLIst[p1].foto_pengumuman)
intent.putExtra("pengumuman_id", PengumumanLIst[p1].pengumuman_id)
intent.putExtra("bph_id", PengumumanLIst[p1].bph_id)
intent.putExtra("periode_id", PengumumanLIst[p1].periode_id)
intent.putExtra("detail_pengumuman", PengumumanLIst[p1].detail_pengumuman)
intent.putExtra("tanggal_akhir_pengumuman", PengumumanLIst[p1].tanggal_akhir_pengumuman)
intent.putExtra("judul_pengumuman", PengumumanLIst[p1].judul_pengumuman)
context!!.startActivity(intent)
}
}
}
\ No newline at end of file
package com.example.login.Adapter
import android.content.Context
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import com.example.login.Model.Uang
import com.example.login.R
class AdapterUang(private val context: Context?, private val UangLIst:MutableList<Uang>): RecyclerView.Adapter<AdapterUang.MyViewHolder>(){
class MyViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {
var lbIdlist:TextView?= null
var lbBPHlist:TextView?= null
var lbPeriodeList:TextView?= null
var lbJulbarList:TextView?= null
var lbBuatList:TextView?= null
var lbAkhirList:TextView?= null
// var lbImageList:ImageView?= null
var lbDeskripsiList:TextView?= null
var lbStatusList:TextView?=null
var lbIDMahasiswaList:TextView?=null
var lbNamaPembayar:TextView?= null
init {
lbIdlist = itemView.findViewById(R.id.lbIdList)
lbBPHlist = itemView.findViewById(R.id.lbBPHList)
lbPeriodeList = itemView.findViewById(R.id.lbPeriodeList)
lbJulbarList = itemView.findViewById(R.id.lbJulbarList)
lbBuatList = itemView.findViewById(R.id.lbBuatList)
lbAkhirList = itemView.findViewById(R.id.lbAkhirList)
lbDeskripsiList = itemView.findViewById(R.id.lbDeskripsiList)
lbStatusList = itemView.findViewById(R.id.lbStatusList)
lbIDMahasiswaList = itemView.findViewById(R.id.lbIDMahasiswaList)
lbNamaPembayar = itemView.findViewById(R.id.lbNamaPembayarList)
// lbImageList = itemView.findViewById(R.id.lbImageList)
}
}
override fun onCreateViewHolder(p0: ViewGroup, p1: Int): MyViewHolder {
var itemView= LayoutInflater.from(context).inflate(R.layout.uang_list, p0, false)
return MyViewHolder(itemView)
}
override fun getItemCount(): Int {
return UangLIst.size
}
override fun onBindViewHolder(p0: MyViewHolder, p1: Int) {
p0.lbIdlist!!.text = UangLIst[p1].uang_kas_id
p0.lbBPHlist!!.text = UangLIst[p1].bph_id
p0.lbPeriodeList!!.text = UangLIst[p1].periode_id
p0.lbJulbarList!!.text = UangLIst[p1].jumlah_bayar
p0.lbBuatList!!.text = UangLIst[p1].tanggal_dibuat
p0.lbAkhirList!!.text = UangLIst[p1].tanggal_berakhir
p0.lbDeskripsiList!!.text = UangLIst[p1].deskripsi_pembayaran
p0.lbStatusList!!.text = UangLIst[p1].status_pembayaran
p0.lbIDMahasiswaList!!.text = UangLIst[p1].mahasiswa_id
p0.lbNamaPembayar!!.text = UangLIst[p1].Nama_pemabayar
}
}
\ No newline at end of file
package com.example.login.Api
import com.example.login.Model.*
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Query
interface API {
@GET("kegiatan/read.php")
fun getkegiatan(): Call<MutableList<Kegiatan>>
@GET("pengumuman/read.php")
fun getpengumuman(): Call<MutableList<Pengumuman>>
@GET("UangKas/read.php")
fun getuang(): Call<MutableList<Uang>>
@GET("Mahasiswa/read.php")
fun getmahasiswas(): Call<MutableList<MahasiswaModel>>
@GET("bph.php")
fun getbph(): Call<MutableList<BphModel>>
@GET("birth.php")
fun getAllBirth(@Query("birth_date") date:String):Call<MutableList<BirthModel>>
}
package com.example.login.Api
class ApiEndPoint {
companion object {
val SERVER = "http://192.168.43.148/TA/"
val login = SERVER + "login.php"
//val CREATE = SERVER+"create.php"
val READ = SERVER +"read.php"
val sendkuisioner = SERVER + "Kuisioner/insert.php"
//val DELETE = SERVER+"delete.php"
//val UPDATE = SERVER+"update.php"
}
}
\ No newline at end of file
package com.example.login.Api
object AppVar {
//URL to our login.php file, url bisa diganti sesuai dengan alamat server kita
const val LOGIN_URL = "http://192.168.43.148/TA/login.php"
//Keys for email and password as defined in our $_POST['key'] in login.php
const val KEY_EMAIL = "email"
const val KEY_PASSWORD = "password"
//If server response is equal to this that means login is successful
const val LOGIN_SUCCESS = "success"
}
\ No newline at end of file
package com.example.login.Api
object Common {
private val BASE_URL = ApiEndPoint.SERVER
val retrofitService: API
get() = RestClient.getClient(BASE_URL)!!.create(API::class.java)
}
\ No newline at end of file
package com.example.login.Api
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
object RestClient {
private var retrofit: Retrofit? = null
fun getClient(baseURL: String): Retrofit? {
if (retrofit == null) {
retrofit = Retrofit.Builder()
.baseUrl(baseURL)
.addConverterFactory(GsonConverterFactory.create())
.build()
}
return retrofit
}
}
\ No newline at end of file
package com.example.login
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
class CourseActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_course)
}
}
\ No newline at end of file
package com.example.login.Home
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import com.example.login.R
class ActivityDashboard : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_dashboard)
}
}
package com.example.login.Home
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import android.widget.ImageView
import android.widget.TextView
import com.example.login.Adapter.AdapterBph
import com.example.login.Adapter.AdapterMahasiswa
import com.example.login.Api.API
import com.example.login.Api.Common
import com.example.login.Model.Mahasiswa
import com.example.login.Model.BphModel
import com.example.login.R
import retrofit2.Call
import retrofit2.Callback
import retrofit2.Response
class BphActivity : AppCompatActivity() {
lateinit var bph:RecyclerView
lateinit var mService: API
lateinit var layoutManager: LinearLayoutManager
lateinit var adapterBph: AdapterBph
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_bph)
bph = findViewById(R.id.bph)
bph.setHasFixedSize(true)
layoutManager = LinearLayoutManager(applicationContext)
bph.layoutManager = layoutManager
mService = Common.retrofitService
getallbph()
}
private fun getallbph() {
mService.getbph().enqueue(object : Callback<MutableList<BphModel>>{
override fun onFailure(call: Call<MutableList<BphModel>>, t: Throwable) {
print("Error : "+t.toString())
}
override fun onResponse(call: Call<MutableList<BphModel>>, response: Response<MutableList<BphModel>>) {
try {
if (response!=null){
print( "Data : "+response.body())
adapterBph = AdapterBph(applicationContext, response.body() as MutableList<BphModel>)
adapterBph.notifyDataSetChanged()
bph.adapter = adapterBph
}
}
catch (t : ExceptionInInitializerError){
print( "Data : "+t.message)
}
}
})
}
}
package com.example.login.Home
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.support.design.widget.BottomNavigationView
import android.support.v4.app.FragmentTransaction
import com.example.login.Home.HomeFragment.HomeFragment
import com.example.login.Home.KegiatanFragment.KegiatanFragment
import com.example.login.Home.PengumumanFragment.PengumumanFragment
import com.example.login.Home.UangFragment.UangFragment
import com.example.login.Home.UserProfile.ProfileFragment
import com.example.login.R
class HomeActivity : AppCompatActivity() {
lateinit var home : KegiatanFragment
lateinit var homes : HomeFragment
lateinit var pengumuman : PengumumanFragment
lateinit var uang : UangFragment
lateinit var profile: ProfileFragment
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_home)
val bottomNavigationView : BottomNavigationView = findViewById(R.id.navigation)
bottomNavigationView.setOnNavigationItemSelectedListener { item ->
when(item.itemId){
R.id.navigation_home -> {
home = KegiatanFragment()
supportFragmentManager
.beginTransaction()
.replace(R.id.content, home)
.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN)
.commit()
}
R.id.navigation_pengumuman -> {
pengumuman = PengumumanFragment()
supportFragmentManager
.beginTransaction()
.replace(R.id.content, pengumuman)
.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN)
.commit()
}
R.id.navigation_uang -> {
uang = UangFragment()
supportFragmentManager
.beginTransaction()
.replace(R.id.content, uang)
.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN)
.commit()
}
R.id.profile -> {
profile = ProfileFragment()
supportFragmentManager
.beginTransaction()
.replace(R.id.content, profile)
.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN)
.commit()
}
R.id.navigation_dash->{
homes = HomeFragment()
supportFragmentManager
.beginTransaction()
.replace(R.id.content, homes)
.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE)
.commit()
}
}
true
}
homes = HomeFragment()
supportFragmentManager
.beginTransaction()
.replace(R.id.content, homes)
.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE)
.commit()
}
}
package com.example.login.Home.HomeFragment
import android.app.ProgressDialog
import android.content.Intent
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.widget.*
import com.androidnetworking.AndroidNetworking
import com.androidnetworking.common.Priority
import com.androidnetworking.error.ANError
import com.androidnetworking.interfaces.JSONObjectRequestListener
import com.example.login.Api.ApiEndPoint
import com.example.login.Home.HomeActivity
import com.example.login.Model.Kegiatan
import com.example.login.Model.Mahasiswa
import com.example.login.R
import com.example.login.Session.SharedPrefManager
import com.squareup.picasso.Picasso
import org.json.JSONObject
class DetailActivity : AppCompatActivity() {
lateinit var share : SharedPrefManager
lateinit var user : Mahasiswa
lateinit var kegiatanid : TextView
lateinit var bphid : TextView
lateinit var periodeid : TextView
lateinit var namakeg : TextView
lateinit var wakeg : TextView
lateinit var tekeg : TextView
lateinit var deskeg : TextView
lateinit var fokeg : TextView
lateinit var taber : TextView
lateinit var stakeg : TextView
lateinit var penulis : TextView
lateinit var ImageList: ImageView
//kuisioner
lateinit var opsi1: RadioGroup
lateinit var opsi2: RadioGroup
lateinit var opsi3: RadioGroup
lateinit var komentar: EditText
lateinit var submit: Button
lateinit var pilihan1: String
lateinit var pilihan2: String
lateinit var pilihan3: String
lateinit var Kegiatan_id: String
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_detail)
share = SharedPrefManager(applicationContext)
user = share.getInstance(applicationContext).getMahasiswa()
kegiatanid = findViewById(R.id.kegiatanid)
var getIntent = getIntent()
kegiatanid.text = getIntent.getStringExtra("kegiatan_id")
bphid = findViewById(R.id.bphid)
bphid.text = getIntent.getStringExtra("bph_id")
periodeid = findViewById(R.id.periodeid)
periodeid.text = getIntent.getStringExtra("periode_id")
namakeg = findViewById(R.id.namakeg)
namakeg.text = getIntent.getStringExtra("nama_kegiatan")
wakeg = findViewById(R.id.wakeg)
wakeg.text = getIntent.getStringExtra("waktu_kegiatan")
tekeg = findViewById(R.id.tekeg)
tekeg.text = getIntent.getStringExtra("tempat_kegiatan")
deskeg = findViewById(R.id.deskeg)
deskeg.text = getIntent.getStringExtra("deskripsi_kegiatan")
// fokeg = findViewById(R.id.fokeg)
ImageList = findViewById(R.id.ImageList)
taber = findViewById(R.id.taber)
taber.text = getIntent.getStringExtra("tanggal_berakhir")
stakeg = findViewById(R.id.stakeg)
opsi1 = findViewById(R.id.opsi)
opsi2 = findViewById(R.id.opsi2)
opsi3 = findViewById(R.id.opsi3)
komentar = findViewById(R.id.komentar)
submit = findViewById(R.id.submit)
Kegiatan_id = getIntent.getStringExtra("kegiatan_id")
stakeg.text = getIntent.getStringExtra("status_kegiatan")
penulis = findViewById(R.id.penulis)
penulis.text = getIntent.getStringExtra("penulis")
opsi1.setOnCheckedChangeListener(RadioGroup.OnCheckedChangeListener { group, checkedId ->
val radio_button1 : RadioButton = findViewById(checkedId)
pilihan1 = radio_button1.text.toString()
})
opsi2.setOnCheckedChangeListener(RadioGroup.OnCheckedChangeListener { group, checkedId ->
val radio_button2 : RadioButton = findViewById(checkedId)
pilihan2 = radio_button2.text.toString()
})
opsi3.setOnCheckedChangeListener(RadioGroup.OnCheckedChangeListener { group, checkedId ->
val radio_button3 : RadioButton = findViewById(checkedId)
pilihan3 = radio_button3.text.toString()
})
submit.setOnClickListener {
if (komentar.getText().toString().equals("")){
Toast.makeText(applicationContext,"Komentar Tidak Boleh Kosong",
Toast.LENGTH_SHORT).show()
}
else if(pilihan1 == null){
Toast.makeText(applicationContext,"Pertanyaan 1 Belum Dijawab",
Toast.LENGTH_SHORT).show()
}
else if(pilihan2 == null){
Toast.makeText(applicationContext,"Pertanyaan 2 Belum Dijawab",
Toast.LENGTH_SHORT).show()
}
else if(pilihan3 == null){
Toast.makeText(applicationContext,"Pertanyaan 3 Belum Dijawab",
Toast.LENGTH_SHORT).show()
}
else{
submitkui(pilihan1,pilihan2,pilihan3,komentar.getText().toString())
}
}
Picasso.get().load("http://192.168.43.148/Himatif/foto_kegiatan/"+getIntent.getStringExtra("foto_kegiatan")).into(ImageList)
}
private fun submitkui(pilihan1: String, pilihan2: String, pilihan3: String, toString: String) {
var loading = ProgressDialog(this)
loading.setMessage("Mengirim Surat Kuisioner")
loading.show()
// println("id _customer : "+user.id_user)
AndroidNetworking.post(ApiEndPoint.sendkuisioner)
.addBodyParameter("kegiatan_id",Kegiatan_id)
.addBodyParameter("mahasiswa_id",user.mahasiswa_id)
.addBodyParameter("jab1", pilihan1)
.addBodyParameter("jab2", pilihan2)
.addBodyParameter("jab3", pilihan3)
.addBodyParameter("jab4",toString)
.setPriority(Priority.MEDIUM)
.build()
.getAsJSONObject(object: JSONObjectRequestListener {
override fun onResponse(response: JSONObject?) {
var userJSON: JSONObject
loading.dismiss()
// Toast.makeText(applicationContext, response?.getString("message"), Toast.LENGTH_LONG).show()
if (response?.getString("message")?.contains("Suskses Mengirimkan Kuisioner!")!!){
val i = Intent(this@DetailActivity, HomeActivity::class.java)
startActivity(i)
finish()
}
else{
Toast.makeText(applicationContext, "Coba Lagi", Toast.LENGTH_LONG).show()
}
}
override fun onError(anError: ANError?) {
loading.dismiss()
Log.d("OneError : ",anError?.errorDetail?.toString())
Toast.makeText(this@DetailActivity,"Connection Failure", Toast.LENGTH_LONG).show()
}
})
}
}
package com.example.login.Home.HomeFragment
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.opengl.Visibility
import android.os.Bundle
import android.support.v4.app.Fragment
import android.support.v7.widget.CardView
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerView
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import android.widget.Toast
import com.example.login.Adapter.AdapterBirth
import com.example.login.Adapter.AdapterPengumuman
import com.example.login.Api.API
import com.example.login.Api.Common
import com.example.login.Home.BphActivity
import com.example.login.Home.MahasiswaActivity
import com.example.login.Model.BirthModel
import com.example.login.Model.Pengumuman
import com.example.login.R
import kotlinx.android.synthetic.main.fragment_pengumuman.*
import retrofit2.Call
import retrofit2.Callback
import retrofit2.Response
import java.text.SimpleDateFormat
import java.util.*
class HomeFragment : Fragment() {
lateinit var cardView: CardView
lateinit var cardView2: CardView
lateinit var cardi: RecyclerView
lateinit var textView: TextView
lateinit var mService: API
lateinit var layoutManager: LinearLayoutManager
lateinit var adapterBirth: AdapterBirth
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?,
savedInstanceState: Bundle?): View? {
// Inflate the layout for this fragment
var view = inflater.inflate(R.layout.fragment_home, container, false)
cardView = view.findViewById(R.id.cardview)
cardView2 = view.findViewById(R.id.cardview2)
textView = view.findViewById(R.id.textError)
cardView.setOnClickListener {
var intent = Intent(context,MahasiswaActivity::class.java)
startActivity(intent)
}
cardView2.setOnClickListener {
var intent = Intent(context,BphActivity::class.java)
startActivity(intent)
}
val sdf = SimpleDateFormat("MM-dd", Locale.getDefault())
val currentDate = sdf.format(Date())
cardi = view.findViewById(R.id.recycler)
cardi.setHasFixedSize(true)
layoutManager = LinearLayoutManager(context, LinearLayoutManager.HORIZONTAL, false)
cardi.layoutManager = layoutManager
mService = Common.retrofitService
getBirthDay(currentDate.toString())
return view
}
private fun getBirthDay(currentDate: String?) {
mService.getAllBirth(currentDate.toString()).enqueue(object : Callback<MutableList<BirthModel>> {
override fun onFailure(call: Call<MutableList<BirthModel>>, t: Throwable) {
print("Error : " + t.toString())
}
override fun onResponse(call: Call<MutableList<BirthModel>>, response: Response<MutableList<BirthModel>>) {
try {
if (response != null) {
if(response.body().toString().equals("[]")){
textView.visibility = View.VISIBLE
cardi.visibility = View.GONE
}
else{
adapterBirth = AdapterBirth(context, response.body() as MutableList<BirthModel>)
adapterBirth.notifyDataSetChanged()
cardi.adapter = adapterBirth
textView.visibility = View.GONE
}
}
} catch (t: ExceptionInInitializerError) {
}
}
})
}
}
package com.example.login.Home.KegiatanFragment
import android.os.Bundle
import android.support.v4.app.Fragment
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import com.example.login.Adapter.AdapterKegiatan
import com.example.login.Api.API
import com.example.login.Api.Common
import com.example.login.Model.Kegiatan
import com.example.login.R
import retrofit2.Call
import retrofit2.Callback
import retrofit2.Response
class KegiatanFragment : Fragment() {
lateinit var sada:RecyclerView
lateinit var mService: API
lateinit var layoutManager: LinearLayoutManager
lateinit var adapterKegiatan: AdapterKegiatan
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?,
savedInstanceState: Bundle?): View? {
// Inflate the layout for this fragment
var view= inflater.inflate(R.layout.fragment_kegiatan, container, false)
sada = view.findViewById(R.id.sada)
sada.setHasFixedSize(true)
layoutManager = LinearLayoutManager(context)
sada.layoutManager = layoutManager
mService = Common.retrofitService
getallkegiatan()
return view
}
private fun getallkegiatan() {
mService.getkegiatan().enqueue(object : Callback<MutableList<Kegiatan>>{
override fun onFailure(call: Call<MutableList<Kegiatan>>, t: Throwable) {
print("Error : "+t.toString())
}
override fun onResponse(call: Call<MutableList<Kegiatan>>, response: Response<MutableList<Kegiatan>>) {
try {
if (response!=null){
print( "Data : "+response.body())
adapterKegiatan = AdapterKegiatan(context, response.body() as MutableList<Kegiatan>)
adapterKegiatan.notifyDataSetChanged()
sada.adapter = adapterKegiatan
}
}
catch (t : ExceptionInInitializerError){
print( "Data : "+t.message)
}
}
})
}
}
package com.example.login.Home
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import android.widget.ImageView
import android.widget.TextView
import com.example.login.Adapter.AdapterMahasiswa
import com.example.login.Api.API
import com.example.login.Api.Common
import com.example.login.Model.Mahasiswa
import com.example.login.Model.MahasiswaModel
import com.example.login.R
import retrofit2.Call
import retrofit2.Callback
import retrofit2.Response
class MahasiswaActivity : AppCompatActivity() {
lateinit var maha:RecyclerView
lateinit var mService: API
lateinit var layoutManager: LinearLayoutManager
lateinit var adapterMahasiswa: AdapterMahasiswa
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_mahasiswa)
maha = findViewById(R.id.maha)
maha.setHasFixedSize(true)
layoutManager = LinearLayoutManager(applicationContext)
maha.layoutManager = layoutManager
mService = Common.retrofitService
getallmahasiswas()
}
private fun getallmahasiswas() {
mService.getmahasiswas().enqueue(object : Callback<MutableList<MahasiswaModel>>{
override fun onFailure(call: Call<MutableList<MahasiswaModel>>, t: Throwable) {
print("Error : "+t.toString())
}
override fun onResponse(call: Call<MutableList<MahasiswaModel>>, response: Response<MutableList<MahasiswaModel>>) {
try {
if (response!=null){
print( "Data : "+response.body())
adapterMahasiswa = AdapterMahasiswa(applicationContext, response.body() as MutableList<MahasiswaModel>)
adapterMahasiswa.notifyDataSetChanged()
maha.adapter = adapterMahasiswa
}
}
catch (t : ExceptionInInitializerError){
print( "Data : "+t.message)
}
}
})
}
}
package com.example.login.Home.PengumumanFragment
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.widget.ImageView
import android.widget.TextView
import com.example.login.R
import com.squareup.picasso.Picasso
class DetailPengumuman : AppCompatActivity() {
lateinit var pengumumanid: TextView
lateinit var bphid: TextView
lateinit var periodeid: TextView
lateinit var detpe: TextView
lateinit var taber: TextView
lateinit var jupe: TextView
lateinit var ImageListt: ImageView
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_detail_pengumuman)
pengumumanid = findViewById(R.id.pengumumanid)
var getIntent = getIntent()
pengumumanid.text = getIntent.getStringExtra("pengumuman_id")
bphid = findViewById(R.id.bphid)
bphid.text = getIntent.getStringExtra("bph_id")
periodeid = findViewById(R.id.periodeid)
periodeid.text = getIntent.getStringExtra("periode_id")
detpe = findViewById(R.id.detpe)
detpe.text = getIntent.getStringExtra("detail_pengumuman")
ImageListt = findViewById(R.id.lbImageListt)
taber = findViewById(R.id.taber)
taber.text = getIntent.getStringExtra("tanggal_berakhir")
jupe = findViewById(R.id.jupe)
jupe.text = getIntent.getStringExtra("judul_pengumuman")
Picasso.get().load("http://192.168.43.148/Himatif/foto_pengumuman/"+getIntent.getStringExtra("foto_pengumuman")).into(ImageListt)
}
}
package com.example.login.Home.PengumumanFragment
import android.os.Bundle
import android.support.v4.app.Fragment
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import com.example.login.Adapter.AdapterPengumuman
import com.example.login.Api.API
import com.example.login.Api.Common
import com.example.login.Model.Pengumuman
import com.example.login.R
import retrofit2.Call
import retrofit2.Callback
import retrofit2.Response
class PengumumanFragment : Fragment() {
lateinit var dua:RecyclerView
lateinit var mService: API
lateinit var layoutManager: LinearLayoutManager
lateinit var adapterPengumuman: AdapterPengumuman
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?,
savedInstanceState: Bundle?): View? {
// Inflate the layout for this fragment
var view= inflater.inflate(R.layout.fragment_pengumuman, container, false)
dua = view.findViewById(R.id.dua)
dua.setHasFixedSize(true)
layoutManager = LinearLayoutManager(context)
dua.layoutManager = layoutManager
mService = Common.retrofitService
getallpengumuman()
return view
}
private fun getallpengumuman() {
mService.getpengumuman().enqueue(object : Callback<MutableList<Pengumuman>>{
override fun onFailure(call: Call<MutableList<Pengumuman>>, t: Throwable) {
print("Error : "+t.toString())
}
override fun onResponse(call: Call<MutableList<Pengumuman>>, response: Response<MutableList<Pengumuman>>) {
try {
if (response!=null){
print( "Data : "+response.body())
adapterPengumuman = AdapterPengumuman(context, response.body() as MutableList<Pengumuman>)
adapterPengumuman.notifyDataSetChanged()
dua.adapter = adapterPengumuman
}
}
catch (t : ExceptionInInitializerError){
print( "Data : "+t.message)
}
}
})
}
}
\ No newline at end of file
package com.example.login.Home.UangFragment
import android.os.Bundle
import android.support.v4.app.Fragment
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import android.widget.Toast
import com.example.login.Adapter.AdapterUang
import com.example.login.Api.API
import com.example.login.Api.Common
import com.example.login.Model.Uang
import com.example.login.R
import retrofit2.Call
import retrofit2.Callback
import retrofit2.Response
class UangFragment : Fragment() {
lateinit var lbJulbarList: TextView
lateinit var lbBuatList: TextView
lateinit var lbAkhirList: TextView
lateinit var lbDeskripsiList: TextView
lateinit var lbStatusList: TextView
lateinit var lbNamaPembayarList: TextView
lateinit var tolu:RecyclerView
lateinit var mService: API
lateinit var layoutManager: LinearLayoutManager
lateinit var adapterUang: AdapterUang
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?,
savedInstanceState: Bundle?): View? {
// Inflate the layout for this fragment
var view= inflater.inflate(R.layout.fragment_uang, container, false)
tolu = view.findViewById(R.id.tolu)
tolu.setHasFixedSize(true)
layoutManager = LinearLayoutManager(context)
tolu.layoutManager = layoutManager
mService = Common.retrofitService
getalluang()
return view
lbJulbarList = view.findViewById(R.id.lbJulbarList)
lbBuatList = view.findViewById(R.id.lbBuatList)
lbAkhirList = view.findViewById(R.id.lbAkhirList)
lbDeskripsiList = view.findViewById(R.id.lbDeskripsiList)
lbStatusList = view.findViewById(R.id.lbStatusList)
lbNamaPembayarList = view.findViewById(R.id.lbNamaPembayarList)
}
private fun getalluang() {
mService.getuang().enqueue(object : Callback<MutableList<Uang>>{
override fun onFailure(call: Call<MutableList<Uang>>, t: Throwable) {
print("Error : "+t.toString())
}
override fun onResponse(call: Call<MutableList<Uang>>, response: Response<MutableList<Uang>>) {
try {
if (response!=null){
print( "Data : "+response.body())
adapterUang = AdapterUang(context, response.body() as MutableList<Uang>)
adapterUang.notifyDataSetChanged()
tolu.adapter = adapterUang
}
}
catch (t : ExceptionInInitializerError){
print( "Data : "+t.message)
}
}
})
}
}
\ No newline at end of file
package com.example.login.Home.UserProfile
import android.os.Bundle
import android.provider.ContactsContract
import android.support.v4.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import android.widget.TextView
import com.example.login.Api.ApiEndPoint
import com.example.login.Model.Mahasiswa
import com.example.login.R
import com.example.login.Session.SharedPrefManager
import com.squareup.picasso.Picasso
import de.hdodenhof.circleimageview.CircleImageView
class ProfileFragment : Fragment() {
lateinit var share : SharedPrefManager
lateinit var user : Mahasiswa
// TODO: Rename and change types of parameters
lateinit var image:CircleImageView
lateinit var tvNama: TextView
lateinit var tvemail: TextView
lateinit var nim: TextView
lateinit var tvPassword: TextView
lateinit var tvKelas: TextView
lateinit var tvAngkatan: TextView
lateinit var tvStatma: TextView
lateinit var logout: Button
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?,
savedInstanceState: Bundle?): View? {
// Inflate the layout for this fragment
var view= inflater.inflate(R.layout.fragment_profile, container, false)
share = SharedPrefManager(context)
user = share.getInstance(context).getMahasiswa()
image = view.findViewById(R.id.imageUser)
tvNama = view.findViewById(R.id.tvNama)
tvemail = view.findViewById(R.id.tvEmail)
nim = view.findViewById(R.id.nim)
tvPassword = view.findViewById(R.id.tvPassword)
tvKelas = view.findViewById(R.id.tvKelas)
tvAngkatan = view.findViewById(R.id.tvAngkatan)
tvStatma = view.findViewById(R.id.tvStatma)
logout = view.findViewById(R.id.logout)
tvNama.text = user.nama
tvemail.text = user.email
nim.text = user.nim
tvPassword.text = user.password
tvKelas.text = user.kelas
tvAngkatan.text = user.angkatan
tvStatma.text = user.status_mahasiswa
Picasso.get().load("http://192.168.43.148/Himatif/foto_mahasiswa/"+user.foto_mahasiswa).into(image)
logout.setOnClickListener {
share.logout()
}
return view
}
}
package com.example.login
data class Kegiatans (val kegiatan_id:String?,val bph_id:String?,val periode_id:String?,val nama_kegiatan:String?,val waktu_kegiatan:String?,val tempat_kegiatan:String?,val deskripsi_kegiatan:String?, val foto_kegiatan:String?,val tanggal_berakhir:String?, val status_kegiatan:String?)
\ No newline at end of file
package com.example.login
import android.app.ProgressDialog
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.support.v7.widget.AppCompatButton
import android.util.Log
import android.view.View
import android.widget.EditText
import android.widget.Toast
import com.androidnetworking.AndroidNetworking
import com.androidnetworking.common.Priority
import com.androidnetworking.error.ANError
import com.androidnetworking.interfaces.JSONObjectRequestListener
import com.example.login.Api.ApiEndPoint
import com.example.login.Home.HomeActivity
import com.example.login.Model.Mahasiswa
import com.example.login.Session.SharedPrefManager
import org.json.JSONObject
class LoginActivity : AppCompatActivity() {
//Defining views
private var share: SharedPrefManager?=null
private var editTextEmail: EditText? = null
private var editTextPassword: EditText? = null
private var context: Context? = null
private var buttonLogin: AppCompatButton? = null
private var pDialog: ProgressDialog? = null
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_login)
context = this@LoginActivity
share = SharedPrefManager(this)
//Initializing views
pDialog = ProgressDialog(context)
editTextEmail = findViewById<View>(R.id.editTextEmail) as EditText
editTextPassword = findViewById<View>(R.id.editTextPassword) as EditText
buttonLogin = findViewById<View>(R.id.buttonLogin) as AppCompatButton
//Adding click listener
buttonLogin!!.setOnClickListener {
if(editTextEmail!!.text.toString().trim().equals("") || editTextPassword!!.text.toString().trim().equals("")){
Toast.makeText(this@LoginActivity, "Form Must Be Filled", Toast.LENGTH_LONG).show()
}
else {
loginUser(editTextEmail!!.text.toString().trim(), editTextPassword!!.text.toString().trim())
}
}
//editTextEmail.setText("admin@agusharyanto.net");
//editTextPassword.setText("abcd1234");
}
private fun loginUser(trim: String, trim1: String) {
val loading = ProgressDialog(this)
loading.setMessage("Loading Data....")
loading.show()
AndroidNetworking.post(ApiEndPoint.login)
.addBodyParameter("email", trim)
.addBodyParameter("password", trim1)
.setPriority(Priority.MEDIUM)
.build()
.getAsJSONObject(object : JSONObjectRequestListener {
override fun onResponse(response: JSONObject?) {
var userJSON: JSONObject
var userModel:Mahasiswa
loading.dismiss()
if (response?.getString("message")?.contains("Successfully Login!")!!){
Toast.makeText(applicationContext, response?.getString("message"),Toast.LENGTH_LONG).show()
// userJSON = response.getJSONObject("DataUser")
// Log.d("Data User : ", response.getJSONObject("DataUser").getString("nama_depan").toString())
userModel = Mahasiswa(
response.getJSONObject("DataUser").getString("mahasiswa_id"),
response.getJSONObject("DataUser").getString("nama"),
response.getJSONObject("DataUser").getString("username"),
response.getJSONObject("DataUser").getString("password"),
response.getJSONObject("DataUser").getString("nim"),
response.getJSONObject("DataUser").getString("kelas"),
response.getJSONObject("DataUser").getString("angkatan"),
response.getJSONObject("DataUser").getString("alamat"),
response.getJSONObject("DataUser").getString("email"),
response.getJSONObject("DataUser").getString("status_mahasiswa"),
response.getJSONObject("DataUser").getString("tempat_lahir"),
response.getJSONObject("DataUser").getString("tanggal_lahir"),
response.getJSONObject("DataUser").getString("role"),
response.getJSONObject("DataUser").getString("foto_mahasiswa")
)
//
share!!.getInstance(applicationContext).mahasiswaLogin(userModel)
val i = Intent(this@LoginActivity, HomeActivity::class.java)
startActivity(i)
finish()
}
else{
Toast.makeText(applicationContext, "Please To Register Your Account",Toast.LENGTH_LONG).show()
editTextEmail!!.setText("")
editTextPassword!!.setText("")
}
}
override fun onError(anError: ANError?) {
loading.dismiss()
Log.d("OneError : ",anError?.errorDetail?.toString())
Toast.makeText(this@LoginActivity,"Connection Failure", Toast.LENGTH_LONG).show()
}
})
}
}
\ No newline at end of file
package com.example.login
import android.app.ProgressDialog
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.support.v7.widget.LinearLayoutManager
import android.util.Log
import android.widget.Toast
import com.androidnetworking.AndroidNetworking
import com.androidnetworking.common.Priority
import com.androidnetworking.error.ANError
import com.androidnetworking.interfaces.JSONObjectRequestListener
import com.example.login.Api.ApiEndPoint
import kotlinx.android.synthetic.main.activity_main.*
import org.json.JSONObject
class MainActivity : AppCompatActivity() {
var arrayList= ArrayList<Kegiatans>()
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
supportActionBar?.title = "Data Kegiatan"
mRecyclerView.setHasFixedSize(true)
mRecyclerView.layoutManager = LinearLayoutManager(this);
}
override fun onResume(){
super.onResume()
loadAllStudents()
}
private fun loadAllStudents(){
val loading = ProgressDialog(this)
loading.setMessage("Memuat data...")
loading.show()
AndroidNetworking.get(ApiEndPoint.READ)
.setPriority(Priority.MEDIUM)
.build()
.getAsJSONObject(object : JSONObjectRequestListener {
override fun onResponse(response: JSONObject?) {
arrayList.clear()
val jsonArray = response?.optJSONArray("result")
if (jsonArray?.length()== 0)
{
loading.dismiss()
Toast.makeText(applicationContext,"Kegiatan data is empty, Add the data first",
Toast.LENGTH_SHORT).show()
}
for(i in 0 until jsonArray?.length()!!){
val jsonObject = jsonArray?.optJSONObject(i)
arrayList.add(Kegiatans(jsonObject.getString("kegiatan_id"),
jsonObject.getString("bph_id"),
jsonObject.getString("periode_id"),
jsonObject.getString("nama_kegiatan"),
jsonObject.getString("waktu_kegiatan"),
jsonObject.getString("tempat_kegiatan"),
jsonObject.getString("deskripsi_kegiatan"),
jsonObject.getString("foto_kegiatan"),
jsonObject.getString("tanggal_berakhir"),
jsonObject.getString("status_kegiatan")))
if(jsonArray?.length() - 1 == i){
loading.dismiss()
val adapter = RVAdapterKegiatan(applicationContext,arrayList)
adapter.notifyDataSetChanged()
mRecyclerView.adapter = adapter
}
}
}
override fun onError(anError: ANError?) {
loading.dismiss()
Log.d("ONERROR",anError?.errorDetail?.toString())
Toast.makeText(applicationContext,"Connection Failure", Toast.LENGTH_SHORT).show()
}
})
}
}
package com.example.login.Model
import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
class BirthModel {
@SerializedName("mahasiswa_id")
@Expose
var mahasiswa_id: String? =null
@SerializedName("nama")
@Expose
var nama: String? =null
@SerializedName("foto_mahasiswa")
@Expose
var foto_mahasiswa: String? =null
}
\ No newline at end of file
package com.example.login.Model
import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
class BphModel {
@SerializedName("bph_id")
@Expose
var bph_id: String? =null
@SerializedName("periode_id")
@Expose
var periode_id: String? =null
@SerializedName("mahasiswa_id")
@Expose
var mahasiswa_id: String? =null
@SerializedName("jabatan")
@Expose
var jabatan: String? =null
@SerializedName("nama")
@Expose
var nama: String? =null
@SerializedName("username")
@Expose
var username: String? =null
@SerializedName("password")
@Expose
var password: String? =null
@SerializedName("nim")
@Expose
var nim: String? =null
@SerializedName("kelas")
@Expose
var kelas: String? =null
@SerializedName("angkatan")
@Expose
var angkatan: String? =null
@SerializedName("alamat")
@Expose
var alamat: String? =null
@SerializedName("email")
@Expose
var email: String? =null
@SerializedName("status_mahasiswa")
@Expose
var status_mahasiswa: String? =null
@SerializedName("tempat_lahir")
@Expose
var tempat_lahir: String? =null
@SerializedName("tanggal_lahir")
@Expose
var tanggal_lahir: String? =null
@SerializedName("role")
@Expose
var role: String? =null
@SerializedName("foto_mahasiswa")
@Expose
var foto_mahasiswa: String? =null
@SerializedName("periode_awal")
@Expose
var periode_awal: String? =null
@SerializedName("periode_akhir")
@Expose
var periode_akhir: String? =null
@SerializedName("status")
@Expose
var status: String? =null
}
\ No newline at end of file
package com.example.login.Model
import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
class Kegiatan{
@SerializedName("kegiatan_id")
@Expose
var kegiatan_id: String? =null
@SerializedName("bph_id")
@Expose
var bph_id: String? =null
@SerializedName("periode_id")
@Expose
var periode_id: String? =null
@SerializedName("nama_kegiatan")
@Expose
var nama_kegiatan: String? =null
@SerializedName("waktu_kegiatan")
@Expose
var waktu_kegiatan: String? =null
@SerializedName("tempat_kegiatan")
@Expose
var tempat_kegiatan: String? =null
@SerializedName("deskripsi_kegiatan")
@Expose
var deskripsi_kegiatan: String? =null
@SerializedName("foto_kegiatan")
@Expose
var foto_kegiatan: String? =null
@SerializedName("tanggal_berakhir")
@Expose
var tanggal_berakhir: String? =null
@SerializedName("status_kegiatan")
@Expose
var status_kegiatan: String? =null
@SerializedName("penulis")
@Expose
var penulis: String? =null
}
\ No newline at end of file
package com.example.login.Model
import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
class Mahasiswa {
var mahasiswa_id:String=""
var nama:String=""
var username:String=""
var password:String=""
var nim:String=""
var kelas:String=""
var angkatan:String=""
var alamat:String=""
var email:String=""
var status_mahasiswa:String=""
var tempat_lahir:String=""
var tanggal_lahir:String=""
var role:String=""
var foto_mahasiswa:String=""
constructor(mahasiswa_id: String, nama: String, username: String, password: String, nim: String,
kelas: String, angkatan: String, alamat: String, email: String, status_mahasiswa:
String, tempat_lahir: String, tanggal_lahir: String, role: String, foto_mahasiswa: String) {
this.mahasiswa_id = mahasiswa_id
this.nama = nama
this.username = username
this.password = password
this.nim = nim
this.kelas = kelas
this.angkatan = angkatan
this.alamat = alamat
this.email = email
this.status_mahasiswa = status_mahasiswa
this.tempat_lahir = tempat_lahir
this.tanggal_lahir = tanggal_lahir
this.role = role
this.foto_mahasiswa = foto_mahasiswa
}
}
\ No newline at end of file
package com.example.login.Model
import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
class MahasiswaModel {
@SerializedName("mahasiswa_id")
@Expose
var mahasiswa_id: String? =null
@SerializedName("nama")
@Expose
var nama: String? =null
@SerializedName("username")
@Expose
var username: String? =null
@SerializedName("password")
@Expose
var password: String? =null
@SerializedName("nim")
@Expose
var nim: String? =null
@SerializedName("kelas")
@Expose
var kelas: String? =null
@SerializedName("angkatan")
@Expose
var angkatan: String? =null
@SerializedName("alamat")
@Expose
var alamat: String? =null
@SerializedName("email")
@Expose
var email: String? =null
@SerializedName("status_mahasiswa")
@Expose
var status_mahasiswa: String? =null
@SerializedName("tempat_lahir")
@Expose
var tempat_lahir: String? =null
@SerializedName("tanggal_lahir")
@Expose
var tanggal_lahir: String? =null
@SerializedName("role")
@Expose
var role: String? =null
@SerializedName("foto_mahasiswa")
@Expose
var foto_mahasiswa: String? =null
}
\ No newline at end of file
package com.example.login.Model
import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
class Pengumuman {
@SerializedName("pengumuman_id")
@Expose
var pengumuman_id: String? =null
@SerializedName("bph_id")
@Expose
var bph_id: String? = null
@SerializedName("periode_id")
@Expose
var periode_id: String? = null
@SerializedName("detail_pengumuman")
@Expose
var detail_pengumuman: String? = null
@SerializedName("tanggal_akhir_pengumuman")
@Expose
var tanggal_akhir_pengumuman: String? = null
@SerializedName("judul_pengumuman")
@Expose
var judul_pengumuman: String? = null
@SerializedName("foto_pengumuman")
@Expose
var foto_pengumuman: String? = null
}
\ No newline at end of file
package com.example.login.Model
import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
class Uang {
@SerializedName("uang_kas_id")
@Expose
var uang_kas_id: String? =null
@SerializedName("bph_id")
@Expose
var bph_id: String? =null
@SerializedName("periode_id")
@Expose
var periode_id: String? =null
@SerializedName("jumlah_bayar")
@Expose
var jumlah_bayar: String? =null
@SerializedName("tanggal_dibuat")
@Expose
var tanggal_dibuat: String? =null
@SerializedName("tanggal_berakhir")
@Expose
var tanggal_berakhir: String? =null
@SerializedName("deskripsi_pembayaran")
@Expose
var deskripsi_pembayaran: String? = null
@SerializedName("status_pembayaran")
@Expose
var status_pembayaran: String? =null
@SerializedName("mahasiswa_id")
@Expose
var mahasiswa_id: String? =null
@SerializedName("nama")
@Expose
var Nama_pemabayar: String? =null
}
\ No newline at end of file
package com.example.login
import android.content.Context
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import kotlinx.android.synthetic.main.kegiatan_list.view.*
class RVAdapterKegiatan(private val context: Context, private val arrayList: ArrayList<Kegiatans>) : RecyclerView.Adapter<RVAdapterKegiatan.Holder>() {
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): Holder {
return Holder(LayoutInflater.from(parent.context).inflate(R.layout.kegiatan_list,parent,false))
}
override fun getItemCount(): Int = arrayList!!.size
override fun onBindViewHolder(holder: Holder, position: Int) {
holder.view.lbIdList.text= arrayList?.get(position)?.kegiatan_id
holder.view.lbBPHList.text = "BPH : "+arrayList?.get(position)?.bph_id
holder.view.lbPeriodeList.text = "Periode : "+arrayList?.get(position)?.periode_id
holder.view.lbNamaList.text = "Nama Kegiatan : "+arrayList?.get(position)?.nama_kegiatan
holder.view.lbWaktuList.text = "Waktu Kegiatan : "+arrayList?.get(position)?.waktu_kegiatan
holder.view.lbTempatList.text = "Tempat_Kegiatan : "+arrayList?.get(position)?.tempat_kegiatan
holder.view.lbDeskripsiList.text = "Deskripsi_Kegiatan : "+arrayList?.get(position)?.deskripsi_kegiatan
holder.view.lbBerakhirList.text = "Tanggal_berakhir : "+arrayList?.get(position)?.tanggal_berakhir
// holder.view.lbImageList.text = "Image : "+arrayList?.get(position)?.foto_kegiatan
holder.view.lbStatusList.text = "Status_kegiatan : "+arrayList?.get(position)?.status_kegiatan
}
class Holder(var view: View) : RecyclerView.ViewHolder(view)
}
\ No newline at end of file
package com.example.login.Session
import android.content.Context
import android.content.Intent
import android.content.SharedPreferences
import com.example.login.Home.HomeActivity
import com.example.login.LoginActivity
import com.example.login.Model.Mahasiswa
class SharedPrefManager {
private var SHARED_NAME = "shared"
private var mahasiswa_id ="mahasiswa_id"
private var nama = "nama"
private var username = "username"
private var password = "password"
private var nim = "nim"
private var kelas = "kelas"
private var angkatan = "angkatan"
private var alamat = "alamat"
private var email = "email"
private var status_mahasiswa = "status_mahasiswa"
private var tempat_lahir = "tempat_lahir"
private var tanggal_lahir = "tanggal_lahir"
private var role = "role"
private var foto_mahasiswa = "foto_mahasiswa"
var mInstance: SharedPrefManager?=null
lateinit var mCtx : Context
lateinit var sharedPreferences: SharedPreferences
lateinit var editor: SharedPreferences.Editor
constructor(context: Context?){
if (context != null) {
mCtx = context
}
}
@Synchronized fun getInstance(context: Context?):SharedPrefManager{
if (mInstance == null){
mInstance =SharedPrefManager(context)
}
return mInstance as SharedPrefManager
}
fun isLoogedin():Boolean{
var share:SharedPreferences
share = mCtx.getSharedPreferences(SHARED_NAME, Context.MODE_PRIVATE)
return share.getString(email, null)!=null
}
fun mahasiswaLogin(mahasiswaModel:Mahasiswa){
sharedPreferences =mCtx.getSharedPreferences(SHARED_NAME, Context.MODE_PRIVATE)
editor = sharedPreferences.edit()
editor.putString(mahasiswa_id, mahasiswaModel.mahasiswa_id)
editor.putString(nama, mahasiswaModel.nama)
editor.putString(username, mahasiswaModel.username)
editor.putString(password, mahasiswaModel.password)
editor.putString(nim, mahasiswaModel.nim)
editor.putString(kelas, mahasiswaModel.kelas)
editor.putString(angkatan, mahasiswaModel.angkatan)
editor.putString(alamat, mahasiswaModel.alamat)
editor.putString(email, mahasiswaModel.email)
editor.putString(status_mahasiswa, mahasiswaModel.status_mahasiswa)
editor.putString(tempat_lahir, mahasiswaModel.tempat_lahir)
editor.putString(tanggal_lahir, mahasiswaModel.tanggal_lahir)
editor.putString(role, mahasiswaModel.role)
editor.putString(foto_mahasiswa, mahasiswaModel.foto_mahasiswa)
editor.apply()
}
fun getMahasiswa():Mahasiswa{
var shared :SharedPreferences
shared = mCtx.getSharedPreferences(SHARED_NAME, Context.MODE_PRIVATE)
return Mahasiswa(
shared.getString(mahasiswa_id, null),
shared.getString(nama, null),
shared.getString(username, null),
shared.getString(password, null),
shared.getString(nim, null),
shared.getString(kelas, null),
shared.getString(angkatan, null),
shared.getString(alamat, null),
shared.getString(email, null),
shared.getString(status_mahasiswa, null),
shared.getString(tempat_lahir, null),
shared.getString(tanggal_lahir, null),
shared.getString(role, null),
shared.getString(foto_mahasiswa, null)
)
}
fun logout(){
var shared:SharedPreferences = mCtx.getSharedPreferences(SHARED_NAME, Context.MODE_PRIVATE)
editor =shared.edit()
editor.clear()
editor.apply()
mCtx.startActivity(Intent(mCtx, LoginActivity::class.java))
}
fun checkLogin(){
if(!this.isLoogedin()){
var i =Intent(mCtx, LoginActivity::class.java)
i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)
i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK)
mCtx.startActivity(i)
}
else{
var i = Intent(mCtx, HomeActivity::class.java)
i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)
i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK)
mCtx.startActivity(i)
}
}
}
\ No newline at end of file
package com.example.login
import android.content.SharedPreferences.Editor
import android.os.Bundle
import android.os.Handler
import android.support.v7.app.AppCompatActivity
import android.view.View
import android.view.animation.Animation
import android.view.animation.AnimationUtils
import com.example.login.Session.SharedPrefManager
class SplashActivity : AppCompatActivity() {
lateinit var shared : SharedPrefManager
private var tv1: View? = null
var animation: Animation? = null
private var editor: Editor? = null
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_splash)
tv1 = findViewById(R.id.hello)
animation = AnimationUtils.loadAnimation(applicationContext, R.anim.fade_in)
tv1!!.animation = animation
shared = SharedPrefManager(applicationContext)
Handler().postDelayed({
shared.checkLogin()
finish()
},5000)
}
}
<?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:layout_margin="10dp"
android:background="@color/grey"
tools:context=".Home.BphActivity">
<android.support.v7.widget.RecyclerView
android:id="@+id/bph"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</RelativeLayout>
\ No newline at end of file
<?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:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:background="@color/grey"
tools:context=".CourseActivity">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/imageView"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:src="@drawable/danila" />
</RelativeLayout>
\ No newline at end of file
<?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/grey"
tools:context=".Home.ActivityDashboard">
</android.support.constraint.ConstraintLayout>
\ No newline at end of file
<?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:orientation="vertical"
android:background="@color/grey"
tools:context=".Home.PengumumanFragment.DetailPengumuman">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="10dp"
android:background="@color/white"
android:padding="10dp">
<ImageView
android:id="@+id/lbImageListt"
android:layout_width="match_parent"
android:layout_height="130dp"
android:layout_marginHorizontal="10dp"
android:scaleType="fitXY"
android:src="@mipmap/ic_launcher"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Judul Pengumuman"
android:id="@+id/jupe"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Tanggal"
android:id="@+id/taber"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Deskripsi"
android:id="@+id/detpe"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
android:id="@+id/pengumumanid"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
android:id="@+id/bphid"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
android:id="@+id/periodeid"/>
</LinearLayout>
</LinearLayout>
</android.support.constraint.ConstraintLayout>
\ No newline at end of file
<?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"
tools:context=".Home.HomeActivity">
<FrameLayout
android:id="@+id/content"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"></FrameLayout>
<android.support.design.widget.BottomNavigationView
android:layout_alignParentBottom="true"
android:id="@+id/navigation"
android:background="#fff"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
app:menu="@menu/menu"
/>
</RelativeLayout>
\ No newline at end of file
<?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:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:orientation="vertical"
tools:context=".LoginActivity">
<ImageView
android:src="@drawable/himatif"
android:layout_gravity="center_horizontal"
android:layout_width="150dp"
android:layout_height="150dp" />
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp">
<EditText android:id="@+id/editTextEmail"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textEmailAddress"
android:hint="Email" />
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp">
<EditText android:id="@+id/editTextPassword"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textPassword"
android:hint="Password"/>
</android.support.design.widget.TextInputLayout>
<android.support.v7.widget.AppCompatButton
android:id="@+id/buttonLogin"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@color/colorPrimary"
android:textColor="@android:color/white"
android:layout_marginTop="24dp"
android:layout_marginBottom="24dp"
android:padding="12dp"
android:text="Login"/>
</LinearLayout>
\ No newline at end of file
<?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:layout_margin="10dp"
tools:context=".Home.MahasiswaActivity">
<android.support.v7.widget.RecyclerView
android:id="@+id/maha"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</RelativeLayout>
\ No newline at end of file
<?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="wrap_content"
tools:context=".MainActivity">
<android.support.v7.widget.RecyclerView
android:id="@+id/mRecyclerView"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</RelativeLayout>
\ No newline at end of file
<?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:orientation="vertical"
android:gravity="center"
android:background="@drawable/background"
tools:context=".SplashActivity">
<TextView
android:id="@+id/hello"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_marginEnd="25dp"
android:layout_marginRight="25dp"
android:gravity="center"
android:text="H I M A T I F"
android:textColor="#FFF"
android:textSize="30sp" />
<TextView
android:id="@+id/tu"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/hello"
android:layout_marginTop="78dp"
android:gravity="center"
android:text="D3TI-09"
android:textColor="#FFF" />
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@color/grey"
xmlns:card_view="http://schemas.android.com/apk/res-auto">
<android.support.v7.widget.CardView
android:id="@+id/cardi"
android:layout_width="150dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:elevation="4dp"
card_view:cardCornerRadius="5dp"
card_view:cardElevation="20dp"
card_view:cardUseCompatPadding="true">
<LinearLayout
android:id="@+id/lm"
android:padding="5dp"
android:layout_toRightOf="@+id/image"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_alignParentTop="true"
android:layout_alignParentEnd="true">
<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/lbImageList"
android:layout_width="100dp"
android:layout_height="100dp"/>
<TextView
android:gravity="center"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/lbIDMahasiswaList"
android:text="Nama Mahasiswa"
android:textColor="#fff"/>
<TextView
android:gravity="center"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/lbNamaList"
android:text="Nama Mahasiswa"
android:textColor="#000"/>
</LinearLayout>
</android.support.v7.widget.CardView>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="130dp"
android:orientation="horizontal">
<android.support.v7.widget.CardView
android:id="@+id/mana"
android:clickable="true"
android:foreground="?android:attr/selectableItemBackground"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="5dp"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:layout_marginTop="12dp">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<LinearLayout
android:layout_width="100dp"
android:layout_height="100dp">
<ImageView
android:id="@+id/lbImageList"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_marginHorizontal="10dp"
android:scaleType="fitXY"
android:src="@mipmap/ic_launcher"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="10dp">
<TextView
android:id="@+id/lbIDBph"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="00000"
android:visibility="gone"
android:textColor="@color/colorAccent"
android:textSize="17sp"
android:textStyle="bold" />
<TextView
android:id="@+id/lbIDPeriode"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="00000"
android:visibility="gone"
android:textColor="@color/colorAccent"
android:textSize="17sp"
android:textStyle="bold" />
<TextView
android:id="@+id/lbIDMahasiswa"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="00000"
android:visibility="gone"
android:textColor="@color/colorAccent"
android:textSize="17sp"
android:textStyle="bold" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="20dp"
android:orientation="horizontal">
<TextView
android:layout_width="50dp"
android:layout_height="20dp"
android:text="Nama:"/>
<TextView
android:id="@+id/lbNamaList"
android:layout_width="match_parent"
android:layout_height="20dp"
android:text="Nama : ABC" />
<View
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="20dp"
android:orientation="horizontal">
<TextView
android:layout_width="60dp"
android:layout_height="match_parent"
android:text="Jabatan:"/>
<TextView
android:id="@+id/lbJabatanList"
android:layout_width="match_parent"
android:layout_height="49dp"
android:text="Jabatan : ABC" />
<View
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</LinearLayout>
<TextView
android:id="@+id/lbUsernameList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
android:text="Username : ABC" />
<TextView
android:id="@+id/lbPasswordList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
android:text="Password : rv" />
<TextView
android:id="@+id/lbNimList"
android:visibility="gone"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Nim : rv" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="20dp"
android:orientation="horizontal">
<TextView
android:layout_width="50dp"
android:layout_height="20dp"
android:text="Kelas:"/>
<TextView
android:id="@+id/lbKelasList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Kelas : rv" />
<View
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="20dp"
android:orientation="horizontal">
<TextView
android:layout_width="50dp"
android:layout_height="20dp"
android:text="Angkatan:"/>
<TextView
android:id="@+id/lbAngkatanList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Angkatan : rv" />
<View
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</LinearLayout>
<TextView
android:id="@+id/lbAlamatList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
android:text="Alamat : rv" />
<TextView
android:id="@+id/lbEmailList"
android:layout_width="match_parent"
android:visibility="gone"
android:layout_height="wrap_content"
android:text="Email : rv" />
<TextView
android:id="@+id/lbStatmaList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
android:text="Status Mahasiswa : rv" />
<TextView
android:id="@+id/lbTelaList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
android:text="Tempat Lahir : rv" />
<TextView
android:id="@+id/lbTalaList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
android:text="Tanggal Lahir : rv" />
<TextView
android:id="@+id/lbRoleList"
android:layout_width="match_parent"
android:visibility="gone"
android:layout_height="wrap_content"
android:text="Role : rv" />
<TextView
android:id="@+id/lbPeawList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
android:text="Periode Awal : rv" />
<TextView
android:id="@+id/lbPeakList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
android:text="Role : rv" />
<TextView
android:id="@+id/lbStatpeList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
android:text="Status : rv" />
</LinearLayout>
</LinearLayout>
</android.support.v7.widget.CardView>
</LinearLayout>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<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"
xmlns:card_view="http://schemas.android.com/apk/res-auto"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:background="@color/grey"
tools:context=".Home.HomeFragment.HomeFragment">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="280dp"
android:background="@drawable/desain_home">
</LinearLayout>
<LinearLayout
android:id="@+id/layCard"
android:layout_marginTop="50dp"
android:layout_centerHorizontal="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<android.support.v7.widget.CardView
android:id="@+id/cardview"
android:layout_width="150dp"
android:layout_height="200dp"
android:layout_gravity="center"
android:elevation="4dp"
card_view:cardCornerRadius="5dp"
card_view:cardElevation="5dp"
card_view:cardUseCompatPadding="true">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<ImageView
android:layout_width="match_parent"
android:layout_height="150dp"
android:src="@drawable/person"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Mahasiswa"
android:textColor="#000"
android:textStyle="bold"
android:layout_marginTop="10dp"
android:gravity="center"/>
</LinearLayout>
</android.support.v7.widget.CardView>
<android.support.v7.widget.CardView
android:id="@+id/cardview2"
android:layout_width="150dp"
android:layout_height="200dp"
android:layout_gravity="center"
android:elevation="4dp"
card_view:cardCornerRadius="5dp"
card_view:cardElevation="5dp"
card_view:cardUseCompatPadding="true">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<ImageView
android:layout_width="match_parent"
android:layout_height="150dp"
android:src="@drawable/team"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="BHP HIMATIF"
android:textColor="#000"
android:textStyle="bold"
android:layout_marginTop="10dp"
android:gravity="center"/>
</LinearLayout>
</android.support.v7.widget.CardView>
</LinearLayout>
<RelativeLayout
android:layout_marginTop="40dp"
android:layout_below="@+id/layCard"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="5dp">
<LinearLayout
android:layout_marginTop="45dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/grad"
android:orientation="horizontal"
android:layout_margin="5dp">
<TextView
android:id="@+id/textToReg"
android:textStyle="bold"
android:textColor="#000"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Birthday"/>
</LinearLayout>
<android.support.v7.widget.RecyclerView
android:layout_marginTop="30dp"
android:id="@+id/recycler"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
app:layoutManager="android.support.v7.widget.LinearLayoutManager" />
<TextView
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:id="@+id/textError"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="No BirthDay To Load"/>
</RelativeLayout>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<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="600dp"
android:layout_margin="10dp"
tools:context=".Home.KegiatanFragment.KegiatanFragment">
<!-- TODO: Update blank fragment layout -->
<android.support.v7.widget.RecyclerView
android:id="@+id/sada"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/grey"/>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout 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"
tools:context=".Home.MahasiswaFragment"
android:background="@color/grey">
<!-- TODO: Update blank fragment layout -->
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="@string/hello_blank_fragment" />
</FrameLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="600dp"
android:background="@color/grey"
android:layout_margin="10dp"
tools:context=".Home.PengumumanFragment.PengumumanFragment">
<!-- TODO: Update blank fragment layout -->
<android.support.v7.widget.RecyclerView
android:id="@+id/dua"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="@string/hello_blank_fragment" />
</FrameLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<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"
tools:context=".Home.UserProfile.ProfileFragment">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<RelativeLayout
android:id="@+id/bola"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/grad">
<de.hdodenhof.circleimageview.CircleImageView
android:layout_width="wrap_content"
android:layout_height="100dp"
android:layout_centerHorizontal="true"
android:layout_marginTop="20dp"
android:id="@+id/imageUser"/>
</RelativeLayout>
<!-- <Button-->
<!-- android:layout_margin="5dp"-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="30dp"-->
<!-- android:text="Ubah Poto"-->
<!-- android:background="@color/colorPrimary"-->
<!-- android:layout_below="@+id/imageUser"-->
<!-- android:id="@+id/btnUpload"/>-->
<LinearLayout
android:id="@+id/linlay1"
android:layout_below="@id/bola"
android:orientation="horizontal"
android:padding="5dp"
android:layout_marginTop="10dp"
android:layout_width="match_parent"
android:layout_height="wrap_content">
</LinearLayout>
<RelativeLayout
android:layout_below="@id/linlay1"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:layout_marginLeft="30dp"
android:layout_marginRight="30dp"
android:layout_marginTop="20dp"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/tvNama"
android:text="Nama"
android:textColor="#000"
android:gravity="center"
android:textSize="16dp"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Email : "
android:textColor="@color/headings" />
<TextView
android:id="@+id/tvEmail"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="EmailUser"
android:textColor="#000"
android:textSize="16dp" />
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginTop="15dp"
android:background="@color/grey" />
</LinearLayout>
<LinearLayout
android:layout_marginTop="10dp"
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/headings"
android:textSize="13sp"
android:text="NIM"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Nim"
android:textColor="#000000"
android:textSize="18sp"
android:fontFamily="sans-serif-light"
android:id="@+id/nim"/>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginTop="15dp"
android:background="@color/grey" />
</LinearLayout>
<LinearLayout
android:layout_marginTop="10dp"
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/headings"
android:textSize="13sp"
android:text="Password : "/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Password"
android:fontFamily="sans-serif-light"
android:textColor="#000"
android:textSize="18sp"
android:id="@+id/tvPassword"/>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginTop="15dp"
android:background="@color/grey" />
</LinearLayout>
<LinearLayout
android:layout_marginTop="10dp"
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/headings"
android:textSize="13sp"
android:text="Kelas : "/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="kelas"
android:textColor="#000"
android:textSize="16dp"
android:id="@+id/tvKelas"/>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginTop="15dp"
android:background="@color/grey" />
</LinearLayout>
<LinearLayout
android:layout_marginTop="10dp"
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/headings"
android:text="Angkatan : "/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="UserID"
android:textColor="#000"
android:textSize="16dp"
android:id="@+id/tvAngkatan"/>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginTop="15dp"
android:background="@color/grey" />
</LinearLayout>
<LinearLayout
android:layout_marginTop="10dp"
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/headings"
android:text="Status Mahasiswa : "/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="UserID"
android:textColor="#000"
android:textSize="16dp"
android:id="@+id/tvStatma"/>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginTop="15dp"
android:background="@color/grey" />
</LinearLayout>
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Log Out"
android:id="@+id/logout"/>
</LinearLayout>
</RelativeLayout>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="600dp"
android:layout_margin="10dp"
tools:context=".Home.UangFragment.UangFragment">
<!-- TODO: Update blank fragment layout -->
<android.support.v7.widget.RecyclerView
android:id="@+id/tolu"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="@string/hello_blank_fragment" />
</FrameLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout 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"
tools:context=".Home.UserProfile.UserProfile">
<!-- TODO: Update blank fragment layout -->
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="@string/hello_blank_fragment" />
</FrameLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<android.support.v7.widget.CardView
android:id="@+id/detailKegiatan"
android:clickable="true"
android:foreground="?android:attr/selectableItemBackground"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="5dp"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:layout_marginTop="12dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="10dp">
<ImageView
android:id="@+id/lbImageList"
android:layout_width="match_parent"
android:layout_height="130dp"
android:layout_marginHorizontal="10dp"
android:scaleType="fitXY"
android:src="@mipmap/ic_launcher"/>
<TextView
android:visibility="gone"
android:id="@+id/lbIdList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="00000"
android:textColor="@color/colorAccent"
android:textSize="17sp"
android:textStyle="bold" />
<TextView
android:visibility="gone"
android:id="@+id/lbBPHList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="BPH : ABC" />
<TextView
android:visibility="gone"
android:id="@+id/lbPeriodeList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Periode : ABC" />
<TextView
android:id="@+id/lbNamaList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Nama Kegiatan : rv" />
<TextView
android:id="@+id/lbWaktuList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Waktu : rv" />
<TextView
android:id="@+id/lbTempatList"
android:layout_width="match_parent"
android:visibility="gone"
android:layout_height="wrap_content"
android:text="Tempat Kegiatan : rv" />
<TextView
android:visibility="gone"
android:id="@+id/lbDeskripsiList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Deskripsi Kegiatan : rv" />
<TextView
android:visibility="gone"
android:id="@+id/lbBerakhirList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Tanggal Berakhir : rv" />
<TextView
android:visibility="gone"
android:id="@+id/lbStatusList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Status Kegiatan : rv" />
<TextView
android:visibility="gone"
android:id="@+id/lbPenulisList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Penulis Kegiatan : rv" />
</LinearLayout>
</android.support.v7.widget.CardView>
</LinearLayout>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<android.support.v7.widget.CardView
android:id="@+id/masa"
android:clickable="true"
android:foreground="?android:attr/selectableItemBackground"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="5dp"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:layout_marginTop="12dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="180dp"
android:orientation="horizontal"
android:padding="10dp">
<ImageView
android:id="@+id/lbImageList"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_marginHorizontal="10dp"
android:src="@mipmap/ic_launcher"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:id="@+id/lbIDMahasiswa"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="00000"
android:textColor="@color/colorAccent"
android:visibility="gone"
android:textSize="17sp"
android:textStyle="bold" />
<TextView
android:id="@+id/lbNamaList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Nama : ABC" />
<TextView
android:id="@+id/lbUsernameList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
android:text="Username : ABC" />
<TextView
android:id="@+id/lbPasswordList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
android:text="Password : rv" />
<TextView
android:id="@+id/lbNimList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Nim : rv" />
<TextView
android:id="@+id/lbKelasList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Kelas : rv" />
<TextView
android:id="@+id/lbAngkatanList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Angkatan : rv" />
<TextView
android:id="@+id/lbAlamatList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Alamat : rv" />
<TextView
android:id="@+id/lbEmailList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
android:text="Email : rv" />
<TextView
android:id="@+id/lbStatmaList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Status Mahasiswa : rv" />
<TextView
android:id="@+id/lbTelaList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Tempat Lahir : rv" />
<TextView
android:id="@+id/lbTalaList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Tanggal Lahir : rv" />
<TextView
android:id="@+id/lbRoleList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
android:text="Role : rv" />
</LinearLayout>
</LinearLayout>
</android.support.v7.widget.CardView>
</LinearLayout>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:background="@color/grey"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<android.support.v7.widget.CardView
android:id="@+id/pengumumandetail"
android:clickable="true"
android:foreground="?android:attr/selectableItemBackground"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="5dp"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:layout_marginTop="12dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="10dp">
<ImageView
android:id="@+id/lbImageList"
android:layout_width="match_parent"
android:layout_height="130dp"
android:layout_marginHorizontal="10dp"
android:scaleType="fitXY"
android:src="@mipmap/ic_launcher"/>
<TextView
android:id="@+id/lbJudulList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Judul Pengumuman : rv" />
<TextView
android:id="@+id/lbWaktuakhirList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Tanggal Berakhir : rv" />
<TextView
android:id="@+id/lbIdList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
android:text="00000"
android:textColor="@color/colorAccent"
android:textSize="17sp"
android:textStyle="bold" />
<TextView
android:id="@+id/lbBPHList"
android:layout_width="match_parent"
android:visibility="gone"
android:layout_height="wrap_content"
android:text="BPH : ABC" />
<TextView
android:id="@+id/lbPeriodeList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
android:text="Periode : ABC" />
<TextView
android:id="@+id/lbDetailList"
android:layout_width="match_parent"
android:visibility="gone"
android:layout_height="wrap_content"
android:text="Detail Pengumuman : rv" />
</LinearLayout>
</android.support.v7.widget.CardView>
</LinearLayout>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:background="@color/grey"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<android.support.v7.widget.CardView
android:id="@+id/cvList"
android:clickable="true"
android:foreground="?android:attr/selectableItemBackground"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="5dp"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:layout_marginTop="12dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="10dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:visibility="gone"
android:id="@+id/lbIdList"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="00000"
android:textColor="@color/colorAccent"
android:textSize="17sp"
android:textStyle="bold" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:visibility="gone"
android:id="@+id/lbBPHList"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="BPH : ABC" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:visibility="gone"
android:id="@+id/lbPeriodeList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Periode : ABC" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Nama Pembayar:"/>
<TextView
android:id="@+id/lbNamaPembayarList"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Nama Pembayar : ABC" />
<View
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Jumlah Bayar: "/>
<TextView
android:id="@+id/lbJulbarList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Jumlah Bayar : Rp" />
<View
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/lbBuatList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
android:text="Tanggal Dibuat : ABC" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<!-- <TextView-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:text="Tanggal Berakhir: "/>-->
<TextView
android:id="@+id/lbAkhirList"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="gone"
android:text="Tanggal Berakhir : ABC" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Deskripsi Pemabayaran: "/>
<TextView
android:id="@+id/lbDeskripsiList"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Deskripsi Pembayaran : ABC" />
<View
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Status Pembayaran: "/>
<TextView
android:id="@+id/lbStatusList"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Status Pembayaran : ABC" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<!-- <TextView-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:text="mahasiswa Id: "/>-->
<TextView
android:visibility="gone"
android:id="@+id/lbIDMahasiswaList"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="ID Mahasiswa : ABC" />
</LinearLayout>
</LinearLayout>
</android.support.v7.widget.CardView>
</LinearLayout>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<set
xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/linear_interpolator"
android:fillAfter="true">
<translate
android:fromYDelta="100%"
android:toYDelta="-20%"
android:duration="300" />
<translate
android:startOffset="500"
android:fromYDelta="-20%"
android:toYDelta="10%"
android:duration="150" />
<translate
android:startOffset="1000"
android:fromYDelta="10%"
android:toYDelta="0"
android:duration="100" />
</set>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/linear_interpolator">
<alpha
android:duration="1000"
android:fromAlpha="0.1"
android:toAlpha="1.0" />
</set>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/linear_interpolator">
<alpha
android:duration="1000"
android:fromAlpha="1.0"
android:toAlpha="0.1" />
</set>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<rotate xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="1000"
android:fromDegrees="0"
android:interpolator="@android:anim/linear_interpolator"
android:pivotX="50%"
android:pivotY="50%"
android:startOffset="0"
android:toDegrees="360" />
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate
android:duration="1000"
android:fromYDelta="-100%"
android:toYDelta="0" />
</set>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate
android:duration="1000"
android:fromYDelta="0"
android:toYDelta="-100%" />
</set>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:fillAfter="true">
<scale xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="1000"
android:fromXScale="1"
android:fromYScale="1"
android:pivotX="50%"
android:pivotY="50%"
android:toXScale="1.5"
android:toYScale="1.5">
</scale>
</set>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:fillAfter="true" >
<scale
xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="1000"
android:fromXScale="1.0"
android:fromYScale="1.0"
android:pivotX="50%"
android:pivotY="50%"
android:toXScale="0.5"
android:toYScale="0.5" >
</scale>
</set>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval">
<solid android:color="@color/solidCircle" />
</shape>
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval">
<stroke
android:width="2dp"
android:color="@color/circleBorder" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="45"
android:endColor="@color/gradEnd"
android:startColor="@color/gradStart" />
</shape>
\ No newline at end of file
<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path
android:fillType="evenOdd"
android:pathData="M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z"
android:strokeWidth="1"
android:strokeColor="#00000000">
<aapt:attr name="android:fillColor">
<gradient
android:endX="78.5885"
android:endY="90.9159"
android:startX="48.7653"
android:startY="61.0927"
android:type="linear">
<item
android:color="#44000000"
android:offset="0.0" />
<item
android:color="#00000000"
android:offset="1.0" />
</gradient>
</aapt:attr>
</path>
<path
android:fillColor="#FFFFFF"
android:fillType="nonZero"
android:pathData="M66.94,46.02L66.94,46.02C72.44,50.07 76,56.61 76,64L32,64C32,56.61 35.56,50.11 40.98,46.06L36.18,41.19C35.45,40.45 35.45,39.3 36.18,38.56C36.91,37.81 38.05,37.81 38.78,38.56L44.25,44.05C47.18,42.57 50.48,41.71 54,41.71C57.48,41.71 60.78,42.57 63.68,44.05L69.11,38.56C69.84,37.81 70.98,37.81 71.71,38.56C72.44,39.3 72.44,40.45 71.71,41.19L66.94,46.02ZM62.94,56.92C64.08,56.92 65,56.01 65,54.88C65,53.76 64.08,52.85 62.94,52.85C61.8,52.85 60.88,53.76 60.88,54.88C60.88,56.01 61.8,56.92 62.94,56.92ZM45.06,56.92C46.2,56.92 47.13,56.01 47.13,54.88C47.13,53.76 46.2,52.85 45.06,52.85C43.92,52.85 43,53.76 43,54.88C43,56.01 43.92,56.92 45.06,56.92Z"
android:strokeWidth="1"
android:strokeColor="#00000000" />
</vector>
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient android:startColor="@color/colorPrimaryDark"
android:endColor="@color/colorPrimary"
android:angle="270"/>
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners
android:bottomRightRadius="100dp"
android:bottomLeftRadius="100dp"/>
<solid android:color="@color/gradEnd" />
<stroke
android:width="0dip"/>
<padding
android:bottom="0dp"
android:left="0dp"
android:right="0dp"
android:top="4dp" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<solid android:color="#ffffff"/>
<corners android:radius="16dp" />
<stroke
android:width="2dp"
android:color="#e0e0e0"
/>
</shape>
</item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path
android:fillColor="#008577"
android:pathData="M0,0h108v108h-108z" />
<path
android:fillColor="#00000000"
android:pathData="M9,0L9,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,0L19,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M29,0L29,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M39,0L39,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M49,0L49,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M59,0L59,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M69,0L69,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M79,0L79,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M89,0L89,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M99,0L99,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,9L108,9"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,19L108,19"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,29L108,29"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,39L108,39"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,49L108,49"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,59L108,59"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,69L108,69"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,79L108,79"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,89L108,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,99L108,99"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,29L89,29"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,39L89,39"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,49L89,49"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,59L89,59"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,69L89,69"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,79L89,79"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M29,19L29,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M39,19L39,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M49,19L49,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M59,19L59,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M69,19L69,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M79,19L79,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
</vector>
<?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:layout_margin="10dp"
android:background="@color/grey"
tools:context=".Home.BphActivity">
<android.support.v7.widget.RecyclerView
android:id="@+id/bph"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</RelativeLayout>
\ No newline at end of file
<?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:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:background="@color/grey"
tools:context=".CourseActivity">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/imageView"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:src="@drawable/danila" />
</RelativeLayout>
\ No newline at end of file
<?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/grey"
tools:context=".Home.ActivityDashboard">
</android.support.constraint.ConstraintLayout>
\ No newline at end of file
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment