android - 安卓如何通过设置数量而实现餐厅里的台座数量?
PHP中文网
PHP中文网 2017-04-17 17:47:06
0
1
437

我在帮自己的餐厅弄一个点菜的app。 想实现如下效果,不过没有头绪这种效果应该从何开始。 有大神可否指点一下? 详情我已经用截图表示出来。

Activity 1, 通过 EditText 设置 台座数量
Activity 2, 收到 Edittext 的数量, 然后用循环把 桌子在listview展现出来。 桌子就用一个普通图片imageview代表。
Activity 3, 通过implement onclick listener 获取 该桌号 。

跪求大神们的提示!!!

PHP中文网
PHP中文网

认证0级讲师

reply all(1)
小葫芦
  1. Add a confirmation button, enter the number of pedestals, click Confirm, and create a list based on the quantity

  2. There are two columns in your picture. You need to use GridView or RecyclerView. The corresponding adapter creates items based on the number of lists

  3. The simplest way to get the station number is to set the station number into the text of TextView, and then get the station number based on the current text when clicked.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template