6
hi im muốn biết làm thế nào để mở rộng biểu tượng animate một biểu tượng và di chuyển vị trí của nó?hình ảnh động android xem hình ảnh tỷ lệ
tôi có một câu lệnh if chạy một số kiểm tra và sau đó khi thực hiện xong, tôi muốn nó giảm tỷ lệ xem hình ảnh (biểu tượng) và di chuyển nó lên.
heres bố trí của tôi
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:background="@drawable/bg_default" >
<ImageView
android:id="@+id/su_logo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="34dp"
android:src="@drawable/su_logo"
android:contentDescription="@string/cd_su_logo"/>
<ImageView
android:id="@+id/su_shirts"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:src="@drawable/su_shirts"
android:contentDescription="@string/cd_su_shirts" />
</RelativeLayout>
heres java của tôi
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.layout_initialsetup);
preChecks();
}
public void preChecks(){
//check for internet connection
//check version
String curVersion = getResources().getString(R.string.app_versionCode);
int curVer = Integer.parseInt(curVersion);
String LiveVersion = "100";
int liveVer = Integer.parseInt(LiveVersion);
if(curVer < liveVer) Log.v("setup", "There is a new version");
else {
//scale animation
}
}
cách tốt nhất để giữ cho ImageView là gì hiển thị với các thuộc tính hoạt hình đăng hiển thị trong Vie w? –