私のリスト ビュー アイテムには 3 つまたは 4 つのボタンがあり、非同期タスクを使用して各ボタンで Web サービスを呼び出しています。 Web サービス呼び出し。
誰かがそれを行う方法を教えてもらえますか?
AsyncTask の onPostExecute() メソッドで、ボタンの setBacgroundColor() メソッドに変更を加えることができます。
@Override
protected void onPostExecute(String result) {
super.onPostExecute(result);
//Do what ever you want depending on the result that you
//you pass in the return of the doInBackGround....
button.setBackGroundColor(Color.GREEN);
}
これを試してみてください