i have a screen contains just two components
1-textView
2-button
the textView starts from the top left of the screen but i want it to starts from the middle of the screen not from the top
i read that cravity option will center my textView
this is the code
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<TextView
android:id="@+id/tvFinishTime"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Time Is End"
android:textAppearance="?android:attr/textAppearanceLarge" />
<Button
android:id="@+id/bFinishTimeBackToMain"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Button" />
</LinearLayout>
Well you can do it using

android:gravity="center", You can also do it using RelativeLayout.