i've been working on app, , have problem. trying textview background move above current screen. preview renders correctly, emulator , device both don't show it. here code -
<framelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingleft="0dp" android:paddingright="0dp" android:paddingtop="0dp" android:paddingbottom="0dp" tools:context=".inspection" android:baselinealigned="false"> <linearlayout android:layout_width="match_parent" android:layout_height="match_parent" android:baselinealigned="false"> <fragment android:id="@+id/nativeuser_fragment" android:layout_width="match_parent" android:layout_height="match_parent" android:name="com.aadevs.thetabapp.nativeuserfragment" android:layout_weight="0.5" tools:layout="@layout/fragment_nativeuser" /> <fragment android:id="@+id/otheruser_fragment" android:name="com.aadevs.thetabapp.otheruserfragment" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="0.5" tools:layout="@layout/fragment_otheruser" /> </linearlayout> <relativelayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:paddingleft="40dp" android:paddingright="40dp" android:paddingbottom="60dp" android:paddingtop="60dp" android:background="@drawable/debtcircle"> <textview android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="hey there" android:layout_gravity="center"/> </relativelayout> here code drawable debtcircle -
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="ring"> <stroke android:width="2px"/> <solid android:color="#ffffff"/> here different renders (preview, emulator , device) 


as can see, preview works fine, emulator , device not working expected. can me?
there problem in drawable.... should use below drawable...
<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval"> <stroke android:width="2dp" android:color="strokecolorhere"/> <solid android:color="#ffffff"/> </shape> give stroke color if want...just use it...
Comments
Post a Comment