는 사실은 내가 (width
및 height
에서) matchParent
인 Linear Layout
있고, 지금은 처음에 볼 수 없습니다해야하는 사항 다른 layout
(linearLayout
그 이하)를 작성해야합니다.안드로이드에서 애니메이션을 얻는 방법?
내 활동 인이 실행되면 그 숨겨진 레이아웃에 애니메이션을 적용하려고합니다.
숨겨진 layout
은 위쪽에서 아래쪽으로 와야합니다. 나는이 애니메이션을 어떻게 달성 해야할지 모르겠다 ?? 나는 처음에는 보이지 않아야하는 레이아웃을 만드는 방법을 모르며, 지연 후에는 화면 아래에서 보여야하고 옆으로 오게된다.
여기에 XML의 내 코드는 당신이 숨기고 다른 레이아웃을 가지고 싶어 코드에있는 레이아웃 언급하지 않은
<?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>
당신은 링크에 주어진 응답을 따를 수 있습니다. [http://stackoverflow.com/questions/18232372/slide-a-layout-up-from-bottom-of-screen] –
시도해 봅시다 .... –