PercentRelativeLayout okay on Emulator, not okay on phone

后端 未结 2 1956
后悔当初
后悔当初 2021-01-26 02:00

I\'ve just implemented PercentRelativeLayout. I\'ve added: compile \'com.android.support:percent:24.2.0\' to the gradle so Android Studio at least reco

2条回答
  •  面向向阳花
    2021-01-26 02:47

    Inspired by BR89, the solution to my issue was actually use "android:src" instead of "app:srcCompat" and also specifying "0dp" on "android:layout_width"

    But putting both "app:layout_widthPercent" and "app:layout_heightPercent" will not have any issue on my physical device though.

    
        
    
    

提交回复
热议问题