Added view to display hex code and edit manually

This commit is contained in:
Moez Bhatti
2016-07-08 02:07:13 -10:00
parent 5637c79307
commit b500228b66
4 changed files with 92 additions and 27 deletions
+4 -16
View File
@@ -1,21 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:id="@+id/edittext_background">
<shape android:shape="rectangle" >
<solid android:color="@color/red_light" />
<padding android:bottom="1dp" />
</shape>
</item>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle" >
<solid android:color="@color/white_pure"/>
<padding android:bottom="4dp"
android:left="4dp"
android:right="4dp"
android:top="4dp" />
<shape android:shape="rectangle">
<solid android:color="@color/white_pure" />
<corners android:radius="2dp" />
</shape>
</item>
</layer-list>
@@ -161,6 +161,46 @@
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:focusableInTouchMode="true"
android:gravity="center_vertical">
<com.moez.QKSMS.ui.view.QKTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="16dp"
android:text="@string/hint_hex"
app:type="primary" />
<com.moez.QKSMS.ui.view.QKEditText
android:id="@+id/hex"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:background="@drawable/edittext"
android:digits="1234567890abcdef"
android:imeOptions="actionDone"
android:lines="1"
android:maxLength="6"
android:paddingBottom="8dp"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:paddingTop="8dp"
android:selectAllOnFocus="true"
android:singleLine="true" />
<ImageView
android:id="@+id/error"
android:layout_width="24dp"
android:layout_height="24dp"
android:src="@drawable/ic_error"
android:visibility="invisible" />
</LinearLayout>
</LinearLayout>
</android.support.v4.view.ViewPager>
+1
View File
@@ -19,6 +19,7 @@
<string name="hint_reply">Enter a message</string>
<!--Hint for code redemption-->
<string name="hint_redeem">Enter code</string>
<string name="hint_hex">Hex</string>
<!--Text shown for single new message in notification-->
<string name="new_message">New message</string>