Re: [android-developers] Views vs Graphics

2016-08-18 Thread Aleksey Shurtygin
Thank you! How would it affect performance if I did it at design time and 
created all 120 views on a single activity in the xml file?

-- 
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 android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
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/7b93372e-9c44-4ed3-9669-6b67e2f8b558%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Views vs Graphics

2016-08-18 Thread sardar khan
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 <
aleksey.shurty...@gmail.com> 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 android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> 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
> 
> .
> 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 android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
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.


[android-developers] Views vs Graphics

2016-08-17 Thread Aleksey Shurtygin
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 android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
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.
For more options, visit https://groups.google.com/d/optout.