Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support table block in Instant Views #528

Merged
merged 26 commits into from
Jan 13, 2024
Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
d5a73a5
Update PageBlockTable.java
Arseny271 Jan 5, 2024
78087b4
Update PageBlockTable.java
Arseny271 Jan 5, 2024
a00c593
Update
Arseny271 Jan 6, 2024
e3806d3
Update
Arseny271 Jan 7, 2024
2dd9804
Update PageBlockTable.java
Arseny271 Jan 7, 2024
861d23f
Merge branch 'TGX-Android:main' into instant-view-tables
Arseny271 Jan 7, 2024
4b6b5a0
Merge branch 'TGX-Android:main' into instant-view-tables
Arseny271 Jan 7, 2024
13ad2a1
Update
Arseny271 Jan 7, 2024
c8dc831
Merge branch 'TGX-Android:main' into instant-view-tables
Arseny271 Jan 9, 2024
551c3dc
Update
Arseny271 Jan 9, 2024
5331f4b
Merge branch 'TGX-Android:main' into instant-view-tables
Arseny271 Jan 10, 2024
e47f37c
Update PageBlockWrapView.java
Arseny271 Jan 10, 2024
db7975a
Update InstantViewController.java
Arseny271 Jan 10, 2024
c57eb7c
Fix wrong font size
Arseny271 Jan 10, 2024
a41e4e5
Merge branch 'main' into instant-view-tables
vkryl Jan 10, 2024
3cfe191
Merge branch 'main' into instant-view-tables
vkryl Jan 13, 2024
82de02c
Merge branch 'main' into instant-view-tables
vkryl Jan 13, 2024
d433a8e
Code style fix
vkryl Jan 13, 2024
45ea560
Fixed incorrect `FontMetricsInt.ascent` calculation
vkryl Jan 13, 2024
a98a02e
Remove rudimentary `Text.getAscent` method
vkryl Jan 13, 2024
e064bf5
Fix `Text.getFontMetrics`
vkryl Jan 13, 2024
f45209e
Avoid double index lookup when `FLAG_ALWAYS_BREAK` is set
vkryl Jan 13, 2024
f6a79a7
Revert `Text.locatePart`
vkryl Jan 13, 2024
d3fe351
Rework `Text.locatePart`
vkryl Jan 13, 2024
538f6a0
Properly fixed text size of `<sub>` and `<sup>` in IVs
vkryl Jan 13, 2024
f7e2835
Merge branch 'main' into instant-view-tables
vkryl Jan 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,10 @@ public final boolean onTouchEvent (View view, MotionEvent e) {
return handleTouchEvent(view, e);
}

public int getCustomWidth () {
return -1;
}

protected abstract boolean handleTouchEvent (View view, MotionEvent e);

protected final int getMinimumContentPadding (boolean leftEdge) {
Expand Down Expand Up @@ -606,7 +610,7 @@ private static void parse (ViewController<?> parent, ArrayList<PageBlock> out, P
if (!Td.isEmpty(tableRaw.caption)) {
context.process(new PageBlockRichText(parent, tableRaw, openParameters), out);
}
context.process(new PageBlockTable(parent, tableRaw, context.isRtl, openParameters), out);
context.process(new PageBlockTable(parent, tableRaw, openParameters), out);
break;
}

Expand Down