This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.maple.kashin.learning | |
import androidx.appcompat.app.AppCompatActivity | |
import android.os.Bundle | |
import android.widget.ImageView | |
import com.bumptech.glide.Glide | |
import com.maple.kashin.databinding.ActivityGlideBinding | |
class Image(val imageUrl: String?, val ivServerImage: ImageView?) {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.maple.kashin.learning | |
import androidx.appcompat.app.AppCompatActivity | |
import android.os.Bundle | |
import com.bumptech.glide.Glide | |
import com.maple.kashin.databinding.ActivityImagesBinding | |
import com.maple.kashin.databinding.RowSingleImageBinding | |
class FollowingModel(val imageUrl: String?, val name: String?, val userName: String?) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.maple.kashin.learning | |
import android.content.Intent | |
import androidx.appcompat.app.AppCompatActivity | |
import android.os.Bundle | |
import android.widget.Toast | |
import com.bumptech.glide.Glide | |
import com.maple.kashin.databinding.ActivitySurferFirstBinding | |
import com.maple.kashin.databinding.RowSingleSurferPostBinding | |
import com.maple.kashin.databinding.RowSingleSurferStoryBinding |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.maple.kashin.learning | |
import androidx.appcompat.app.AppCompatActivity | |
import android.os.Bundle | |
import androidx.recyclerview.widget.LinearLayoutManager | |
import com.maple.kashin.databinding.ActivityRecylerViewBinding | |
import com.maple.kashin.learning.adapters.SurferPostsRecyclerViewAdapter | |
data class RecyclerViewSurferPost( | |
val profilePicUrl: String?, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.maple.kashin.learning.viewpagerAdapters | |
import androidx.fragment.app.Fragment | |
import androidx.fragment.app.FragmentActivity | |
import androidx.viewpager2.adapter.FragmentStateAdapter | |
class MyFragmentPagerAdapter(fragmentActivity: FragmentActivity) : FragmentStateAdapter(fragmentActivity) { | |
private var fragments : ArrayList<Fragment> = arrayListOf<Fragment>() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.maple.kashin.learning | |
import androidx.appcompat.app.AppCompatActivity | |
import android.os.Bundle | |
import android.text.Html | |
import android.util.Log | |
import android.widget.Toast | |
import com.maple.kashin.databinding.ActivityChapterInfoBinding | |
import com.maple.kashin.learning.models.ChapterInfo | |
import com.maple.kashin.learning.models.QuranicChapterInfoResponseModel |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.maple.kashin.learning.recyclerview_learning | |
import androidx.appcompat.app.AppCompatActivity | |
import android.os.Bundle | |
import androidx.recyclerview.widget.LinearLayoutManager | |
import com.maple.kashin.databinding.ActivityFaheemRvactivityBinding | |
import com.maple.kashin.learning.recyclerview_learning.adapters.FaheemRecyclerViewLearningAdapter | |
import com.maple.kashin.learning.recyclerview_learning.models.NewsPost | |
class FaheemRVActivity : AppCompatActivity() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.HashSet; | |
class DuplicateInList { | |
public static boolean doDuplicateExists(int[] arr){ | |
HashSet<Integer> numbers = new HashSet<Integer>(); | |
for(int i=0; i<arr.length; i++){ | |
if(numbers.contains(arr[i])){ | |
return true; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CountArmStrongNumbers { | |
public static int countArmStrongNumbers(int start, int range){ | |
int count = 0; | |
for(int i=start; i<range; i++){ | |
if(isArmsStrongNumberMyWAy(extractIndividualDigits(i), i)){ | |
count++; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) { | |
super.onActivityResult(requestCode, resultCode, data) | |
} | |
override fun onResume() { | |
super.onResume() | |
when (getUpdateType()) { | |
AppUpdateType.FLEXIBLE -> setupFlexibleUpdateSuccessListener() | |
AppUpdateType.IMMEDIATE -> setupImmediateUpdateSuccessListener() | |
} |