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
93f77eb2
Commit
93f77eb2
authored
Feb 23, 2018
by
Filipe de Lima Brito
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduces animation duration.
parent
1bfb547d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
ChatRoomFragment.kt
.../java/chat/rocket/android/chatroom/ui/ChatRoomFragment.kt
+2
-2
Animation.kt
...ain/java/chat/rocket/android/util/extensions/Animation.kt
+2
-2
styles.xml
app/src/main/res/values/styles.xml
+2
-2
No files found.
app/src/main/java/chat/rocket/android/chatroom/ui/ChatRoomFragment.kt
View file @
93f77eb2
...
@@ -292,11 +292,11 @@ class ChatRoomFragment : Fragment(), ChatRoomView {
...
@@ -292,11 +292,11 @@ class ChatRoomFragment : Fragment(), ChatRoomView {
button_files
.
setOnClickListener
{
button_files
.
setOnClickListener
{
handler
.
postDelayed
({
handler
.
postDelayed
({
presenter
.
selectFile
()
presenter
.
selectFile
()
},
3
00
)
},
2
00
)
handler
.
postDelayed
({
handler
.
postDelayed
({
hideAttachmentOptions
()
hideAttachmentOptions
()
},
6
00
)
},
4
00
)
}
}
}
}
}
}
...
...
app/src/main/java/chat/rocket/android/util/extensions/Animation.kt
View file @
93f77eb2
...
@@ -5,7 +5,7 @@ import android.view.ViewAnimationUtils
...
@@ -5,7 +5,7 @@ import android.view.ViewAnimationUtils
import
android.view.animation.AccelerateInterpolator
import
android.view.animation.AccelerateInterpolator
import
android.view.animation.DecelerateInterpolator
import
android.view.animation.DecelerateInterpolator
fun
View
.
rotateBy
(
value
:
Float
,
duration
:
Long
=
2
00
)
{
fun
View
.
rotateBy
(
value
:
Float
,
duration
:
Long
=
1
00
)
{
animate
()
animate
()
.
rotationBy
(
value
)
.
rotationBy
(
value
)
.
setDuration
(
duration
)
.
setDuration
(
duration
)
...
@@ -42,7 +42,7 @@ fun View.fadeOut(startValue: Float, finishValue: Float, duration: Long = 200) {
...
@@ -42,7 +42,7 @@ fun View.fadeOut(startValue: Float, finishValue: Float, duration: Long = 200) {
setVisible
(
false
)
setVisible
(
false
)
}
}
fun
View
.
circularRevealOrUnreveal
(
centerX
:
Int
,
centerY
:
Int
,
startRadius
:
Float
,
endRadius
:
Float
,
duration
:
Long
=
6
00
)
{
fun
View
.
circularRevealOrUnreveal
(
centerX
:
Int
,
centerY
:
Int
,
startRadius
:
Float
,
endRadius
:
Float
,
duration
:
Long
=
2
00
)
{
val
anim
=
ViewAnimationUtils
.
createCircularReveal
(
this
,
centerX
,
centerY
,
startRadius
,
endRadius
)
val
anim
=
ViewAnimationUtils
.
createCircularReveal
(
this
,
centerX
,
centerY
,
startRadius
,
endRadius
)
anim
.
duration
=
duration
anim
.
duration
=
duration
...
...
app/src/main/res/values/styles.xml
View file @
93f77eb2
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
<style
name=
"ChatRoom.Name.TextView"
parent=
"TextAppearance.AppCompat.Title"
>
<style
name=
"ChatRoom.Name.TextView"
parent=
"TextAppearance.AppCompat.Title"
>
<item
name=
"android:ellipsize"
>
end
</item>
<item
name=
"android:ellipsize"
>
end
</item>
<item
name=
"android:maxLines"
>
1
</item>
<item
name=
"android:maxLines"
>
1
</item>
<item
name=
"textSize"
>
16sp
</item>
<item
name=
"
android:
textSize"
>
16sp
</item>
</style>
</style>
<style
name=
"Sender.Name.TextView"
parent=
"TextAppearance.AppCompat.Title"
>
<style
name=
"Sender.Name.TextView"
parent=
"TextAppearance.AppCompat.Title"
>
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
<item
name=
"android:textSize"
>
16sp
</item>
<item
name=
"android:textSize"
>
16sp
</item>
</style>
</style>
<style
name=
"Message.TextView"
parent=
"
Widget.AppCompat.EditText
"
>
<style
name=
"Message.TextView"
parent=
"
android:TextAppearance
"
>
<item
name=
"android:textSize"
>
15sp
</item>
<item
name=
"android:textSize"
>
15sp
</item>
<item
name=
"android:textColor"
>
@color/colorPrimaryText
</item>
<item
name=
"android:textColor"
>
@color/colorPrimaryText
</item>
</style>
</style>
...
...
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