mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-06-05 21:59:27 +02:00
adding animations to recyclerviews
This commit is contained in:
@ -57,7 +57,7 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'com.simplemobiletools:commons:5.34.2'
|
implementation 'com.simplemobiletools:commons:5.34.3'
|
||||||
implementation 'joda-time:joda-time:2.10.3'
|
implementation 'joda-time:joda-time:2.10.3'
|
||||||
implementation 'com.googlecode.ez-vcard:ez-vcard:0.10.5'
|
implementation 'com.googlecode.ez-vcard:ez-vcard:0.10.5'
|
||||||
implementation 'com.github.tibbi:IndicatorFastScroll:c3de1d040a'
|
implementation 'com.github.tibbi:IndicatorFastScroll:c3de1d040a'
|
||||||
|
@ -109,6 +109,7 @@ class GroupContactsActivity : SimpleActivity(), RemoveFromGroupListener, Refresh
|
|||||||
group_contacts_list.adapter = this
|
group_contacts_list.adapter = this
|
||||||
}
|
}
|
||||||
|
|
||||||
|
group_contacts_list.scheduleLayoutAnimation()
|
||||||
group_contacts_fastscroller.setScrollToY(0)
|
group_contacts_fastscroller.setScrollToY(0)
|
||||||
group_contacts_fastscroller.setViews(group_contacts_list) {
|
group_contacts_fastscroller.setViews(group_contacts_list) {
|
||||||
val item = (group_contacts_list.adapter as ContactsAdapter).contactItems.getOrNull(it)
|
val item = (group_contacts_list.adapter as ContactsAdapter).contactItems.getOrNull(it)
|
||||||
|
@ -294,7 +294,7 @@ class InsertOrEditContactActivity : SimpleActivity(), RefreshContactsListener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun getTabsMask(): Int {
|
private fun getTabsMask(): Int {
|
||||||
var mask = TAB_CONTACTS
|
var mask = TAB_CONTACTS
|
||||||
if (config.showTabs and TAB_FAVORITES != 0) {
|
if (config.showTabs and TAB_FAVORITES != 0) {
|
||||||
mask += TAB_FAVORITES
|
mask += TAB_FAVORITES
|
||||||
|
@ -201,6 +201,7 @@ class SelectContactActivity : SimpleActivity() {
|
|||||||
select_contact_list.adapter = this
|
select_contact_list.adapter = this
|
||||||
}
|
}
|
||||||
|
|
||||||
|
select_contact_list.scheduleLayoutAnimation()
|
||||||
select_contact_fastscroller.setViews(select_contact_list) {
|
select_contact_fastscroller.setViews(select_contact_list) {
|
||||||
select_contact_fastscroller.updateBubbleText(contacts[it].getBubbleText())
|
select_contact_fastscroller.updateBubbleText(contacts[it].getBubbleText())
|
||||||
}
|
}
|
||||||
|
@ -42,6 +42,7 @@ class SelectContactsDialog(val activity: SimpleActivity, initialContacts: ArrayL
|
|||||||
select_contact_list.adapter = SelectContactsAdapter(activity, allContacts, initiallySelectedContacts, allowSelectMultiple,
|
select_contact_list.adapter = SelectContactsAdapter(activity, allContacts, initiallySelectedContacts, allowSelectMultiple,
|
||||||
select_contact_list, select_contact_fastscroller, contactClickCallback)
|
select_contact_list, select_contact_fastscroller, contactClickCallback)
|
||||||
|
|
||||||
|
select_contact_list.scheduleLayoutAnimation()
|
||||||
select_contact_fastscroller.setViews(select_contact_list) {
|
select_contact_fastscroller.setViews(select_contact_list) {
|
||||||
select_contact_fastscroller.updateBubbleText(allContacts[it].getBubbleText())
|
select_contact_fastscroller.updateBubbleText(allContacts[it].getBubbleText())
|
||||||
}
|
}
|
||||||
|
@ -177,6 +177,7 @@ abstract class MyViewPagerFragment(context: Context, attributeSet: AttributeSet)
|
|||||||
fragment_list.adapter = this
|
fragment_list.adapter = this
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fragment_list.scheduleLayoutAnimation()
|
||||||
fragment_fastscroller.setScrollToY(0)
|
fragment_fastscroller.setScrollToY(0)
|
||||||
fragment_fastscroller.setViews(fragment_list) {
|
fragment_fastscroller.setViews(fragment_list) {
|
||||||
val item = (fragment_list.adapter as GroupsAdapter).groups.getOrNull(it)
|
val item = (fragment_list.adapter as GroupsAdapter).groups.getOrNull(it)
|
||||||
@ -209,6 +210,7 @@ abstract class MyViewPagerFragment(context: Context, attributeSet: AttributeSet)
|
|||||||
}.apply {
|
}.apply {
|
||||||
fragment_list.adapter = this
|
fragment_list.adapter = this
|
||||||
}
|
}
|
||||||
|
fragment_list.scheduleLayoutAnimation()
|
||||||
} else {
|
} else {
|
||||||
(currAdapter as ContactsAdapter).apply {
|
(currAdapter as ContactsAdapter).apply {
|
||||||
startNameWithSurname = config.startNameWithSurname
|
startNameWithSurname = config.startNameWithSurname
|
||||||
|
@ -43,6 +43,7 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:clipToPadding="false"
|
android:clipToPadding="false"
|
||||||
|
android:layoutAnimation="@anim/layout_animation"
|
||||||
android:scrollbars="none"
|
android:scrollbars="none"
|
||||||
app:layoutManager="com.simplemobiletools.commons.views.MyLinearLayoutManager" />
|
app:layoutManager="com.simplemobiletools.commons.views.MyLinearLayoutManager" />
|
||||||
|
|
||||||
@ -51,7 +52,6 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_alignParentEnd="true"
|
android:layout_alignParentEnd="true"
|
||||||
android:layout_alignParentRight="true"
|
|
||||||
android:paddingStart="@dimen/normal_margin">
|
android:paddingStart="@dimen/normal_margin">
|
||||||
|
|
||||||
<include layout="@layout/fastscroller_handle_vertical" />
|
<include layout="@layout/fastscroller_handle_vertical" />
|
||||||
|
@ -38,6 +38,7 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:clipToPadding="false"
|
android:clipToPadding="false"
|
||||||
|
android:layoutAnimation="@anim/layout_animation"
|
||||||
android:scrollbars="none"
|
android:scrollbars="none"
|
||||||
app:layoutManager="com.simplemobiletools.commons.views.MyLinearLayoutManager" />
|
app:layoutManager="com.simplemobiletools.commons.views.MyLinearLayoutManager" />
|
||||||
|
|
||||||
|
@ -40,6 +40,7 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:clipToPadding="false"
|
android:clipToPadding="false"
|
||||||
|
android:layoutAnimation="@anim/layout_animation"
|
||||||
android:scrollbars="none"
|
android:scrollbars="none"
|
||||||
app:layoutManager="com.simplemobiletools.commons.views.MyLinearLayoutManager" />
|
app:layoutManager="com.simplemobiletools.commons.views.MyLinearLayoutManager" />
|
||||||
|
|
||||||
|
@ -40,6 +40,7 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:clipToPadding="false"
|
android:clipToPadding="false"
|
||||||
|
android:layoutAnimation="@anim/layout_animation"
|
||||||
android:scrollbars="none"
|
android:scrollbars="none"
|
||||||
app:layoutManager="com.simplemobiletools.commons.views.MyLinearLayoutManager" />
|
app:layoutManager="com.simplemobiletools.commons.views.MyLinearLayoutManager" />
|
||||||
|
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<RelativeLayout
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
android:id="@+id/select_contact_holder"
|
android:id="@+id/select_contact_holder"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
@ -11,6 +10,7 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:clipToPadding="false"
|
android:clipToPadding="false"
|
||||||
|
android:layoutAnimation="@anim/layout_animation"
|
||||||
android:scrollbars="none"
|
android:scrollbars="none"
|
||||||
app:layoutManager="com.simplemobiletools.commons.views.MyLinearLayoutManager" />
|
app:layoutManager="com.simplemobiletools.commons.views.MyLinearLayoutManager" />
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user