android仿变形金刚效果实现MatchView

MrLee 2015-3-6 621 0
what?变形金刚!先看效果吧!

687474703a2f2f7777312e73696e61696d672e636e2f6d773639302f6136393561636465677731656d79746e6b347334356732306567306d6b3439302e676966


MainActivity.java
package com.lee.matchview;
import com.example.matchview.R;
import com.roger.match.library.MatchTextView;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
public class MainActivity extends Activity {
	boolean b = false;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main_activity);
	}
	public void onClick(View view) {
		MatchTextView match_text = (MatchTextView) findViewById(R.id.match_text);
		b = !b;
		if (b)
			match_text.hide();
		else
			match_text.show();
	}
}
源码地址:MatchView

本文固定链接:http://www.ithtw.com/thread-1304.htm
转载请注明:MrLee 2015-3-6 于 IT十万个为什么 发表
最新回复 (0)
回复
登录发表 or 还没有账号?去注册