Commit d767a89a authored by Grigory Fedorov's avatar Grigory Fedorov

AccountInfoEditorFragment: account jabber id shown on the top.

parent 170b52b2
...@@ -97,6 +97,7 @@ public class AccountInfoEditorFragment extends Fragment implements OnVCardSaveLi ...@@ -97,6 +97,7 @@ public class AccountInfoEditorFragment extends Fragment implements OnVCardSaveLi
private Uri photoFileUri; private Uri photoFileUri;
private boolean removeAvatarFlag = false; private boolean removeAvatarFlag = false;
private View birthDateRemoveButton; private View birthDateRemoveButton;
private TextView account_jid;
interface Listener { interface Listener {
void onVCardSavingStarted(); void onVCardSavingStarted();
...@@ -147,7 +148,7 @@ public class AccountInfoEditorFragment extends Fragment implements OnVCardSaveLi ...@@ -147,7 +148,7 @@ public class AccountInfoEditorFragment extends Fragment implements OnVCardSaveLi
progressBar = view.findViewById(R.id.vcard_save_progress_bar); progressBar = view.findViewById(R.id.vcard_save_progress_bar);
avatarSize = (TextView) view.findViewById(R.id.vcard_avatar_size_text_view); account_jid = (TextView) view.findViewById(R.id.vcard_jid);
prefixName = (EditText) view.findViewById(R.id.vcard_prefix_name); prefixName = (EditText) view.findViewById(R.id.vcard_prefix_name);
formattedName = (EditText) view.findViewById(R.id.vcard_formatted_name); formattedName = (EditText) view.findViewById(R.id.vcard_formatted_name);
...@@ -158,6 +159,7 @@ public class AccountInfoEditorFragment extends Fragment implements OnVCardSaveLi ...@@ -158,6 +159,7 @@ public class AccountInfoEditorFragment extends Fragment implements OnVCardSaveLi
nickName = (EditText) view.findViewById(R.id.vcard_nickname); nickName = (EditText) view.findViewById(R.id.vcard_nickname);
avatar = (ImageView) view.findViewById(R.id.vcard_avatar); avatar = (ImageView) view.findViewById(R.id.vcard_avatar);
avatarSize = (TextView) view.findViewById(R.id.vcard_avatar_size_text_view);
changeAvatarButton = view.findViewById(R.id.vcard_change_avatar); changeAvatarButton = view.findViewById(R.id.vcard_change_avatar);
changeAvatarButton.setOnClickListener(new View.OnClickListener() { changeAvatarButton.setOnClickListener(new View.OnClickListener() {
@Override @Override
...@@ -231,6 +233,8 @@ public class AccountInfoEditorFragment extends Fragment implements OnVCardSaveLi ...@@ -231,6 +233,8 @@ public class AccountInfoEditorFragment extends Fragment implements OnVCardSaveLi
} }
private void setFieldsFromVCard() { private void setFieldsFromVCard() {
account_jid.setText(Jid.getBareAddress(account));
formattedName.setText(vCard.getField(VCardProperty.FN.name())); formattedName.setText(vCard.getField(VCardProperty.FN.name()));
prefixName.setText(vCard.getPrefix()); prefixName.setText(vCard.getPrefix());
givenName.setText(vCard.getFirstName()); givenName.setText(vCard.getFirstName());
......
...@@ -5,505 +5,545 @@ ...@@ -5,505 +5,545 @@
android:layout_height="match_parent" android:layout_height="match_parent"
> >
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/vcard_fields_layout"
>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="match_parent">
android:minHeight="72dp"
>
<ImageView
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_marginLeft="16dp"
android:layout_marginRight="32dp"
android:layout_marginTop="24dp"
android:src="@drawable/ic_vcard_contact_info_24dp"
/>
<LinearLayout <LinearLayout
android:orientation="vertical"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical" android:id="@+id/vcard_fields_layout"
android:layout_marginRight="16dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
> >
<EditText <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/vcard_formatted_name" android:minHeight="72dp"
android:layout_gravity="center_vertical" >
android:id="@+id/vcard_formatted_name"
android:singleLine="true"
/>
<ImageView
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_marginLeft="16dp"
android:layout_marginRight="32dp"
android:layout_marginTop="24dp"
android:src="@drawable/ic_vcard_xmpp_24dp"
/>
<EditText <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/vcard_prefix_name" android:orientation="vertical"
android:layout_gravity="center_vertical" android:layout_marginRight="16dp"
android:id="@+id/vcard_prefix_name" android:layout_marginTop="8dp"
android:singleLine="true" android:layout_marginBottom="8dp"
/> >
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:id="@+id/vcard_jid"
android:singleLine="true"
android:text="@string/name_example_com"
android:textAppearance="?android:textAppearanceMedium"
android:textColor="?android:attr/textColorPrimary"
android:paddingLeft="4dp"
android:paddingTop="12dp"
/>
</LinearLayout>
</LinearLayout>
<EditText <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/vcard_given_name" android:minHeight="72dp"
android:layout_gravity="center_vertical" >
android:id="@+id/vcard_given_name"
android:singleLine="true"
/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/vcard_middle_name"
android:layout_gravity="center_vertical"
android:id="@+id/vcard_middle_name"
android:singleLine="true"
/>
<ImageView
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_marginLeft="16dp"
android:layout_marginRight="32dp"
android:layout_marginTop="24dp"
android:src="@drawable/ic_vcard_contact_info_24dp"
/>
<EditText <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/vcard_family_name" android:orientation="vertical"
android:layout_gravity="center_vertical" android:layout_marginRight="16dp"
android:id="@+id/vcard_family_name" android:layout_marginTop="8dp"
android:singleLine="true" android:layout_marginBottom="8dp"
/>
>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/vcard_formatted_name"
android:layout_gravity="center_vertical"
android:id="@+id/vcard_formatted_name"
android:singleLine="true"
/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/vcard_prefix_name"
android:layout_gravity="center_vertical"
android:id="@+id/vcard_prefix_name"
android:singleLine="true"
/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/vcard_given_name"
android:layout_gravity="center_vertical"
android:id="@+id/vcard_given_name"
android:singleLine="true"
/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/vcard_middle_name"
android:layout_gravity="center_vertical"
android:id="@+id/vcard_middle_name"
android:singleLine="true"
/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/vcard_family_name"
android:layout_gravity="center_vertical"
android:id="@+id/vcard_family_name"
android:singleLine="true"
/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/vcard_suffix_name"
android:layout_gravity="center_vertical"
android:id="@+id/vcard_suffix_name"
android:singleLine="true"
/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/vcard_nick_name"
android:layout_gravity="center_vertical"
android:id="@+id/vcard_nickname"
android:singleLine="true"
/>
</LinearLayout>
<EditText </LinearLayout>
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/vcard_suffix_name"
android:layout_gravity="center_vertical"
android:id="@+id/vcard_suffix_name"
android:singleLine="true"
/>
<EditText <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/vcard_nick_name" android:minHeight="72dp"
android:layout_gravity="center_vertical"
android:id="@+id/vcard_nickname"
android:singleLine="true"
/>
</LinearLayout>
</LinearLayout>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="72dp"
>
<ImageView
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_marginLeft="16dp"
android:layout_marginRight="32dp"
android:layout_marginTop="24dp"
android:src="@drawable/ic_camera_grey600_24dp"
/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginRight="16dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
>
<ImageView
android:id="@+id/vcard_avatar"
android:layout_width="@dimen/avatar_large_size"
android:layout_height="@dimen/avatar_large_size"
android:src="@drawable/ic_avatar_1" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
> >
<Button <ImageView
android:layout_width="wrap_content" android:layout_width="24dp"
android:layout_height="wrap_content" android:layout_height="24dp"
android:text="@string/change" android:layout_marginLeft="16dp"
android:id="@+id/vcard_change_avatar" android:layout_marginRight="32dp"
android:layout_marginLeft="44dp" android:layout_marginTop="24dp"
android:layout_gravity="top" /> android:src="@drawable/ic_camera_grey600_24dp"
<TextView
android:layout_marginLeft="56dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/vcard_avatar_size_text_view"
android:singleLine="true"
android:textAppearance="?android:attr/textAppearanceSmall"
android:text="173KB"
android:visibility="invisible"
/> />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginRight="16dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
>
<ImageView
android:id="@+id/vcard_avatar"
android:layout_width="@dimen/avatar_large_size"
android:layout_height="@dimen/avatar_large_size"
android:src="@drawable/ic_avatar_1" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/change"
android:id="@+id/vcard_change_avatar"
android:layout_marginLeft="44dp"
android:layout_gravity="top" />
<TextView
android:layout_marginLeft="56dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/vcard_avatar_size_text_view"
android:singleLine="true"
android:textAppearance="?android:attr/textAppearanceSmall"
android:text="173KB"
android:visibility="invisible"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout> </LinearLayout>
</LinearLayout> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
</LinearLayout> android:orientation="horizontal"
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="72dp"
>
<ImageView
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_marginLeft="16dp"
android:layout_marginRight="32dp"
android:layout_marginTop="24dp"
android:src="@drawable/ic_vcard_birthday_24dp"
/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginRight="16dp"
android:layout_marginTop="12dp"
android:layout_marginBottom="8dp"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:hint="@string/vcard_birth_date"
android:layout_gravity="center_vertical"
android:id="@+id/vcard_birth_date"
android:singleLine="true"
android:textAppearance="?android:attr/textAppearanceMedium"
android:inputType="date"
android:paddingLeft="4dp"
android:paddingRight="8dp"
android:paddingTop="8dp"
android:paddingBottom="8dp"
android:background="@drawable/ripple_background"
/>
<ImageButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_close_circle_grey600_24dp"
android:padding="8dp"
android:background="@drawable/ripple_background"
android:id="@+id/vcard_birth_date_remove_button"
/>
</LinearLayout>
</LinearLayout>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="72dp"
>
<ImageView
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_marginLeft="16dp"
android:layout_marginRight="32dp"
android:layout_marginTop="24dp"
android:src="@drawable/ic_vcard_job_title_24dp"
/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginRight="16dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
>
<EditText
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/vcard_title" android:minHeight="72dp"
android:layout_gravity="center_vertical" >
android:id="@+id/vcard_title" <ImageView
android:singleLine="true" android:layout_width="24dp"
/> android:layout_height="24dp"
android:layout_marginLeft="16dp"
<EditText android:layout_marginRight="32dp"
android:layout_width="match_parent" android:layout_marginTop="24dp"
android:layout_height="wrap_content" android:src="@drawable/ic_vcard_birthday_24dp"
android:hint="@string/vcard_role" />
android:layout_gravity="center_vertical"
android:id="@+id/vcard_role"
android:singleLine="true"
/>
<EditText <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/vcard_organization" android:orientation="horizontal"
android:layout_gravity="center_vertical" android:layout_marginRight="16dp"
android:id="@+id/vcard_organization_name" android:layout_marginTop="12dp"
android:singleLine="true" android:layout_marginBottom="8dp"
/>
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:hint="@string/vcard_birth_date"
android:layout_gravity="center_vertical"
android:id="@+id/vcard_birth_date"
android:singleLine="true"
android:textAppearance="?android:attr/textAppearanceMedium"
android:inputType="date"
android:paddingLeft="4dp"
android:paddingRight="8dp"
android:paddingTop="8dp"
android:paddingBottom="8dp"
android:background="@drawable/ripple_background"
/>
<ImageButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_close_circle_grey600_24dp"
android:padding="8dp"
android:background="@drawable/ripple_background"
android:id="@+id/vcard_birth_date_remove_button"
/>
</LinearLayout>
</LinearLayout>
<EditText <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/vcard_organization_unit" android:minHeight="72dp"
android:layout_gravity="center_vertical" >
android:id="@+id/vcard_organization_unit"
android:singleLine="true"
/>
</LinearLayout>
</LinearLayout>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="72dp"
>
<ImageView
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_marginLeft="16dp"
android:layout_marginRight="32dp"
android:layout_marginTop="24dp"
android:src="@drawable/ic_vcard_web_24dp"
/>
<LinearLayout <ImageView
android:layout_width="match_parent" android:layout_width="24dp"
android:layout_height="wrap_content" android:layout_height="24dp"
android:orientation="vertical" android:layout_marginLeft="16dp"
android:layout_marginRight="16dp" android:layout_marginRight="32dp"
android:layout_marginTop="8dp" android:layout_marginTop="24dp"
android:layout_marginBottom="8dp" android:src="@drawable/ic_vcard_job_title_24dp"
/>
>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/vcard_url"
android:layout_gravity="center_vertical"
android:id="@+id/vcard_url"
android:singleLine="true"
android:inputType="textUri" />
</LinearLayout>
</LinearLayout>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout
android:orientation="horizontal" android:layout_width="match_parent"
android:layout_width="match_parent" android:layout_height="wrap_content"
android:layout_height="wrap_content" android:orientation="vertical"
android:minHeight="72dp" android:layout_marginRight="16dp"
> android:layout_marginTop="8dp"
<ImageView android:layout_marginBottom="8dp"
android:layout_width="24dp"
android:layout_height="24dp" >
android:layout_marginLeft="16dp"
android:layout_marginRight="32dp" <EditText
android:layout_marginTop="24dp" android:layout_width="match_parent"
android:src="@drawable/ic_vcard_notes_24dp" android:layout_height="wrap_content"
/> android:hint="@string/vcard_title"
android:layout_gravity="center_vertical"
android:id="@+id/vcard_title"
android:singleLine="true"
/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/vcard_role"
android:layout_gravity="center_vertical"
android:id="@+id/vcard_role"
android:singleLine="true"
/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/vcard_organization"
android:layout_gravity="center_vertical"
android:id="@+id/vcard_organization_name"
android:singleLine="true"
/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/vcard_organization_unit"
android:layout_gravity="center_vertical"
android:id="@+id/vcard_organization_unit"
android:singleLine="true"
/>
</LinearLayout>
<LinearLayout </LinearLayout>
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginRight="16dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<EditText android:orientation="horizontal"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/vcard_decsription" android:minHeight="72dp"
android:layout_gravity="center_vertical" >
android:id="@+id/vcard_decsription"
android:singleLine="true"
/>
</LinearLayout>
</LinearLayout>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="72dp"
>
<ImageView
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_marginLeft="16dp"
android:layout_marginRight="32dp"
android:layout_marginTop="24dp"
android:src="@drawable/ic_vcard_phone_24dp"
/>
<LinearLayout <ImageView
android:layout_width="match_parent" android:layout_width="24dp"
android:layout_height="wrap_content" android:layout_height="24dp"
android:orientation="vertical" android:layout_marginLeft="16dp"
android:layout_marginRight="16dp" android:layout_marginRight="32dp"
android:layout_marginTop="8dp" android:layout_marginTop="24dp"
android:layout_marginBottom="8dp" android:src="@drawable/ic_vcard_web_24dp"
/>
> <LinearLayout
<EditText android:layout_width="match_parent"
android:layout_width="match_parent" android:layout_height="wrap_content"
android:layout_height="wrap_content" android:orientation="vertical"
android:hint="@string/vcard_telephone" android:layout_marginRight="16dp"
android:layout_gravity="center_vertical" android:layout_marginTop="8dp"
android:id="@+id/vcard_phone_home" android:layout_marginBottom="8dp"
android:inputType="phone"
android:singleLine="true" >
/> <EditText
<TextView android:layout_width="match_parent"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_height="wrap_content" android:hint="@string/vcard_url"
android:textColor="?android:attr/textColorSecondary" android:layout_gravity="center_vertical"
android:id="@+id/vcard_url"
android:singleLine="true"
android:inputType="textUri" />
</LinearLayout>
android:singleLine="true" </LinearLayout>
android:text="@string/vcard_type_home"
/>
<EditText <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/vcard_telephone" android:minHeight="72dp"
android:layout_gravity="center_vertical" >
android:id="@+id/vcard_phone_work" <ImageView
android:inputType="phone" android:layout_width="24dp"
android:singleLine="true" android:layout_height="24dp"
/> android:layout_marginLeft="16dp"
<TextView android:layout_marginRight="32dp"
android:layout_width="wrap_content" android:layout_marginTop="24dp"
android:layout_height="wrap_content" android:src="@drawable/ic_vcard_notes_24dp"
android:textColor="?android:attr/textColorSecondary" />
android:singleLine="true"
android:text="@string/vcard_type_work"
/>
</LinearLayout>
</LinearLayout>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout
android:orientation="horizontal" android:layout_width="match_parent"
android:layout_width="match_parent" android:layout_height="wrap_content"
android:layout_height="wrap_content" android:orientation="vertical"
android:minHeight="72dp" android:layout_marginRight="16dp"
> android:layout_marginTop="8dp"
<ImageView android:layout_marginBottom="8dp"
android:layout_width="24dp"
android:layout_height="24dp" >
android:layout_marginLeft="16dp" <EditText
android:layout_marginRight="32dp" android:layout_width="match_parent"
android:layout_marginTop="24dp" android:layout_height="wrap_content"
android:src="@drawable/ic_vcard_email_24dp" android:hint="@string/vcard_decsription"
/> android:layout_gravity="center_vertical"
android:id="@+id/vcard_decsription"
android:singleLine="true"
/>
</LinearLayout>
<LinearLayout </LinearLayout>
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginRight="16dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<EditText android:orientation="horizontal"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/vcard_email" android:minHeight="72dp"
android:layout_gravity="center_vertical" >
android:id="@+id/vcard_email_home" <ImageView
android:inputType="textEmailAddress" android:layout_width="24dp"
android:singleLine="true" android:layout_height="24dp"
/> android:layout_marginLeft="16dp"
<TextView android:layout_marginRight="32dp"
android:layout_width="wrap_content" android:layout_marginTop="24dp"
android:layout_height="wrap_content" android:src="@drawable/ic_vcard_phone_24dp"
android:textColor="?android:attr/textColorSecondary" />
android:singleLine="true" <LinearLayout
android:text="@string/vcard_type_home" android:layout_width="match_parent"
/> android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginRight="16dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/vcard_telephone"
android:layout_gravity="center_vertical"
android:id="@+id/vcard_phone_home"
android:inputType="phone"
android:singleLine="true"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="?android:attr/textColorSecondary"
android:singleLine="true"
android:text="@string/vcard_type_home"
/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/vcard_telephone"
android:layout_gravity="center_vertical"
android:id="@+id/vcard_phone_work"
android:inputType="phone"
android:singleLine="true"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="?android:attr/textColorSecondary"
android:singleLine="true"
android:text="@string/vcard_type_work"
/>
</LinearLayout>
</LinearLayout>
<EditText <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/vcard_email" android:minHeight="72dp"
android:layout_gravity="center_vertical" >
android:id="@+id/vcard_email_work" <ImageView
android:inputType="textEmailAddress" android:layout_width="24dp"
android:singleLine="true" android:layout_height="24dp"
/> android:layout_marginLeft="16dp"
<TextView android:layout_marginRight="32dp"
android:layout_width="wrap_content" android:layout_marginTop="24dp"
android:layout_height="wrap_content" android:src="@drawable/ic_vcard_email_24dp"
android:textColor="?android:attr/textColorSecondary" />
android:singleLine="true"
android:text="@string/vcard_type_work"
/>
</LinearLayout> <LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginRight="16dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/vcard_email"
android:layout_gravity="center_vertical"
android:id="@+id/vcard_email_home"
android:inputType="textEmailAddress"
android:singleLine="true"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="?android:attr/textColorSecondary"
android:singleLine="true"
android:text="@string/vcard_type_home"
/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/vcard_email"
android:layout_gravity="center_vertical"
android:id="@+id/vcard_email_work"
android:inputType="textEmailAddress"
android:singleLine="true"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="?android:attr/textColorSecondary"
android:singleLine="true"
android:text="@string/vcard_type_work"
/>
</LinearLayout>
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>
</ScrollView> </ScrollView>
<ProgressBar <ProgressBar
android:layout_width="wrap_content" android:layout_width="wrap_content"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment