Actually I have an Linear Layout
which is matchParent
(in width
and height
), and now I need to create a another layout
(below that linearLayout
) which must not be visible initially.
And when my activity will run then I want to animate that hided layout.
The hided layout
must be come from below to up side. I don't know how to achieve this animation ?? I don't know how to create the layout which must not be visible initially and after a delay it must show from below of the screen and come up side ???
here is my code of xml file
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<LinearLayout
android:id="@+id/imageupLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="vertical" >
<ImageView
android:id="@+id/imgview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:background="@drawable/logo" />
</LinearLayout>
<LinearLayout
android:id="@+id/hided_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:background="#56a24b"
android:orientation="vertical"
android:visibility="visible" >
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginTop="15dip"
android:background="@drawable/btn_bg"
android:gravity="center" >
<Button
android:id="@+id/btn_login"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_margin="2dip"
android:background="@drawable/btn_login" />
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginTop="10dip"
android:background="@drawable/btn_bg"
android:gravity="center" >
<Button
android:id="@+id/btn_register"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_margin="2dip"
android:background="@drawable/btn_register" />
</LinearLayout>
<TextView
android:id="@+id/tv_just_explore"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="20dip"
android:layout_marginTop="20dip"
android:gravity="center"
android:text="JUST EXPLORE"
android:textColor="#FFFFFF"
android:textSize="15dip"
android:textStyle="bold" />
</LinearLayout>
</LinearLayout>