java - Flipping to next screen shows black color in background -
in vertical flip effect,when flip next screen background shows black color happens in gt_n7100 mobile...how fix problem???can please me...
<relativelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@android:color/white" android:orientation="vertical"
>
<imageview android:id="@+id/bar" android:layout_width="480dp" android:layout_height="1dp" android:layout_margintop="36dp" android:scaletype="fitxy" android:src="@drawable/line" /> <textview android:id="@+id/title" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/bar" android:layout_margin="5dp" android:textappearance="@android:style/textappearance.medium" android:textcolor="@android:color/black" android:textsize="20sp" android:textstyle="bold" /> <imageview android:id="@+id/photo" android:layout_width="fill_parent" android:layout_height="330dp" android:layout_below="@+id/title" android:layout_gravity="center_horizontal" android:layout_margin="5dp" android:layout_margintop="5dp" android:scaletype="centercrop" />
if performing heavy task on main thread in oncreate()
method, might block oncreate()
ui; avoid issue can run separate thread task.
@override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_splace_layout); mcontext = this; thread th = new thread(new runnable() { @override public void run() { // todo auto-generated method stub try { mtask(); } catch (exception e) { // todo: handle exception } } }); th.start(); }
Comments
Post a Comment