Add separator to preferences

This commit is contained in:
Moez Bhatti
2017-12-17 16:38:38 -05:00
parent 75f5a7b813
commit 9db72e7c0a
2 changed files with 35 additions and 21 deletions
@@ -26,6 +26,7 @@ class PreferenceView @JvmOverloads constructor(context: Context, attrs: Attribut
init {
View.inflate(context, R.layout.preference_view, this)
setBackgroundResource(R.drawable.ripple)
orientation = VERTICAL
context.obtainStyledAttributes(attrs, R.styleable.PreferenceView)?.run {
title = getString(R.styleable.PreferenceView_title)