diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/views/PinTab.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/views/PinTab.kt index d7ab33618..b8eef638e 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/views/PinTab.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/views/PinTab.kt @@ -10,5 +10,30 @@ class PinTab(context: Context, attrs: AttributeSet) : RelativeLayout(context, at override fun onFinishInflate() { super.onFinishInflate() context.updateTextColors(pin_lock_holder) + + pin_0.setOnClickListener { addNumber(0) } + pin_1.setOnClickListener { addNumber(1) } + pin_2.setOnClickListener { addNumber(2) } + pin_3.setOnClickListener { addNumber(3) } + pin_4.setOnClickListener { addNumber(4) } + pin_5.setOnClickListener { addNumber(5) } + pin_6.setOnClickListener { addNumber(6) } + pin_7.setOnClickListener { addNumber(7) } + pin_8.setOnClickListener { addNumber(8) } + pin_9.setOnClickListener { addNumber(9) } + pin_c.setOnClickListener { clear() } + pin_ok.setOnClickListener { confirmPIN() } + } + + private fun addNumber(number: Int) { + + } + + private fun clear() { + + } + + private fun confirmPIN() { + } } diff --git a/app/src/main/res/layout/tab_pin.xml b/app/src/main/res/layout/tab_pin.xml index 91f41ae59..125bb7579 100644 --- a/app/src/main/res/layout/tab_pin.xml +++ b/app/src/main/res/layout/tab_pin.xml @@ -26,4 +26,136 @@ android:paddingTop="@dimen/small_margin" android:textSize="@dimen/big_text_size"/> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/values-v21/styles.xml b/app/src/main/res/values-v21/styles.xml index 11e77efc5..65e4ec22c 100644 --- a/app/src/main/res/values-v21/styles.xml +++ b/app/src/main/res/values-v21/styles.xml @@ -3,4 +3,9 @@ + + + diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index f730c8f58..bc2a7b38e 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -15,4 +15,15 @@ + + + + +