Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

likorn / quick_max

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • quick_max
  • ..
  • quickmax
  • ViewUtils.kt
Find file
BlameHistoryPermalink
  • likorn's avatar
    Changed the package name · 9c95e259
    likorn committed 5 years ago
    9c95e259
ViewUtils.kt 484 Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
package com.paktalin.quickmax

import android.content.Context
import android.view.View
import android.widget.FrameLayout
import android.widget.TextView
import androidx.core.content.ContextCompat
import com.google.android.material.card.MaterialCardView

fun getTextView(card: View): TextView {
    return  ((card as MaterialCardView).getChildAt(0) as FrameLayout).getChildAt(0) as TextView
}

fun color(context: Context, id: Int): Int {
    return ContextCompat.getColor(context, id)
}