dialog - Android DialogFragment with array of strings open in middle of array? -


I am opening a dialog so that my user can choose a year from the list. AlertDialog.Bilder Builder = New AlertDialog Builder (getActivity ()); Builder.setTitle ("Select the year") .setItems (year, New DialogInterface.OnClickListener) {Click on Public Zero (DialogInterface dialogue, int) which is the index status of the selected items in the // // 'which' argument)} ; Return builder.cent ();

year variable is a string [] but it can be longer than 100 objects. Is the dialog showing a particular item in the list in the initial border? For example, if the array of the year is from 1913-2013 then it always opens for the year 1913. Is it anyway to open in the middle of the list in the 1980s?

Try to increase a layout with a list view in the CreativesView method of a dialog.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -