-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SQLITE #13
Comments
Hi @ryanmunene79 . For this case, you can use the combination of ArrayAdapter and DialogFragment. List down the first TextView using the array adapter. To edit the particular item in the list, you can add item.onClickListener and open a Dialog to show the editText with a prefilled setText to the item. Once you change the editText, the changes can be maintained at the db level. Because when you define your custom layout you will add an editText in your case, which may have only one ID and if you target this editText, the changes will always go for the first item in the list but not the corresponding TextView. |
1 .Create a Custom Adapter Class:
} |
how would you use the custom adapter if you are fetching data from the db for the first textview and instead of the second textview,you use an edittext which should set data to the db
The text was updated successfully, but these errors were encountered: