Commit 0f1137a
committed
[TF] show user ID / DC ID in profile info
Display-only port of Nekogram's profile ID/DC line: a third line
under the avatar info showing "ID: <id>, DC: <dc>" (or "<date>, DC:
<dc>" when the avatar is pulled open). Long-press copies the ID
to the clipboard and shows a bulletin.
- Add tw/nekomimi/nekogram/SimpleTextViewSwitcher helper (a
ViewSwitcher whose children are SimpleTextView, with a
setText(CharSequence, boolean) for animated updates).
- Wire an idTextView into ProfileActivity's avatar container with
long-press-to-copy, and keep it in sync via updateIdText(...)
across page selection, photo deletion, chatInfo load and the
pulled-down / pulled-up states.
- Integrate idTextView into the existing avatar collapse/expand,
scroll, color-blending and search-mode transitions so the new
line animates alongside the online subtitle.1 parent 8cbe8ac commit 0f1137a
4 files changed
Lines changed: 282 additions & 1 deletion
File tree
- TMessagesProj/src/main
- java
- org/telegram/ui
- tw/nekomimi/nekogram
- res/values
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
58 | 66 | | |
59 | 67 | | |
60 | 68 | | |
| |||
69 | 77 | | |
70 | 78 | | |
71 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
72 | 88 | | |
73 | 89 | | |
74 | 90 | | |
| |||
0 commit comments