android - Weird behavior with a RelativeLayout and the Galaxy S4 -
this not first time such thing occured galaxy s4. here situation :
i have layout in want center in parent thin line , center horizontally above , below 2 other views. managed achieve desired effect on every android phone hands on except galaxy s4.
tested phones :
- nexus 6 (android 5.1.1) - working
- nexus 4 (android 5.1.1) - working
- wiko darkfull (android 4.2.1) - working
- galaxy s4 gt-i9505 (android 4.4.2) - not working
here effect working on every phone except s4 :

and here effect have on s4 :

the relevant part of code :
<relativelayout android:layout_width="64dp" android:layout_height="match_parent" android:background="@color/black_blur_12"> <imageview android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_above="@+id/separator" android:layout_centerhorizontal="true" android:layout_marginright="8dp" android:src="@drawable/ic_group_white_24dp" /> <imageview android:id="@+id/separator" android:layout_width="32dp" android:layout_height="0.5dp" android:layout_centerinparent="true" android:background="@color/white"/> <textview android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/separator" android:layout_centerhorizontal="true" android:singleline="true" android:textappearance="@android:style/textappearance.medium" android:textcolor="@color/white" android:text="0"/> </relativelayout> as said, not first time have problem layouts , galaxy s4. roms official.
thanks help.
Comments
Post a Comment