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.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 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 | |
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 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 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.akhteakh.akhteakh.splash | |
import androidx.appcompat.app.AppCompatActivity | |
import android.os.Bundle | |
import android.widget.Toast | |
import com.akhteakh.akhteakh.databinding.ActivityBottomSheetLearningBinding | |
import com.akhteakh.akhteakh.databinding.BottomSheetLayoutBinding | |
import com.google.android.material.bottomsheet.BottomSheetDialog | |
class BottomSheetLearningActivity : 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
<uses-permission android:name="android.permission.VIBRATE" /> |
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
private lateinit var vibrator: Vibrator | |
vibrator = getSystemService(Context.VIBRATOR_SERVICE) as Vibrator | |
private fun vibrate() { | |
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { | |
vibrator.vibrate(VibrationEffect.createOneShot(500, VibrationEffect.DEFAULT_AMPLITUDE)); | |
} else { | |
vibrator.vibrate(500); | |
} |