Former Maryland Gov. Martin O'Malley said he won't endorse in the Democratic primary, in his first TV interview since dropping his own presidential bid.

ADVERTISEMENT

"I've had terrific conversations with Secretary Clinton and Sen. Sanders, and I have great admiration for both of them, and I look forward to supporting the party's nominee," O'Malley said during an interview Thursday with MSNBC's Rachel Maddow.

While he won't choose a side during the primaries, he said he would "gladly" vote for either Democrat before supporting GOP candidates Ted Cruz Rafael (Ted) Edward CruzSenate Republicans face tough decision on replacing Ginsburg Cruz: Trump should nominate a Supreme Court justice next week Renewed focus on Trump's Supreme Court list after Ginsburg's death MORE or Donald Trump Donald John TrumpObama calls on Senate not to fill Ginsburg's vacancy until after election Planned Parenthood: 'The fate of our rights' depends on Ginsburg replacement Progressive group to spend M in ad campaign on Supreme Court vacancy MORE.

"Both of these candidates represent a much better vision for our country's future," he said.

O'Malley showed no interest in running for elected office in the future, saying he'll continue working on climate change and voting rights issues as a citizen.

"That's what my family and I are focused on," he said, adding that he'll teach in the fall at universities throughout Maryland.

O'Malley dropped out of the race for the Democratic nomination after a poor showing in the first-in-the-nation Iowa caucuses, grabbing just 0.6 percent of the vote.

Maryland voters head to the polls on April 26, and recent polling puts Hillary Clinton Hillary Diane Rodham ClintonWhat Senate Republicans have said about election-year Supreme Court vacancies Bipartisan praise pours in after Ginsburg's death Trump carries on with rally, unaware of Ginsburg's death MORE up over Bernie Sanders Bernie SandersKenosha will be a good bellwether in 2020 Biden's fiscal program: What is the likely market impact? McConnell accuses Democrats of sowing division by 'downplaying progress' on election security MORE by a significant margin.