Commit Graph

29 Commits

Author SHA1 Message Date
Jordane Quincy 1ea54b8d7f Add color support to UIUtils.applyMarkup (#667) 2019-10-07 15:14:48 +01:00
Synced Synapse c68235fcfc Tweak Themes
Use more consistent color Schemes
2019-05-21 20:51:21 +02:00
ssaqua 53e1a62afe Refactor marquee setup for multi-line TextViews 2019-04-20 22:17:11 +02:00
Mon Zafra 206b5c9bc6 Apply markup to PVR text views; addresses #191 (#474) 2017-10-20 14:15:59 +01:00
Mon Zafra 45ecfc2e25 Implemented simple Kodi markup code applier for the Now Playing fragment (#471)
* Implemented simple Kodi markup code applier for the Now Playing fragment
* Moved to UIUtils; added early exit; now handles nesting of the same type
* Added handlers for LOWERCASE, CAPITALIZE, LIGHT and COLOR
- LOWERCASE and CAPITALIZE work, LIGHT and COLOR are just stripped out
- inlined the TextAppearanceSpan new's. Turns out they can't be reused.
* updated javadoc
* fixed crash when capitalizing an empty word
2017-10-19 09:05:45 +01:00
Martijn Brekhof cb430aa20d Implemented a slideup panel with media controls and info (#320)
* The slideup panel is only displayed when something is
         playing. It starts collapsed showing the media poster
         and title of what is currently playing.

       * Media controls implemented are volume, progress, shuffle,
         repeat and play/pause for all items. Next and previous are only
         available when a music item is playing.

       * In collapsed mode the panel will display the mute button only
         if Kodi is muted. The mute button in expanded mode is always
         visible.

       * Panel is enabled by default. Users can disable the panel
         in Settings

       * Implemented listening to Player.OnPropertyChanged notifications
         to update shuffle and repeat button states.
2017-07-13 19:10:49 +01:00
Martijn Brekhof eb8accb8fe Implemented RepeatModeButton widget (#408)
Its main purpose is to enable testing the repeat mode functionality.
2017-06-23 11:50:17 +01:00
Martijn Brekhof 85bcd846f2 Implemented VolumeLevelIndicator widget (#406)
* Refactored NowPlayingFragment to use new widget
  * Refactored UIUtils.highlightImageView to reduce code duplication
2017-06-22 18:37:00 +01:00
Martijn Brekhof 412931b8db Refactored AbstractDetailsFragment
This introduces the MVC model to details fragments. It moves as much
view and control code out of the concrete fragments into the abstract
classes.

   * Added UML class and sequence diagrams under doc/diagrams to clarify
     the new setup

   * Introduces new abstract classes
      * AbstractFragment class to hold the DataHolder
      * AbstractInfoFragment class to display media information
      * AbstractAddtionalInfoFragment class to allow *InfoFragments
        to add additional UI elements and propagate refresh requests.
        See for an example TVShowInfoFragment which adds
        TVShowProgressFragment to display next episodes and season
        progression.

   * Introduces new RefreshItem class to encapsulate all refresh
     functionality from AbstractDetailsFragment

   * Introduces new SharedElementTransition utility class to encapsulate
     all shared element transition code

   * Introduces new CastFragment class to encapsulate all code for
     displaying casts reducing code duplication

   * Introduces DataHolder class to replace passing the ViewHolder from
     the *ListFragment to the *DetailsFragment or *InfoFragment

   * Refactored AbstractDetailsFragment into two classes:

     o AbstractDetailsFragment: for fragments requiring a tab bar
     o AbstractInfoFragment:    for fragments showing media information

     We used to use <NAME>DetailsFragments for both fragments that show
     generic
     info about some media item and fragments that hold all details for
     some media item.
     For example, artist details showed artist info and used tabs to
     show artist albums and songs as well. Now Details fragments are
     used to show all details, Info fragments only show media item
     information like description, title, rating, etc.

   * Moved swiperefreshlayout code from AbstractCursorListFragment to
     AbstractListFragment
2017-03-02 11:55:19 +01:00
Mon Zafra 6e347b6b36 Materialized dialogs and preferences (#330)
* Changed platform AlertDialogs and preference.* to support lib counterparts
- added dependencies: support/preference-v7 for PreferenceFragmentCompat
  and Preference subclasses, support/preference-v14 for the
  MultiSelectListPreference
- simplified some AlertDialog.Builder calls and added non-null annotations
  to DialogFragment#onCreateDialog(Bundle) overrides to shut the IDE up
- UIUtils: changed static member avatarColorsIdx to local var because it's
  only used in one place and the value isn't cached
- layout/dialog_send_text: removed view vertical margins as they take
  way too much space for nothing.
- strings: shortened english preference titles
- themes: added PrefTheme and changed preference title font size to medium
  from large
- preferences: changed CheckBoxPreference to SwitchPreferenceCompat. these
  don't have the same issue described in #233 (tested in kitkat).

* Changed platform PreferenceManager in RemoteActivity to support pref

* Fixed M permissions

* Split prefs into 2 groups as per material design guidelines

* Changed prefs theme to v14.material

* Moved container padding to individual prefs; removed pref-v7 dependency
- this makes the item dividers touch the screen edges which i think looks
  better
- don't need to require preference-v7 because preference-v14 already
  does

* Moved PrefTheme attributes *{Start,End} to v17 override

* Fixed crash caused by rotating twice while a dialog is active

* Changed wording as suggested
2017-01-04 08:37:13 +00:00
Martijn Brekhof b8fbf4e190 Refactored org.xbmc.kore.ui package into separate packages 2016-12-29 18:27:40 +00:00
Martijn Brekhof b7b1470484 Fix and improve downloading song
* Fixed issue downloading all songs from an artist
* Added download option for songs in songslistfragment
* Created UIUtils.downloadSongs(...) to reduce code duplication
* Refactored downloading of songs on host/artist/album levels
  All levels now use song display artist as artist and album display artist.
  This prevents downloading songs multiple times when downloading same song on different levels.
2016-11-09 08:48:22 +00:00
Synced Synapse cf5ab6335e Fix TypedArray.getResourceId warnings/errors 2016-09-16 19:09:06 +01:00
Martijn Brekhof f84ccaf02a Implemented fix for movie and album shared element transitions
When shared element view is not visible on returning, the return shared
element transition starts off screen. This looks odd and we now simply
do not perform the shared element transition when the shared element is
not visible.
2015-12-11 12:32:03 +01:00
Martijn Brekhof 17c7609d72 Implemented shared element transition for TV shows
Added SharedElementCallback to be able to detect if shared element
is still visible. If not, the shared element transition should not
be performed when returning to the previous fragment.
Added the pager tab strip to the fade animation to keep shared element
transition smooth when poster is partly below the toolbar.
2015-12-10 15:34:26 +01:00
Martijn Brekhof 2f0dd67761 Introduces new class AbstractDetailsFragment to reduce code duplication.
* Moved showRefreshAnimation() from AbstractListFragment to UIUtils as it is
  now used for detailed fragments as well.
2015-11-11 12:10:28 +01:00
Martijn Brekhof 499e54f2cf Improved keeping user informed on sync progress
Implemented binding to LibrarySyncService to check if there are items currently
syncing or queued to sync. This makes it possible to inform user of background
sync processes.

Created two abstract classes to reduce code duplication and check if
LibrarySyncService has any items queued which are currently being displayed.

Fixed issue with SwipeRefreshLayout from appcompat library, which does not
always show the refresh animation when refresh is set to true.
2015-09-02 12:04:17 +02:00
Synced Synapse d8750cc6db Fix changing play/pause icons on remote, with different themes 2015-07-30 22:40:02 +01:00
Synced Synapse 7936b8f2a3 Fix row count and max pictures count on cast grid view 2015-07-30 20:01:10 +01:00
Synced Synapse 00c6e3d300 Change the "see all cast" button to be the last image on the cast grid view 2015-07-30 19:27:58 +01:00
Synced Synapse a07a819898 Add support to see all cast on now playing screen 2015-07-29 18:37:28 +01:00
Synced Synapse b534ccd756 Change vibration duration to 50ms 2015-07-28 22:43:37 +01:00
Synced Synapse 4a88eadd50 Merge pull request #100 from akshay2000/master
Added Vibration on Remote Arrow Press
2015-07-28 19:43:22 +01:00
Synced Synapse cbed4d919a Add new activity to show all cast for movies and tv shows 2015-07-28 19:27:17 +01:00
Akshay Zade 7170dc9548 Moved vibration handling to UIUtils 2015-07-23 20:59:46 +05:30
Akshay Zade c65ae70b99 Reduced vibration duration to 100ms and added it to UIUtils 2015-07-19 20:20:07 +05:30
Synced Synapse 33fde2cba7 Slight optimization loading different icons 2015-06-23 18:58:21 +01:00
Synced Synapse a8f9c3e660 UI changes on files browsing 2015-03-28 18:33:48 +00:00
Synced Synapse ed584fb9b7 Changed namespace/appid to org.xbmc.kore 2015-03-09 21:35:18 +00:00