Click here to Skip to main content
15,914,209 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
I designed a simple layout in android studio.
A linear layout with an image in right and textview in left of layout.
I set layout:gravity left or right for them.
Textview has width 0dp and weight 1.
In Emulator I see it is correct, But in Huawei Mobile Textview and image are inversed! Textview is in right and image in left of layout!!
How can I solve it?

What I have tried:

To align right or left correctly in any mobile like Huawei.
Posted
Updated 25-Aug-16 1:20am

I faced this problem too when I was developed my first app. To have more information, you may refer to How to support multiple screen in Android[^]
 
Share this answer
 
wseng this link that you posted also helped to me one time when I had the same issue.
 
Share this answer
 
Comments
wseng 25-Aug-16 8:54am    
You should post this below my comment, not as answer😊

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900