Skip to content

Commit 80e0576

Browse files
committed
increased text size of button texts
1 parent bc99c26 commit 80e0576

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

app/src/main/java/com/soobakjonmat/customlayoutkeyboard/layout/PhoneNumberLayout.kt

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.soobakjonmat.customlayoutkeyboard.layout
22

3+
import android.util.TypedValue
34
import android.view.ContextThemeWrapper
45
import android.view.inputmethod.EditorInfo
56
import android.widget.Button
@@ -13,11 +14,12 @@ import com.soobakjonmat.customlayoutkeyboard.R
1314
class PhoneNumberLayout (private val mainKeyboardService: MainKeyboardService) {
1415
private val phoneNumKeyboardView = mainKeyboardService.phoneNumKeyboardView
1516

16-
private val row1Letters = listOf("1", "2", "3", "(", ")")
17-
private val row2Letters = listOf("4", "5", "6", "+", "-")
18-
private val row3Letters = listOf("7", "8", "9", "." /*delete*/)
19-
private val row4Letters = listOf("*", "0", "#", "" /*enter*/)
20-
private val letterList = listOf(row1Letters, row2Letters, row3Letters, row4Letters)
17+
private val letterList = listOf(
18+
listOf("1", "2", "3", "(", ")"),
19+
listOf("4", "5", "6", "+", "-"),
20+
listOf("7", "8", "9", "." /*delete*/),
21+
listOf("*", "0", "#", "" /*enter*/)
22+
)
2123

2224
private val btnList = mutableListOf<List<Button>>()
2325

@@ -38,6 +40,7 @@ class PhoneNumberLayout (private val mainKeyboardService: MainKeyboardService) {
3840
)
3941
for (j in letterList[i].indices) {
4042
btnList[i][j].text = letterList[i][j]
43+
btnList[i][j].setTextSize(TypedValue.COMPLEX_UNIT_SP, 30f)
4144
btnList[i][j].layoutParams = LinearLayout.LayoutParams(
4245
0,
4346
LinearLayout.LayoutParams.MATCH_PARENT,

0 commit comments

Comments
 (0)