Style fragments android



I’ve been trying to build a similar app as the sample app on the android developer website http://ift.tt/TgKdHD. The problem is I don’t know the proper way of styling fragments



<FrameLayout xmlns:android="http://ift.tt/nIICcg"
android:id="@+id/fragment_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#ffffff"/>


^ this makes the background white but you cant see the text.



<TextView xmlns:android="http://ift.tt/nIICcg"
android:id="@+id/article"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="16dp"
android:textSize="18sp"
android:textColor="#000000" />


^ this works perfectly fine.


No comments:

Post a Comment