Replies: 3 comments 2 replies
-
So are you using Orbit's TextField? If yes, there is the functionality to bring it into focus (see its source code). We also utilize some measuring and Locals to add additional padding to bring the button above Scaffold's CTA. |
Beta Was this translation helpful? Give feedback.
-
Yes, TextField is from Orbit. One thing I noticed is that, in the sample app, there is So is the verticalScroll needed including Scaffold? Also could you please explain the expected layout for Orbit design? I was thinking about removing Scaffold entirely, but it looks like TextField sort of depends on Scaffold, right? |
Beta Was this translation helpful? Give feedback.
-
I'm not sure I follow, but yes, scrollable parent is needed if you want to bring TextFiled above the keyboard.
There is no requirement to use Scaffold to design a screen. You can be good with Column, Surface, ... Scaffold is a helper for bottom action layouting and topappbar layouting. At least for now. |
Beta Was this translation helpful? Give feedback.
-
In your sample app, in the Text Fields controls if I focus a field and keyboard shows up then TextFields also scroll and appear above primary button
How does that work? on my app, with your components, this is the results
TextField is below the keyboard with textSelectHandle on top of it :D
Catalog app has
android:windowSoftInputMode="adjustResize"
, but adding it on my app has no effect.My layout is like this:
which is included inside
OrbitTheme
->Scaffold
-> Jetpack Navigation...Beta Was this translation helpful? Give feedback.
All reactions