- User:
I have this Android project that I last updated in the stone age. I would love to modernize it completely using the latest APIs and with support for modern devices, and fix the bad design patterns. Remain Java/XML. What I do have is the modern iOS version of the app, which I've placed in the 'reference' folder. The iOS app is modern and much better in every way. I would like to replicate the entirety of the iOS app into the Android app, replacing what's there. Including layouts, features, artwork and assets (except app icon). Is this something you can do?
- User:
This plan is perfect. What I don't need is any of the in-app purchase stuff or UI or receipt checks. I don't need to monetize the Android version. Thanks
- User:
go right ahead
- User:
yes do everything, thanks
- User:
Unable to find Gradle tasks to build: [:app]. Build mode: ASSEMBLE.
- User:
Resource compilation failed (Failed to compile values resource file /Users/steven/Dropbox/Projects/Android/lightsoff/app/build/intermediates/incremental/debug/mergeDebugResources/merged.dir/values/values.xml. Cause: java.lang.IllegalStateException: Can not extract resource from com.android.aaptcompiler.ParsedResource@7b8850bd.). Check logs for more details.
- User:
Execution failed for task ':app:mergeDebugResources'. ... (full Gradle/aapt stack trace pasted)
- User:
the native UI stuff looks very dated, not using the latest material design adaptive styles
- User:
the game board win/reset animations aren't present either
- User:
the viewport, especially the part under the game board where the buttons and score area are, doesn't resize at all like the iOS version. It looks very stretched
- User:
no there are actual step by step animations happening in the iOS version for the game board, you haven't ported them
- User:
please use nice, appropriate material font glyphs for the icons in settings, and make the entire settings and stage select UI use the appropriate Material You APIs to inherit the system theme
- User:
the landscape layout is creative, but it doesn't lay out like the iOS version at all. I want it to lay out like on iOS in all shapes and sizes
- User:
/Users/steven/Dropbox/Projects/Android/lightsoff/app/src/main/java/com/steventroughtonsmith/lightsoff/app/SettingsActivity.java:53: error: cannot find symbol tabLayout.addTab(tabLayout.newTab().setText(R.string.settings_tab_howto).setIcon(R.drawable.ic_search_black_24)); symbol: variable ic_search_black_24 location: class drawable
- User:
/Users/steven/Dropbox/Projects/Android/lightsoff/app/src/main/java/com/steventroughtonsmith/lightsoff/app/SettingsActivity.java:54: error: cannot find symbol tabLayout.addTab(tabLayout.newTab().setText(R.string.settings_tab_themes).setIcon(R.drawable.material_ic_edit_black_24dp)); symbol: variable material_ic_edit_black_24dp location: class drawable
- User:
/Users/steven/Dropbox/Projects/Android/lightsoff/app/src/main/java/com/steventroughtonsmith/lightsoff/app/SettingsActivity.java:55: error: cannot find symbol tabLayout.addTab(tabLayout.newTab().setText(R.string.settings_tab_stats).setIcon(R.drawable.ic_clock_black_24dp)); symbol: variable ic_clock_black_24dp location: class drawable
- User:
/Users/steven/Dropbox/Projects/Android/lightsoff/app/src/main/java/com/steventroughtonsmith/lightsoff/app/SettingsActivity.java:56: error: cannot find symbol tabLayout.addTab(tabLayout.newTab().setText(R.string.settings_tab_settings).setIcon(R.drawable.ic_keyboard_black_24dp)); symbol: variable ic_keyboard_black_24dp location: class drawable
- User:
the layout I'm getting on a foldable when expanded it not at all the same as the layout I'm getting on the phone screen. I want it all unified, one layout
- User:
I am sitll getting the game view and the buttons side-by-side on the foldable. It's not using the same layout. Also the settings button has gone missing
- User:
also there's some kind of introduced background with style and shadow on both the game board and the score/controls area. I want that to match exactly what the iOS version looks like, which is driven by the app theme
- User:
I can confirm that the foldable version looks correct now
- User:
you've removed something that now means the foldable app is in compatibility mode rather than filling the screen
- User:
the tabs in the preferences view don't navigate anymore. And it still looks very ugly — I want it to use the right system theme colors to do a material design elevation-ready ui with multiple shades of the system theme
- User:
you need to check the iOS version again; the layer styles for all the UI elements in the game view are wrong, the spacing is incorrect, etc. Everything should be spaced and styled like iOS. background color, opacity, shadow, stroke color. All of it needs to match exactly, and this needs to be true for every theme in the app
- User:
the settings view should be an adaptive tab view. That's the modern material tab view that has a sidebar in large layouts, and a tab bar in small layouts (phone). I think it's com.google.android.material.navigationrail.NavigationRailView. It should be presented as a sheet if that's possible
- User:
the game view looks much, much closer to iOS now. The shape of the gear button is completely wrong though (check the iOS version), and the button colors are all grey rather than using the current game theme button color as per iOS
- User:
there are still opaque borders on the game board and the tiles on the game board that don't match the styling on iOS (which has a nice soft shadow and borders only if supplied by the current game theme)
- User:
there is still a square around the game board?
- User:
it might be the image view that provides a background for the Classic theme
- User:
You've got it so far. So right now the background of the bottom bar in the game view is too opaque and doesn't match the opacity on iOS as set by the app theme. Also those buttons are still using the system color (of grey) instead of the light yellow color on the honeysuckle theme. This issue is present on all the themes, but I'm testing with honeysuckle
- User:
that bar color still doesn't match iOS at all. It's now opaque. On iOS, it's a very semitransparent grey, and that color comes from the theme
- User:
we're nearly there. The settings gear button it too tall, it should be a little shorter (it fills the 'gap' in the shape underneath, with a few pts of a curved margin)
- User:
honeysuckle now looks beautiful. Other themes don't fare so well. Some of them (like Modern) have an extra gradient overlay that doesn't look nice. Others, like Spectral, have an ugly glow effect on the on tiles that shouldn't be there and doesn't match what happens on iOS
- User:
there is also a shadow applied to the logo image at the top of the screen that's incorrect. it shouldn't have a shadow — are we using the right logo image based on the iOS code?
- User:
the previews of the levels in the stage picker have inverted colors
- User:
both the stage picker and the theme selector are much uglier and less graphical than the iOS versions. Can you go back and check what iOS is doing and match it?
- User:
almost what I want. The theme thumbnails should have rounded corners and the same soft shadow I use on the iOS cells. They should also be constrained to a vertical height of probably 2/3 of what they are now. Also the grid in the stage select scrolls over some kind of top bar, it should respect its top bar
- User:
the cells in the theme picker are a little too small, make them 50% ish bigger
- User:
some of the themes look great, but others clearly aren't setting the right font colors in the lcd view (the score view) that their theme provides. Also the score view is missing some inner stroked rectangles that I can see in the iOS version. Please double-check exactly what the iOS version is doing re score text color and lcd view ornamentation
- User:
I notice that the logo doesn't always vertically center itself between the top of the game board and the safe area under the statusbar/notch/cutout. It should
- User:
still not centered. i'm noticing this on the phone layout
- User:
there's no reason to have both a back button and a done button in the stage selector. is there a prettier way to do this using the latest material design specs?
- User:
the stage selector also doesn't have the nice sections I have on iOS, which means the pretty infinity cell doesn't look at all like iOS
- User:
the logo color doesn't match the iOS version for each theme. That should be tinted as per the theme
- User:
we're almost there on all of the colored themes, but the Classic theme looks like hot garbage. Firstly, its background image doesn't fill the window edge to edge. Secondly, there should be a white window background color only for this theme. Thirdly, the three buttons at the bottom don't use the appropriate image assets like the iOS version. Please double and triple-check what the iOS version does, and match every little visual aspect
- User:
it's a lot better, but it doesn't match the iOS version. You picked the wrong image assets for all three buttons — use the images that the iOS version uses. The Classic theme is unique, it's very visually rich compared to the others. It also should have much more pronounced shadows on all the game tiles. Please verify against the iOS version
- User:
the tile shadows don't look at all like the iOS ones, do you have the color, radius and opacity right?
- User:
the color of the text in the lcd is much whiter than the iOS version of Classic; are you making sure they match?
- User:
the background image on Classic should ignore the safe insets of the cutout/status bar and the home indicator. It should go edge to edge, underneath those
- User:
you got the pressed/unpressed button images on that gear button wrong btw
- User:
here is what Classic looks like btw. You can see the top and bottom don't go flush edge to edge under the bars like they should. Also the game board grid itself looks to be clipped so you cant see the tile shadows at the bottom
[Image attached]
- User:
I seem to have lost the bottom gradient on the Classic theme. Can you verify it and compare with the iOS version?
- User:
almost perfect. so there's a background image view that goes under the game grid, only for Classic. On Android, it looks clipped. On iOS, it extends past the bounds and fades into the background. Can you confirm you're doing all the same layout and things as the iOS code please? thanks
- User:
hmm it's not fixed, are we using the same images as the current iOS code?
- User:
no it doesn't need any special effects added. but there's something not rendering the same as the iOS version. the image doesn't draw far outside of the game grid like the iPhone version does
- User:
now that looks perfect!
- User:
there's an extra glow layer on the Classic theme on iOS that I don't see on Android
- User:
the glow views seems to be getting clipped by the grid bounds?
- User:
when I change from the classic theme to something like honeysuckle, in large layout (foldable), the logo gets clipped. it should scale its contents to aspect fit
- User:
no it still clips the top of the logo
- User:
[Image attached]
- User:
[Image attached]
- User:
I attached the image
- User:
it's still clipping the top of the logo and it won't let me send you a screenshot
- User:
try fixing the clipping
- User:
here's the clipping issue
[Image attached]
- User:
hello
- User:
can you generate a transcript file of my side of this conversation for me? and put it on my desktop. In markdown. Thanks