java - Rendering problems in xml for admob -
java - Rendering problems in xml for admob -
i next tutorial on how admob on app here , in xml layout file activity getting rendering problem:
a <fragment> tag allows layout file dynamically include different layouts @ runtime. @ layout editing time specific layout used not known. can take layout previewed while editing layout. - <fragment xetron.cosmicclicker.myactivity$adfragment ...> (pick layout...) - <fragment xetron.cosmicclicker.myactivity$adfragment ...> (pick layout...) not warn <fragment> tags in session xml layout file activity below
<linearlayout 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="@dimen/activity_horizontal_margin" android:paddingright="@dimen/activity_horizontal_margin" android:paddingtop="8dp" android:orientation="vertical" android:paddingbottom="6dp" android:gravity="center|top" android:background="@drawable/background" tools:context=".myactivity"> <fragment android:name="xetron.cosmicclicker.myactivity$adfragment" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_above="@+id/adfragment" /> <fragment android:id="@+id/adfragment" android:name="xetron.cosmicclicker.myactivity$adfragment" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignparentbottom="true" /> </linearlayout> what have done wrong , how prepare this?
in fragments seek putting this:
tools:layout="@layout/my_fragment_view"
where my_fragment_view layout want loaded fragment. viewer only. think graphical view giving tip can render more smoothly. tools attribute editor only. not work @ run time.
<fragment android:name="xetron.cosmicclicker.myactivity$adfragment" android:layout_width="match_parent" android:layout_height="match_parent" tools:layout="@layout/my_fragment_view" android:layout_above="@+id/adfragment" /> java android
Comments
Post a Comment