Change layout of single card view

This changes the layout when viewing a single card. The new layout
will have a colored area at the top which displays the first letter
of the company, and after that the barcode. The note will be displayed
on the card list screen and is presently omitted here.

As this layout is experimental, the layout for editing a card is
not yet updated. To achieve this the card viewing activity is split
into two separate classes, where one handles viewing and one handles
editing. When the view layout finalizes the edit icon can be updated
as time allows.
This commit is contained in:
Branden Archer
2018-01-31 22:13:39 -05:00
parent 3519e03568
commit 6ed96393d5
12 changed files with 657 additions and 390 deletions

View File

@@ -74,7 +74,7 @@ public class MainActivityTest
}
@Test
public void clickAddLaunchesLoyaltyCardViewActivity()
public void clickAddLaunchesLoyaltyCardEditActivity()
{
final MainActivity activity = Robolectric.setupActivity(MainActivity.class);
@@ -82,7 +82,7 @@ public class MainActivityTest
Intent intent = shadowOf(activity).peekNextStartedActivityForResult().intent;
assertEquals(new ComponentName(activity, LoyaltyCardViewActivity.class), intent.getComponent());
assertEquals(new ComponentName(activity, LoyaltyCardEditActivity.class), intent.getComponent());
assertNull(intent.getExtras());
}