<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          Cangol-UIFrameAndroid 菜單框架

          聯(lián)合創(chuàng)作 · 2023-09-25 03:08

          Cangol-UIFrame 是一款A(yù)pp UI 框架,用于Android應(yīng)用。

          示例代碼:

          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;    
          	}    
          }
          瀏覽 22
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          評論
          圖片
          表情
          推薦
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  亚洲精品乱伦视频 | 国产淫色| 亚洲人体视频在线观看 | 中文字幕亚洲无码高清 | 欧美np|