Guest User

Untitled

a guest
Dec 9th, 2018
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.87 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:custom="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent">
  7.  
  8. <ImageButton
  9. android:id="@+id/num_pad_btn"
  10. android:layout_width="@dimen/call_button_width"
  11. android:layout_height="@dimen/call_button_height"
  12. android:layout_alignParentBottom="true"
  13. android:layout_centerHorizontal="true"
  14. android:layout_marginBottom="20dp"
  15. android:background="@drawable/circle_blue"
  16. android:src="@drawable/ic_dialpad_white_24dp"
  17. tools:ignore="ContentDescription" />
  18.  
  19. <LinearLayout
  20. android:id="@+id/number_pad"
  21. android:layout_width="match_parent"
  22. android:layout_height="wrap_content"
  23. android:layout_alignParentBottom="true"
  24. android:background="#FFF"
  25. android:orientation="vertical">
  26.  
  27. <com.github.ali.android.client.customview.view.PadLayout
  28. android:id="@+id/padLayout"
  29. style="@style/PadLayoutStyle.Animation"
  30. android:layout_width="match_parent"
  31. android:layout_height="320dp"
  32. custom:numColumns="3"
  33. custom:numRows="4">
  34.  
  35. <com.github.ali.android.client.customview.view.DialPadKey
  36. android:id="@+id/button1"
  37. style="@style/PadButtonStyle.Ripple"
  38. custom:letterGone="false"
  39. custom:numberText="1" />
  40.  
  41. <com.github.ali.android.client.customview.view.DialPadKey
  42. android:id="@+id/button2"
  43. style="@style/PadButtonStyle.Ripple"
  44. custom:letterText="ABC"
  45. custom:numberText="2" />
  46.  
  47. <com.github.ali.android.client.customview.view.DialPadKey
  48. android:id="@+id/button3"
  49. style="@style/PadButtonStyle.Ripple"
  50. custom:letterText="DEF"
  51. custom:numberText="3" />
  52.  
  53. <com.github.ali.android.client.customview.view.DialPadKey
  54. android:id="@+id/button4"
  55. style="@style/PadButtonStyle.Ripple"
  56. custom:letterText="GHI"
  57. custom:numberText="4" />
  58.  
  59. <com.github.ali.android.client.customview.view.DialPadKey
  60. android:id="@+id/button5"
  61. style="@style/PadButtonStyle.Ripple"
  62. custom:letterText="JKL"
  63. custom:numberText="5" />
  64.  
  65. <com.github.ali.android.client.customview.view.DialPadKey
  66. android:id="@+id/button6"
  67. style="@style/PadButtonStyle.Ripple"
  68. custom:letterText="MNO"
  69. custom:numberText="6" />
  70.  
  71. <com.github.ali.android.client.customview.view.DialPadKey
  72. android:id="@+id/button7"
  73. style="@style/PadButtonStyle.Ripple"
  74. custom:letterText="PQRS"
  75. custom:numberText="7" />
  76.  
  77. <com.github.ali.android.client.customview.view.DialPadKey
  78. android:id="@+id/button8"
  79. style="@style/PadButtonStyle.Ripple"
  80. custom:letterText="TUV"
  81. custom:numberText="8" />
  82.  
  83. <com.github.ali.android.client.customview.view.DialPadKey
  84. android:id="@+id/button9"
  85. style="@style/PadButtonStyle.Ripple"
  86. custom:letterText="WXYZ"
  87. custom:numberText="9" />
  88.  
  89. <com.github.ali.android.client.customview.view.DialPadKey
  90. android:id="@+id/button10"
  91. style="@style/PadButtonStyle.Ripple"
  92. custom:letterGone="false"
  93. custom:numberText="*" />
  94.  
  95. <com.github.ali.android.client.customview.view.DialPadKey
  96. android:id="@+id/button11"
  97. style="@style/PadButtonStyle.Ripple"
  98. custom:letterText="+"
  99. custom:numberText="0" />
  100.  
  101. <com.github.ali.android.client.customview.view.DialPadKey
  102. android:id="@+id/button12"
  103. style="@style/PadButtonStyle.Ripple"
  104. custom:letterGone="false"
  105. custom:numberText="#" />
  106.  
  107. </com.github.ali.android.client.customview.view.PadLayout>
  108.  
  109. <include
  110. layout="@layout/call_button"
  111. android:id="@+id/call_button"
  112. android:layout_width="@dimen/call_button_width"
  113. android:layout_height="@dimen/call_button_width"
  114. android:layout_gravity="center"
  115. android:layout_marginBottom="16dp" />
  116.  
  117. </LinearLayout>
  118.  
  119. </RelativeLayout>
  120.  
  121. <?xml version="1.0" encoding="utf-8"?>
  122. <!-- unbounded ripple effect ?android:attr/selectableItemBackgroundBorderless -->
  123. <ripple xmlns:android="http://schemas.android.com/apk/res/android"
  124. android:color="@color/dialpad_button_pressed" />
Add Comment
Please, Sign In to add comment