Commit graph

294 commits

Author SHA1 Message Date
Eric House
454ef51cf1 use a single toolbar layout inflated from its own xml rather than
hard-coded as part of board
2014-07-22 19:38:32 -07:00
Eric House
9c1b4454eb add back vertical version of toolbar so board can be bigger in
landscape mode
2014-07-22 08:11:15 -07:00
Eric House
83636b6736 clean up trade UI setup 2014-07-21 21:34:52 -07:00
Eric House
38afc4494a fix board toolbar to be centered AND fully available 2014-07-21 20:00:17 -07:00
Eric House
f305e6dc8d center toolbar. This isn't ideal, especially for the existing portrait
layout, but it's much better for landscape.
2014-07-20 19:52:17 -07:00
Eric House
0f617d359b fix so space opening up in landscape board layout is colored in
user-settable background color rather than white
2014-07-18 21:29:29 -07:00
Eric House
a19437e2d2 use a style for elements common to group headers 2014-07-11 21:38:17 -07:00
Eric House
e36f68a1d0 make list item text elements single-line to prevent long-named
wordlists from looking ugly
2014-06-24 08:18:42 -07:00
Eric House
0749266ec3 remove padding 2014-06-22 16:05:46 -07:00
Eric House
46fba6204a switch to providing details about remote wordlist via expanding view
rather than a separate alert.
2014-06-22 13:36:25 -07:00
Eric House
91fe1537cb specify orientation (no change, since it's the default) and make
formatting standard.
2014-06-22 12:41:25 -07:00
Eric House
0c1d9661df make downloadable checkbox bigger and easier to hit 2014-06-22 12:00:30 -07:00
Eric House
b6d316134d more tweaks to wordlists: display names of those that can be updated;
click on available list shows info and offers to download; etc.
2014-06-18 06:48:04 -07:00
Eric House
99db1cef51 snapshot on the way to removing RemoteDicts in favor of DictsActivity
with a "show remote" checkbox at the top.  Works, but incomplete.
2014-06-17 06:42:07 -07:00
Eric House
42225e314e center emtpy list text 2014-06-11 06:57:51 -07:00
Eric House
f4a098e75b add progress wheel 2014-06-07 17:52:06 -07:00
Eric House
f8612e727d Support download of multiple dicts at once. (Download of apps not tested and may be broken. Next...) 2014-06-05 06:05:23 -07:00
Eric House
08b96dac82 center empty list message 2014-06-03 07:49:20 -07:00
Eric House
ae4260a259 snapshot: handle json data (hardcoded for now) from server and display
collapsible list of selectable dict names.
2014-06-03 07:45:08 -07:00
Eric House
b1705e6073 make lang group header expand button actually expand/contract. 2014-06-03 07:45:08 -07:00
Eric House
4596ed5d7b snapshot on the way to removing last expandablelist use: dictsdelegate
lists languages and wordlists under them, but nothing's colapsable yet.
2014-06-03 07:45:08 -07:00
Eric House
8f15f76fed label xlations with the language name 2014-05-17 16:57:24 -07:00
Eric House
c4598f2bf9 tweak main translations strings layout 2014-05-13 21:22:50 -07:00
Eric House
4d42768f83 add separate activity/delegate for editing translations, launched by
tapping on a line in the list-o-strings.
2014-05-13 21:07:56 -07:00
Eric House
47eaca3d71 add filter spinner to translate dialog (though there's not yet data to filter on) 2014-05-13 06:30:38 -07:00
Eric House
049c55e2d2 toward adding default menu to all activities and eventually tracking
translations by where they're used so most relevant can be shown: put
back common superclasses XWActivity and XWListActivity with default
implemenations of activity lifecycle methods that call through to
delegates (and that later can help LocUtils track what's been seen
when.) Not thoroughly tested, but seems to work for the main screens
anyway.
2014-05-12 21:26:31 -07:00
Eric House
a4cd137cef get rid of #1 used to make strings unique: remove duplicates where
possible, and where not replace it with a non-printing zero-width
unicode char.
2014-05-06 06:27:33 -07:00
Eric House
ce77f09588 the new spinner adapter override works much better for game config's
spinners
2014-05-05 07:38:37 -07:00
Eric House
5c5a353d12 add string array to spinner manually so it can be translated -- sucks
to have to change code for this, but...  The dropdown views look
crappy though I'm using identical code to what's in DictLangCache
building similar arrays that look fine.  Needs work.
2014-04-10 06:44:33 -07:00
Eric House
67bca0dd4e Because loc: strings can't be supplied for all Views, don't do
that. Instead use the English strings themselves as keys.  Generate a
java array of all R.string.whatever contants at build time, and use
that at runtime to build a hashmap of localizable strings that may be
found in UI widgets.  When one is found and there's a translation,
substitute.
2014-04-09 21:09:46 -07:00
Eric House
201e808b4a move layout files into res_src, and modify script to mark their localizable strings with loc:; run all layout inflation through new function that substitutes for loc: 2014-04-08 06:47:33 -07:00
Eric House
dfb3ea842b get rid of the Loc* classes -- will be transforming xml at buildtime as with menus 2014-04-08 05:20:22 -07:00
Eric House
7dfa042b77 rename style and use it to align table header with columns 2014-04-05 12:12:00 -07:00
Eric House
663f4293a9 display English text on left side of table 2014-04-05 11:45:20 -07:00
Eric House
2494f7b8d4 add activity for localizing strings and add menuitem to localizable activities to trigger it. Does nothing yet, including populating itself. 2014-04-05 10:27:05 -07:00
Eric House
2c9dc526c2 convert most of GamesList to be localizable 2014-04-04 06:50:08 -07:00
Eric House
2afe048095 fix formatting 2014-04-03 06:19:17 -07:00
Eric House
bd02a10fc3 beginnings of framework to allow localized strings to be read from downloaded modules: in xml replace string references with a custom attribute that's the same thing, then in overridden view subclasses pull the reference from the AttributeSet and look it up myself. Works to uppercase all strings in the NewGames dialog. 2014-04-02 08:06:51 -07:00
Eric House
9a55c97793 add new style for expander buttons 2014-03-31 07:20:19 -07:00
Eric House
3ff60861f7 derive GameListGroup from ExpiringLinearLayout 2014-03-31 07:14:40 -07:00
Eric House
84698273a5 fix selection of group item by adding a delegate all selectable items can call. 2014-03-26 21:03:51 -07:00
Eric House
31b65e659d make GamesList list- not expandable-list-based for future compatibility with Fragments. Groups still don't contract since they need arrows. Next... 2014-03-26 20:01:55 -07:00
Eric House
a842363be1 rename file: Lookup dialog is no longer an Activity 2014-03-23 18:53:38 -07:00
Eric House
aa6fbf8605 snapshot on the way to making studylists editable: add checkbox to xwlistitem. It's to be an alterative to long tap to select. Implement selectAll and deselectAll. 2014-03-19 20:42:29 -07:00
Eric House
be440c8abf try, again, making lookup dialog an alert rather than an activity. It's a much better experience on a nexus 5 but I've lost my records of why I made it an activity in the first place -- what phones it sucked on as an alert. Still probably doesn't bundle itself correctly and is missing a title. 2014-03-14 18:41:54 -07:00
Eric House
647282968a hide the label and spinner when there's only one language 2014-01-30 08:15:43 -08:00
Eric House
3ea86e630d add label before lang-pick spinner 2014-01-30 07:12:32 -08:00
Eric House
32ecd1d026 more studylist: add lookup-on-tap, show language in title bar, and add
menuitem to board menu too
2014-01-29 19:37:04 -08:00
Eric House
42f35cb3d9 populate study list, doing the sorting in the DB query for now 2014-01-28 07:48:08 -08:00
Eric House
4421472391 add (empty so far) studylist browser and menu to invoke it 2014-01-28 06:50:27 -08:00