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.core_classes; | |
import android.content.Context; | |
import android.graphics.Canvas; | |
import android.graphics.Color; | |
import android.graphics.Paint; | |
import android.graphics.Point; | |
import android.util.AttributeSet; | |
import android.view.MotionEvent; | |
import android.view.View; |
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
implementation 'androidx.palette:palette-ktx:1.0.0' |
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
/* | |
* Author Ikhlaq Yousuf Malik | |
* Created on 19-Nov-2022 | |
*/ | |
package com.maple.kashin.core | |
data class GenericResponse<T>(val data: T?, val success: Boolean, val message: 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
fun main() { | |
var a : Int = 100 // int | |
var name : String = "Muffakir Hamid" // string | |
var percentage : Float = 0.3f // float | |
var charValue : Char = 'y' // char | |
var isLoading : Boolean = true // boolean | |
val schoolName : String = "Salfiya High School" | |
a = 100 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:background="@drawable/bg_gradient" | |
android:orientation="vertical" | |
android:paddingHorizontal="40dp"> | |
<TextView | |
android:layout_width="match_parent" |
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); | |
} |
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); | |
} |
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
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() { |
OlderNewer