所以我得到了关于AlertDialog的java代码: AlertDialog.Builder builder= new AlertDialog.Builder(context:this); .setItems(options, new DialogInterface.OnClickListener(){
我使用了LiveData>,因为这就是赋值说明要使用的内容。 我遇到的问题是: 1.我不知道如何使用位置从recipe类中获得正确的食谱。2.我需要使用List而不是ArrayList 这是我的主要活动类 public class MainActivity extends AppCompatActivity implements RecipeListAdapter.OnItemClickListeneralertDialog = new AlertDialog.
这是代码:ad.setTitle("Unanswered Questions");ad.setMessage("You have not answered all the questions.");
ad.setPositiveButton("OK", new DialogInterface.OnClickListener
我目前正在使用一个应用程序,需要利用大量的AlertDialogs。我目前已经在这里编写了一个基本的代码: AlertDialog.Builder StopDialog = new AlertDialog.Builderfinish(); });
StopDialog.setNegativeButton(R.string.No_Button, new DialogInterface.OnClickListener我知道