Skip to content

Instantly share code, notes, and snippets.

@YugandharVadlamudi
Created February 8, 2017 11:05
Show Gist options
  • Save YugandharVadlamudi/b4e0614596e4369e3425c0127d85e072 to your computer and use it in GitHub Desktop.
Save YugandharVadlamudi/b4e0614596e4369e3425c0127d85e072 to your computer and use it in GitHub Desktop.
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_animation_on_click_test"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.compindia.viewstateanimationapp.AnimationOnClickTestActivity">
<TextView
android:id="@+id/tv_demoanimation"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="demo text"
android:textSize="20sp" />
<Button
android:id="@+id/bt_onclickcheck"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Click"
android:layout_below="@id/tv_demoanimation"
/>
<!--
Object Animation example
-->
<LinearLayout
android:id="@+id/ll_objectanimation"
android:orientation="vertical"
android:layout_width="100dp"
android:layout_height="80dp"
android:background="@color/colorAccent"
android:layout_below="@id/bt_onclickcheck"
></LinearLayout>
</RelativeLayout>
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/**
*
*/
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_animation_on_click_test);
init();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment