Preserve status states on updates. UI layer refactoring.
Some things were pulled out of adapters to fragments. New classes were introduced - StatusViewData and NotificationViewData. They not only have view state in them but also help decoupling. Because introducing parallel model list requires a lot of synchronisation PairedList was added. Also synchronisation between fragments and adapters is quiet tedious and error-prone and should be replaces with better solution. Oh, I also couldn’t resist and fixed bug with buttons animation in the same commit.
This commit is contained in:
parent
f68f6d7473
commit
90c1a83ba4
15 changed files with 1194 additions and 358 deletions
|
@ -297,7 +297,8 @@
|
|||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:padding="4dp"
|
||||
android:contentDescription="@string/action_reblog" />
|
||||
android:contentDescription="@string/action_reblog"
|
||||
android:clipToPadding="false"/>
|
||||
|
||||
<Space
|
||||
android:layout_width="0dp"
|
||||
|
@ -315,7 +316,8 @@
|
|||
app:sparkbutton_secondaryColor="@color/status_favourite_button_marked_light"
|
||||
android:id="@+id/status_favourite"
|
||||
android:padding="4dp"
|
||||
android:contentDescription="@string/action_favourite" />
|
||||
android:contentDescription="@string/action_favourite"
|
||||
android:clipToPadding="false"/>
|
||||
|
||||
<Space
|
||||
android:layout_width="0dp"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue