Android app working on emulator but not on real device

后端 未结 3 1430
星月不相逢
星月不相逢 2020-12-04 00:02

Just wrote this simple app for testing: one button that displays date and hour, and another button that selects a random color and shows it. It works fine on Emulator but th

3条回答
  •  星月不相逢
    2020-12-04 00:39

    I'm not convinced right-to-left support is the problem, but I agree that the contradictory placements attributes could cause unforeseen problems.

    If I were you, I'd get rid of all the confusing relative placement attributes, and I'd replace the RelativeLayout with one simpler vertical LinearLayout containing two horizontal layouts (please don't just cut and paste them from the previous code, it's better to write those LinearLayouts from scratch or use the IDE to initially generate them)

提交回复
热议问题