Jump to content

ImageButton sur api 23


AceHomard

Recommended Posts

Bonjour, alors voila je fais un programme tout simple pour expliqué mon problème;

voila ce que j’obtiens avec l'api 17:

api17%20imagebutton.JPG

voila ce que j’obtiens avec l'api 23:

api%2023.JPG

l'arborescence des 2 ainsi que leurs codes xml est identique:

api%2017arborescence2.JPG

Si quelqu’un comprend pourquoi en passant dans l'api 23 les buttons ce mettent devant, et comment y remédier =D

Edited by AceHomard
Link to comment
Share on other sites

Salut,

 

Vérifies que l'élévation (android:elevation ou android:translationz) est correte pour chaque élément. (Ces propriétés sont apparues en API21, si je ne me trompe pas).

 

Sinon, tu peux forcer le bouton à passer devant avec sa méthode bringToFront()

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...