Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AloqaIM-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
AloqaIM-Android
Commits
b772b13c
Commit
b772b13c
authored
Dec 25, 2017
by
saketkumar95
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds animation in chrome custom tabs
parent
6f80a3c4
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
0 deletions
+34
-0
RocketChatMessageAttachmentsLayout.java
...id/widget/message/RocketChatMessageAttachmentsLayout.java
+2
-0
slide_in_left.xml
...-chat-android-widgets/src/main/res/anim/slide_in_left.xml
+8
-0
slide_in_right.xml
...chat-android-widgets/src/main/res/anim/slide_in_right.xml
+8
-0
slide_out_left.xml
...chat-android-widgets/src/main/res/anim/slide_out_left.xml
+8
-0
slide_out_right.xml
...hat-android-widgets/src/main/res/anim/slide_out_right.xml
+8
-0
No files found.
rocket-chat-android-widgets/src/main/java/chat/rocket/android/widget/message/RocketChatMessageAttachmentsLayout.java
View file @
b772b13c
...
...
@@ -173,6 +173,8 @@ public class RocketChatMessageAttachmentsLayout extends LinearLayout {
public
void
onClick
(
View
view
)
{
new
CustomTabsIntent
.
Builder
()
.
setToolbarColor
(
ContextCompat
.
getColor
(
getContext
(),
R
.
color
.
colorPrimary
))
.
setStartAnimations
(
getContext
(),
R
.
anim
.
slide_in_right
,
R
.
anim
.
slide_out_left
)
.
setExitAnimations
(
getContext
(),
R
.
anim
.
slide_in_left
,
R
.
anim
.
slide_out_right
)
.
build
()
.
launchUrl
(
getContext
(),
Uri
.
parse
(
link
));
}
...
...
rocket-chat-android-widgets/src/main/res/anim/slide_in_left.xml
0 → 100644
View file @
b772b13c
<?xml version="1.0" encoding="utf-8"?>
<set
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<translate
android:fromXDelta=
"-100%p"
android:toXDelta=
"0"
android:duration=
"@android:integer/config_mediumAnimTime"
/>
</set>
\ No newline at end of file
rocket-chat-android-widgets/src/main/res/anim/slide_in_right.xml
0 → 100644
View file @
b772b13c
<?xml version="1.0" encoding="utf-8"?>
<set
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<translate
android:fromXDelta=
"100%p"
android:toXDelta=
"0"
android:duration=
"@android:integer/config_mediumAnimTime"
/>
</set>
\ No newline at end of file
rocket-chat-android-widgets/src/main/res/anim/slide_out_left.xml
0 → 100644
View file @
b772b13c
<?xml version="1.0" encoding="utf-8"?>
<set
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<translate
android:fromXDelta=
"0"
android:toXDelta=
"-100%p"
android:duration=
"@android:integer/config_mediumAnimTime"
/>
</set>
\ No newline at end of file
rocket-chat-android-widgets/src/main/res/anim/slide_out_right.xml
0 → 100644
View file @
b772b13c
<?xml version="1.0" encoding="utf-8"?>
<set
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<translate
android:fromXDelta=
"0"
android:toXDelta=
"100%p"
android:duration=
"@android:integer/config_mediumAnimTime"
/>
</set>
\ No newline at end of file
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