I'm sorry. I'm being very vague on my question, but I'm not sure what to search to accomplish the layout I want to. Here's a sketch of what I'm wanting to do:
Basically, what I'm trying to do is recreate a standard booking app, and I'd like to know how can I recreate the part showing each room. I'd like some help how to create the layout to show 1 room and how to repeat that layout multiple times.
Use ListView or RecyclerView
Here is an example
https://uniqsofts.com/android-tutorials/android-listview-example
Related
I want to create a crossword puzzle using android studio. the problem that I run into is I can't figure out a good way to draw the crossword puzzle the crossword
upon selecting a word from that shape. the user will access an interface that is designed specifically for that word. where to enter the answer
The problem I have is how to actually create that crossword shape, especially since I need it to be created dynamically afterwards based on the supplied data.
After 15 days of research all I can find are those possibilities:
Using Table layout with each cell representing a character. But this approach is not appropriate and not optimate and create many problems.
Using GridView with the unused cells set to be invisible. this is better but I think there is a better way than creating Grids only to set most of it to invisible.*
**I am sure there is a better way, but can't figure it out.
I know I have to give a code sample for what I have but I can't even do that till I know what approach I need to create this. If there is any suggestion to make my question clear that will be welcomed as well.
Neither. This calls for custom view for the word grid. While you can probably get it to work without one, it's going to look very amateurish, and you're going to be very hacky. Instead, you'll want a totally custom view doing its own keyboard input handling. Unless this is like a school project where looks and UX don't matter and you just need it done.
Maybe someone knows/or found somewhere how to make this kind of list on android using kotlin?
https://cdn.dribbble.com/users/418188/screenshots/2182940/art_gallery_app.gif
I think it's similar to Material desgn:
https://material.io/design/components/lists.html#behavior
but I couldn't find anywhere is it cards layout or some expandable list view. So maybe someone experienced could tell me from where I should start to make list like in the first link?
Moreover for such transitions is it better to use Fragments or Activities?
I am Stuck at place where i want to developer custom layout in android, please Suggest that how can i achieve layout like this which technology should i use , I want to develop application like Booking of Seats in bus or Some thing like that Please Guide which way i go like on XML,openGL , Canvas Please guide me
If you need to interact (handle click or touch) with every view marked with a number I would strongly recommend using XML. Using OpenGL or Canvas would add plenty of time to achieve a good interaction. Creating your layout in XML will be the hardest part, but after that you'll be able to interact with every view setting regular View.OnClickListener or TouchListener.
Hope this suggestion helps.
At the top there is the favorites/styles/all channels
i don't know what that widget/control is i need to know what it is
i am certain i saw it before i just can't seem to find it again.
then there is a listview which is easy to implement no help needed there
then the same control again, i need to know how to build it.
it looks like a native Android control, i know how i can make one just like it using image buttons but i am sure i am missing something.
P.S. this is an image from sky.fm app on android
EDIT: I Do no need help with the ListView i already did that
What i do need help with is how to make the "favorites/styles/all channels" buttons if there is a way to do natively.
If there isn't a way to do natively, and you are sure just say there isn't a way to do natively ( that would be a good answer )
the perfect answer would be a working code, but i am not lazy i am already implementing the code my self
There's no native control for this. It's probably a Button or maybe ToggleButton. You could create a background xml with different states for selected true or false. And when you click the button toggle the selected state.
Top might be a custom tab layout, or just a bunch of buttons with custom styling.
Main part looks like a listview with complex row views.
Bottom almost definately is a bunch of buttons.
You can implement it using ClickableListAdapter.There is also tab implementation.try it.
Just make it using image buttons and put filters in your ListView, or create your own filter form scratch !
I have a list view with some items in it and I would like to know how to add extra information to the side of this? I have a photoshopped example below of what I mean, it's difficult to describe without an image or I would have used google to try and find the answer myself. I want it with the extra text on the right hand side, i've seen it done easily within the iPhone but i'm a bit stuck with android. Thanks.
it's easy in Android too, you need to create a custom layout for a list item and set up an adapter to write to the fields of your new layout. here an example.