Creating a dialog after onClick in listView [duplicate]
问题 This question already has answers here : Creating a Dialog after an onClick event (4 answers) Closed 6 years ago . I'm trying to get a dialog out of a listView. I want to let the user see a dialog with 3 font sizes so he can change the font size of the app. To get to this dialog the user has to tap on a button in a listView. I made it like this: package com.reekapps.simplenote; import android.app.Activity; import android.app.AlertDialog; import android.app.AlertDialog.Builder; import android