Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xabber-android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
xabber-android
Commits
d767a89a
Commit
d767a89a
authored
Aug 06, 2015
by
Grigory Fedorov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AccountInfoEditorFragment: account jabber id shown on the top.
parent
170b52b2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
480 additions
and
436 deletions
+480
-436
AccountInfoEditorFragment.java
...java/com/xabber/android/ui/AccountInfoEditorFragment.java
+5
-1
account_info_editor_fragment.xml
app/src/main/res/layout/account_info_editor_fragment.xml
+475
-435
No files found.
app/src/main/java/com/xabber/android/ui/AccountInfoEditorFragment.java
View file @
d767a89a
...
...
@@ -97,6 +97,7 @@ public class AccountInfoEditorFragment extends Fragment implements OnVCardSaveLi
private
Uri
photoFileUri
;
private
boolean
removeAvatarFlag
=
false
;
private
View
birthDateRemoveButton
;
private
TextView
account_jid
;
interface
Listener
{
void
onVCardSavingStarted
();
...
...
@@ -147,7 +148,7 @@ public class AccountInfoEditorFragment extends Fragment implements OnVCardSaveLi
progressBar
=
view
.
findViewById
(
R
.
id
.
vcard_save_progress_bar
);
a
vatarSize
=
(
TextView
)
view
.
findViewById
(
R
.
id
.
vcard_avatar_size_text_view
);
a
ccount_jid
=
(
TextView
)
view
.
findViewById
(
R
.
id
.
vcard_jid
);
prefixName
=
(
EditText
)
view
.
findViewById
(
R
.
id
.
vcard_prefix_name
);
formattedName
=
(
EditText
)
view
.
findViewById
(
R
.
id
.
vcard_formatted_name
);
...
...
@@ -158,6 +159,7 @@ public class AccountInfoEditorFragment extends Fragment implements OnVCardSaveLi
nickName
=
(
EditText
)
view
.
findViewById
(
R
.
id
.
vcard_nickname
);
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
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
...
...
@@ -231,6 +233,8 @@ public class AccountInfoEditorFragment extends Fragment implements OnVCardSaveLi
}
private
void
setFieldsFromVCard
()
{
account_jid
.
setText
(
Jid
.
getBareAddress
(
account
));
formattedName
.
setText
(
vCard
.
getField
(
VCardProperty
.
FN
.
name
()));
prefixName
.
setText
(
vCard
.
getPrefix
());
givenName
.
setText
(
vCard
.
getFirstName
());
...
...
app/src/main/res/layout/account_info_editor_fragment.xml
View file @
d767a89a
...
...
@@ -5,16 +5,57 @@
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"
<LinearLayout
android:orientation=
"vertical"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
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_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_xmpp_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"
>
<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>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:orientation=
"horizontal"
...
...
@@ -112,7 +153,6 @@
</LinearLayout>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:orientation=
"horizontal"
android:layout_width=
"match_parent"
...
...
@@ -503,7 +543,7 @@
</LinearLayout>
</ScrollView>
</ScrollView>
<ProgressBar
android:layout_width=
"wrap_content"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment