Some fixes
This commit is contained in:
parent
019e494a53
commit
265035f9bf
3 changed files with 13 additions and 8 deletions
|
@ -26,7 +26,8 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="0.2"
|
android:layout_weight="0.2"
|
||||||
android:scaleType="fitEnd"
|
android:scaleType="fitXY"
|
||||||
|
android:adjustViewBounds="true"
|
||||||
android:src="@drawable/mark"
|
android:src="@drawable/mark"
|
||||||
android:visibility="invisible" />
|
android:visibility="invisible" />
|
||||||
|
|
||||||
|
@ -35,7 +36,8 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="0.2"
|
android:layout_weight="0.2"
|
||||||
android:scaleType="fitEnd"
|
android:scaleType="fitXY"
|
||||||
|
android:adjustViewBounds="true"
|
||||||
android:src="@drawable/mark"
|
android:src="@drawable/mark"
|
||||||
android:visibility="invisible" />
|
android:visibility="invisible" />
|
||||||
|
|
||||||
|
@ -44,7 +46,8 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="0.24"
|
android:layout_weight="0.24"
|
||||||
android:scaleType="fitEnd"
|
android:scaleType="fitXY"
|
||||||
|
android:adjustViewBounds="true"
|
||||||
android:src="@drawable/mark"
|
android:src="@drawable/mark"
|
||||||
android:visibility="invisible" />
|
android:visibility="invisible" />
|
||||||
|
|
||||||
|
@ -53,7 +56,8 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="0.2"
|
android:layout_weight="0.2"
|
||||||
android:scaleType="fitEnd"
|
android:scaleType="fitXY"
|
||||||
|
android:adjustViewBounds="true"
|
||||||
android:src="@drawable/mark"
|
android:src="@drawable/mark"
|
||||||
android:visibility="invisible" />
|
android:visibility="invisible" />
|
||||||
|
|
||||||
|
@ -62,7 +66,8 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="0.2"
|
android:layout_weight="0.2"
|
||||||
android:scaleType="fitEnd"
|
android:scaleType="fitXY"
|
||||||
|
android:adjustViewBounds="true"
|
||||||
android:src="@drawable/mark"
|
android:src="@drawable/mark"
|
||||||
android:visibility="invisible" />
|
android:visibility="invisible" />
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:background="@drawable/background"
|
android:background="@drawable/background"
|
||||||
android:orientation="vertical" >
|
android:orientation="vertical">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
|
|
@ -103,7 +103,7 @@ public class EditContactFragment extends Fragment {
|
||||||
lastName.addTextChangedListener(new TextWatcher() {
|
lastName.addTextChangedListener(new TextWatcher() {
|
||||||
@Override
|
@Override
|
||||||
public void onTextChanged(CharSequence s, int start, int before, int count) {
|
public void onTextChanged(CharSequence s, int start, int before, int count) {
|
||||||
if (lastName.getText().length() > 0) {
|
if (lastName.getText().length() > 0 || firstName.getText().length() > 0) {
|
||||||
ok.setEnabled(true);
|
ok.setEnabled(true);
|
||||||
} else {
|
} else {
|
||||||
ok.setEnabled(false);
|
ok.setEnabled(false);
|
||||||
|
@ -123,7 +123,7 @@ public class EditContactFragment extends Fragment {
|
||||||
firstName.addTextChangedListener(new TextWatcher() {
|
firstName.addTextChangedListener(new TextWatcher() {
|
||||||
@Override
|
@Override
|
||||||
public void onTextChanged(CharSequence s, int start, int before, int count) {
|
public void onTextChanged(CharSequence s, int start, int before, int count) {
|
||||||
if (firstName.getText().length() > 0) {
|
if (firstName.getText().length() > 0 || lastName.getText().length() > 0) {
|
||||||
ok.setEnabled(true);
|
ok.setEnabled(true);
|
||||||
} else {
|
} else {
|
||||||
ok.setEnabled(false);
|
ok.setEnabled(false);
|
||||||
|
|
Loading…
Reference in a new issue