I trying to make a custom Spinner containing Id and Title. This Spinner displays Title but everywhere in my code I can access to selected Id. how can I do it. it’s like ComboBox in C#.
thanks.
I trying to make a custom Spinner containing Id and Title. This Spinner displays
Share
I solved It!
At first I created a custom adapter:
}
and then, I created a custom Spinner:
}
Now in my activity code is like this: