If you create too many views at runtime it could be a performance issue for
it.

On Thu, Aug 18, 2016 at 8:19 AM, Aleksey Shurtygin <
[email protected]> wrote:

> Hi,
>
> I am long-time C# developer. I recently decided to play around with
> Android and Java. My first project I am trying to do is to create Crossword
> game. I have general idea on how to proceed but there is one thing that
> still is not very clear. If anyone can provide any input I would appreciate
> it.
>
> What would be the best way to build crossword board? I am considering
> couple of ways:
>
> 1. Create a view/fragment for a single cell and dynamically build whole
> board. With this approach I am concerned about performance. Considering I
> will have a 12x12 board, that will create 124 view objects. Is that
> considered to be heavy or it should be no big deal?
> 2. Draw the whole thing manually and catch user's clicks/touch to add
> interactivity. This probably can avoid performance issues but feels like
> too much manual work.
>
> Do you think it makes sense to invest time into learning graphics or
> creating basic GridLayout/GridView/TableLayout with 120 TextViews should
> do it nicely? Or if there are any other suggestions feel free to jump in.
>
> Thanks!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/android-developers/a7e3ab71-e284-4564-91e9-
> 2244946bcd76%40googlegroups.com
> <https://groups.google.com/d/msgid/android-developers/a7e3ab71-e284-4564-91e9-2244946bcd76%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CABHzXAR2p0SuMxPCkYFDRLkimCqC-0OKG6u49K_50vmbKeP86A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to