- 授权协议: Apache
- 开发语言: Java
- 操作系统: Android
- 软件首页: https://github.com/Cangol/Cangol-uiframe
软件介绍
Cangol-UIFrame 是一款App UI 框架,用于Android应用。
示例代码:
package mobi.cangol.mobile.uiframe.demo;
import mobi.cangol.mobile.base.BaseActionBarActivity;
import mobi.cangol.mobile.navigation.TabNavigationFragmentActivity;
import mobi.cangol.mobile.uiframe.demo.fragment.HomeFragment;
import mobi.cangol.mobile.logging.Log;
import mobi.cangol.mobile.uiframe.demo.fragment.MenuFragment;
import mobi.cangol.mobile.uiframe.demo.fragment.MenuFragment2;
import android.annotation.SuppressLint;
import android.os.Bundle;
@SuppressLint("ResourceAsColor")
public class MainActivity extends TabNavigationFragmentActivity {
private static long back_pressed;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
this.setStatusBarTintColor(R.color.red);
this.setNavigationBarTintColor(R.color.black);
setContentView(R.layout.activity_main);
this.getCustomActionBar().setBackgroundResource(R.color.red);
if (savedInstanceState == null) {
this.setMenuFragment(MenuFragment.class,null);
this.setContentFragment(HomeFragment.class, "HomeFragment", null);
}
findViews();
initViews(savedInstanceState);
initData(savedInstanceState);
//this.setFloatActionBarEnabled(true);
this.initFragmentStack(R.id.content_frame);
if(savedInstanceState==null)
this.replaceFragment(HomeFragment.class, "Home", null);
}
@Override
protected void onStart() {
super.onStart();
Log.v("onStart " + System.currentTimeMillis());
}
@Override
public void findViews() {
}
@Override
public void initViews(Bundle savedInstanceState) {
}
@Override
public void initData(Bundle savedInstanceState) {
}
@Override
public void onBack() {
if(back_pressed+2000>System.currentTimeMillis()){
super.onBack();
app.exit();
}else{
back_pressed=System.currentTimeMillis();
showToast("Please on back");
}
}
public int getContentFrameId() {
return R.id.content_frame;
}
}
Programming PHP
Rasmus Lerdorf、Kevin Tatroe、Peter MacIntyre / O'Reilly Media / 2006-5-5 / USD 39.99
Programming PHP, 2nd Edition, is the authoritative guide to PHP 5 and is filled with the unique knowledge of the creator of PHP (Rasmus Lerdorf) and other PHP experts. When it comes to creating websit......一起来看看 《Programming PHP》 这本书的介绍吧!
