title: Expandable List View refresh automate?
body: <p>My Scenario is that, I have one Expandable List View add i dynamically and child in the list. my child layout is like that.</p>
  
  <p><img src="https://i.stack.imgur.com/a2JZs.png" alt="enter image description here"></p>
  
  <p>When i click on edit button with respective item i am open dialog box get input from user and on click update respective detail update into database.</p>
  
  <p>Now from database retrieve all data and set to expandable list view.
  Hope you understand my scenario.</p>
  
  <p>its my code for update dialog.</p>
  
  <pre><code>try {
                  alertDialogBuilder.setCancelable(false);
                  alertDialogBuilder.setPositiveButton("Ok", new DialogInterface.OnClickListener() {
                      @Override
                      public void onClick(DialogInterface dialog, int which) {
                          if (mET_asset_amount.getText().toString().isEmpty() || mET_asset_return_pretext.getText().toString().isEmpty() || mET_asset_texrate.getText().toString().isEmpty()) {
                              // mErrorMessage.setVisibility(View.VISIBLE);
                              Toast.makeText(mContext, "Please fill detail", Toast.LENGTH_SHORT).show();
                          } else {
                              assetTable = new AssetTable(mContext);
                              UtilClass.asset_amount = Integer.parseInt(mET_asset_amount.getText().toString());
                              UtilClass.asset_return_pretext = Integer.parseInt(mET_asset_return_pretext.getText().toString());
                              UtilClass.asset_texrate = Integer.parseInt(mET_asset_texrate.getText().toString());
                              Log.e("Inputed data", UtilClass.asset_amount + " " + UtilClass.asset_return_pretext + " " + UtilClass.asset_texrate);
                              assetTable.assetUpdate(assetChild.getmAssetName());
  
                          }
  
                      }
                  });
                  alertDialogBuilder.setNegativeButton("Cancel", new DialogInterface.OnClickListener() {
                      @Override
                      public void onClick(DialogInterface dialog, int which) {
                          dialog.dismiss();
                      }
                  });
  
                  alertDialogBuilder.show();
  
              } catch (Exception e) {
                  Log.e("Error in add asset", e.toString());
              }
  </code></pre>
  
  <p>that's code in my adapter.
  it's update data correctly but it not refresh expandable list view .</p>
  
  <p>my question is that when i click on "ok" button update dialog i want to refresh  expandable list view . i stuck in that problem. please anybody can help.</p>
  
  <p>thank you very much. </p>