I am creating an intro activity and What I want is that logo was double bigger than text, and the text was centered to the layout.
With the next code I am having problems with diferents layouts (in some screens the TextView
is not shown:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/main_layout"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#ffffff"
android:orientation="vertical" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1" >
<ImageView
android:id="@+id/image_intro"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@string/image_view_desc"
android:scaleType="fitCenter"
android:src="@drawable/iconok" />
</LinearLayout>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:layout_weight="1" >
<TextView
android:id="@+id/email_textview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="55sp"
android:text="@string/loading_text3" />
</LinearLayout>
</LinearLayout>
What I am doing wrong?