Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Commit

Permalink
added new library methods
Browse files Browse the repository at this point in the history
  • Loading branch information
cyb3rko committed Aug 31, 2020
1 parent 3f7d75a commit c3b5b89
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions library/src/main/java/com/cyb3rko/abouticons/AboutIcons.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import android.annotation.SuppressLint
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.widget.LinearLayout
import android.widget.TextView

import androidx.recyclerview.widget.GridLayoutManager
Expand Down Expand Up @@ -78,8 +79,22 @@ class AboutIcons(private val appContext: Context, private val drawableClass: Cla
}

fun setTitle(customTitle: String): AboutIcons {
val titleView: TextView = view.findViewById(R.id.title_view)
titleView.text = customTitle
view.findViewById<TextView>(R.id.title_view).text = customTitle
return this
}

fun setTitleSize(customSize: Float): AboutIcons {
view.findViewById<TextView>(R.id.title_view).textSize = customSize
return this
}

fun setModificationTitle(customTitle: String): AboutIcons {
view.findViewById<TextView>(R.id.modified_text).text = customTitle
return this
}

fun setModificationTitleSize(customSize: Float): AboutIcons {
view.findViewById<TextView>(R.id.modified_text).textSize = customSize
return this
}

Expand Down

0 comments on commit c3b5b89

Please sign in to comment.