Commit Graph

27 Commits

Author SHA1 Message Date
Sebastian Kaspari b479ac55dc MessageListView: Background is now in drawable folder. (Funny that this worked at all). 2013-01-22 21:35:12 +01:00
Sebastian Kaspari 48b12bff40 Update copyright line (2009-2013). 2013-01-21 21:32:43 +01:00
Sebastian Kaspari 81b7fe798c MessageListView: Set transcript mode to normal (Only automatically scroll if the last item is visible). Fixes #119. 2013-01-21 21:15:22 +01:00
Sebastian Kaspari 9c551d73bf New stateful ViewPagerIndicator.
Indicator showing the state of the current pages and off-screen pages by coloring.
2012-07-28 11:36:54 +02:00
Sebastian Kaspari 743eae9b85 Remove fullscreen option from settings.
There's no need anymore on new devices and the app should not cover the
notification bar.
2012-07-28 11:32:14 +02:00
Sebastian Kaspari 21032950b7 Update copright line (2009-2012). 2012-01-21 23:12:55 +01:00
Sebastian Kaspari fbdebc2ca5 Add ActionBarSherlock to all activities. Restructure menu items. Fixes #96. 2012-01-21 23:07:44 +01:00
Sebastian Kaspari 25cf7eb2ad ConversationActivity: Add ViewPagerIndicator. 2012-01-21 11:30:41 +01:00
Sebastian Kaspari e04499070a Replace gallery view for conversations by ViewPager. Fixes #38. 2012-01-21 08:56:40 +01:00
Steven Luo 02316ffdbc Remove bottom padding in MessageListView onCreate()
If we're going to do this when changing to/from switched mode, we should
do it when creating a new MessageListView too.
2011-07-03 14:08:28 +02:00
Steven Luo ec17d34e4d Miscellaneous ConversationLayout cleanups
* Simplify control flow in onMeasure() by moving height adjusting to
  a separate method
* Various whitespace changes and comment updates
2011-07-03 14:06:41 +02:00
Sebastian Kaspari a6da4970aa ConversationSwitcher: Update comment 2011-07-02 19:49:19 +02:00
Sebastian Kaspari 61252c7535 Remove unused imports 2011-07-02 19:49:18 +02:00
Rey Rey 2e2aebf2c4 Micro optimized full screen code. Made starvation mode leaner.
Conflicts:

	application/src/org/yaaic/activity/ConversationActivity.java
2011-07-02 19:49:16 +02:00
Rey Rey 5c48724425 Future proofed ime no extract support, enhanced performance of fullscreen patch.
Conflicts:

	application/src/org/yaaic/activity/ConversationActivity.java
2011-07-02 19:49:10 +02:00
Rey Rey 84ade9fae4 Finalized fullscreen implementation, added heuristics to resizing, fixed ime extract bug introduced 2 commits ago.
Conflicts:

	application/src/org/yaaic/activity/ConversationActivity.java
2011-07-02 19:48:58 +02:00
Steven Luo ccaf9f59c4 Resize the fullscreen conversation window when IME appears instead of scrolling
When an activity sets FLAG_FULLSCREEN on its window, Android assumes
that the window size will always be the same as the screen size.  This
causes the window to scroll instead of resizing when the soft keyboard
comes up, which (according to a quick Google search) isn't the behavior
most developers are expecting.

This patch implements an ugly workaround: extend the root element of the
layout (in our case, a LinearLayout) to hook into the onMeasure()
callback, which is called when the window size changes, so that we can
resize ourselves when the window size changes.
2011-07-02 17:53:41 +02:00
Steven Luo 159cb8195d Remember switched conversations across screen orientation changes
As of now, the activity does not remember whether a conversation is
switched across configuration changes (such as screen rotations).  Fix
this by adding onSaveInstanceState() and onRestoreInstanceState()
callbacks in the activity to pass this information to the new instance.

To make the implementation of this simpler, all code to configure the
MessageListView, which was duplicated in several places in the codebase,
has been moved to the MessageListView's constructor.

While we're at it, make the padding setting independent of screen
density instead of specifying in fixed pixels (equivalent to specifying
the value in dp instead of px), and increase the padding for switched
views.  This ensures that message text isn't obscured by the gradient at
the edges of the ConversationGallery, which started happening when we
began caching MessageListViews in the DeckAdapter.
2011-06-08 23:11:28 +02:00
liato 1ebea8f7d6 Use integer division to calculate gallert item width. 2011-03-27 17:13:09 +02:00
liato b49ead73ad Fix width issues in gallery. 2011-03-27 17:10:54 +02:00
Sebastian Kaspari 84d45c5f5c Refactor ConversationSwitcher: onDraw() - May throw ConcurrentModificationException 2011-03-06 14:21:58 +01:00
Sebastian Kaspari 7845ad73f0 Refactor ChannelList to ConversationGallery - Moved to view package, added javadoc and licence header 2011-03-06 11:21:28 +01:00
Thomas Martitz f4637ac582 Use a different color for join/part/quit for the circles in the ConversationSwitcher view.
This makes it easier to ignore unintersting messages wihout turning off the setting to show joins/parts/quits.
Once circle is colored for a new message, the join/part/quit cannot override it anymore.
2011-03-06 11:11:17 +01:00
Sebastian Kaspari d8b1a0218f Added 2011 to licence header 2011-02-05 13:00:12 +01:00
Sebastian Kaspari 0fb2338f9c Code cleanup (Formatting) 2011-01-25 21:02:27 +01:00
Sebastian Kaspari 02b7ec1741 Replace all tabs with four spaces! 2010-11-18 18:52:19 +01:00
Sebastian Kaspari 1250c10d9c Merged application and test project into one repository 2010-11-07 08:35:45 +01:00