Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Valeria Rogatchevskikh valllllll2000

🎯
Focusing
View GitHub Profile
@valllllll2000
valllllll2000 / MyActivity.java
Created Oct 27, 2012
MyActivity for Animations
View MyActivity.java
public class MyActivity extends Activity {
private Animation a;
private ImageView im;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
View scaletranslate.xml
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<scale android:fromXScale="1.0"
android:fromYScale="1.0"
android:toXScale="2.0"
android:toYScale="2.0"
android:duration="1000">
</scale>
<translate