Technically, an officer should not be able to arrest you for refusing to show ID, but that doesn’t mean that it doesn’t happen. It’s important to note that police officers throughout the state of California have arrested people for failing to show ID when asked, and charged them with things like:
Resisting a peace officer Detainment for questioning