Android - 在ListView外部设置TextView以使用Button获取ListView内的RatingBar值

时间:2016-12-07 11:58:59

标签: android listview

我想知道是否可以将TextView设置为ListView以使用Button

获取ListView内的值

示例首先打开应用程序:

|------------------|
|TextView          | (TextView Inside ListView)
|* * *             | (Rating Value inside ListView)
|------------------| (ListView)
|                  |
|                  |
| Button (TextView)| (Button and TextView outside ListView)

如何在按下TextView时将ListView设置在Button之外?

压缩Button时的示例:

|------------------|
|TextView          | (TextView Inside ListView)
|* * * * *         | (Rating Value inside ListView)
|------------------| (ListView)
|                  |
|                  |
| Button "Star : 5"| (TextView outside ListView set "Star : 5" when button pressed)

0 个答案:

没有答案