• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java Shimmer类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.romainpiel.shimmer.Shimmer的典型用法代码示例。如果您正苦于以下问题:Java Shimmer类的具体用法?Java Shimmer怎么用?Java Shimmer使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



Shimmer类属于com.romainpiel.shimmer包,在下文中一共展示了Shimmer类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: onCreate

import com.romainpiel.shimmer.Shimmer; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    hideStatusBar();
    setContentView(R.layout.splash_activity);
    LoadLaunchPage();
    //启动字体动画
    new Shimmer().setDuration(1200).setStartDelay(1200).setRepeatCount(0)
            .start((ShimmerTextView)findViewById(R.id.launch_text));

    new Handler().postDelayed(new Runnable() {
        @Override
        public void run() {
            Intent intent = new Intent(SplashActivity.this, MainActivity.class);
            startActivity(intent);
            finish();
        }
    }, 2600);
}
 
开发者ID:walkthehorizon,项目名称:HeartRead,代码行数:20,代码来源:SplashActivity.java


示例2: initActionBar

import com.romainpiel.shimmer.Shimmer; //导入依赖的package包/类
private void initActionBar() {
    actionBar = getActionBar();
    actionBar.setDisplayHomeAsUpEnabled(true);
    actionBar.setDisplayShowHomeEnabled(true);
    actionBar.setHomeButtonEnabled(true);
    actionBar.setDisplayShowTitleEnabled(false);
    actionBar.setDisplayShowCustomEnabled(true);
    View view = View.inflate(this, R.layout.action_bar_title, null);
    mActionBarTitle = (ShimmerTextView) view.findViewById(R.id.tv_shimmer);
    new Shimmer().start(mActionBarTitle);
    actionBar.setCustomView(view);

    // These two lines not needed,
    // just to get the look of facebook (changing background color & hiding the ic_app)
    getActionBar().setBackgroundDrawable(new ColorDrawable(Color.parseColor("#3b5998")));
    getActionBar().setIcon(R.drawable.ic_app);
}
 
开发者ID:bxbxbai,项目名称:FeedListViewDemo,代码行数:18,代码来源:BaseActivity.java


示例3: onCreate

import com.romainpiel.shimmer.Shimmer; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    generator();
    FacebookSdk.sdkInitialize(getApplicationContext());
    callbackManager = CallbackManager.Factory.create();
    AppEventsLogger.activateApp(this);
    requestWindowFeature(Window.FEATURE_NO_TITLE);
    getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
            WindowManager.LayoutParams.FLAG_FULLSCREEN);
    setContentView(R.layout.activity_main);
    LogSaver.appendLog(TAG);
    logoiv = (ImageView) findViewById(R.id.imageView);
    TextView tv2016= (TextView) findViewById(R.id.l2016);
    Typeface typeface1=Typeface.createFromAsset(getAssets(),"canaro_extra_bold.otf");
    tv2016.setTypeface(typeface1);
    Typeface typeface=Typeface.createFromAsset(getAssets(),"canaro_extra_bold.otf");
    ShimmerTextView textView = (ShimmerTextView) findViewById(R.id.shimmertv);
    KenBurnsView kenBurnsView= (KenBurnsView) findViewById(R.id.kbview);
    kenBurnsView.animate().setDuration(500).start();
    if (textView != null) {
        textView.setTypeface(typeface);
    }
    Shimmer shimmer = new Shimmer();
    shimmer.start(textView);
    nextActivity();

}
 
开发者ID:rishabh115,项目名称:Odyssey2017,代码行数:29,代码来源:MainActivity.java


示例4: onCreate

import com.romainpiel.shimmer.Shimmer; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_loading);
    shimmerTextView = (ShimmerTextView)findViewById(R.id.textView3);
     shimmer= new Shimmer();
    shimmer.start(shimmerTextView);
    New n=new New();
    n.start();

}
 
开发者ID:akashdeepsingh9988,项目名称:Cybernet-VPN,代码行数:12,代码来源:LoadingActivity.java


示例5: settingLockView

import com.romainpiel.shimmer.Shimmer; //导入依赖的package包/类
private void settingLockView() {
    mBackgroundLayout = (RelativeLayout) mLockscreenView.findViewById(R.id.lockscreen_background_layout);
    mBackgroundInLayout = (RelativeLayout) mLockscreenView.findViewById(R.id.lockscreen_background_in_layout);
    mBackgroundLockImageView = (ImageView) mLockscreenView.findViewById(R.id.lockscreen_background_image);
    mForgroundLayout = (RelativeLayout) mLockscreenView.findViewById(R.id.lockscreen_forground_layout);
    mShimmerTextView = (ShimmerTextView) mLockscreenView.findViewById(R.id.shimmer_tv);
    (new Shimmer()).start(mShimmerTextView);
    mForgroundLayout.setOnTouchListener(mViewTouchListener);

    mStatusBackgruondDummyView = (RelativeLayout) mLockscreenView.findViewById(R.id.lockscreen_background_status_dummy);
    mStatusForgruondDummyView = (RelativeLayout) mLockscreenView.findViewById(R.id.lockscreen_forground_status_dummy);
    setBackGroundLockView();

    DisplayMetrics displayMetrics = mContext.getResources().getDisplayMetrics();
    mDeviceWidth = displayMetrics.widthPixels;
    mDevideDeviceWidth = (mDeviceWidth / 2);
    mBackgroundLockImageView.setX(((mDevideDeviceWidth) * -1));

    //kitkat
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
        int val = LockScreenUtil.getInstance(mContext).getStatusBarHeight();
        RelativeLayout.LayoutParams forgroundParam = (RelativeLayout.LayoutParams) mStatusForgruondDummyView.getLayoutParams();
        forgroundParam.height = val;
        mStatusForgruondDummyView.setLayoutParams(forgroundParam);
        AlphaAnimation alpha = new AlphaAnimation(0.5F, 0.5F);
        alpha.setDuration(0); // Make animation instant
        alpha.setFillAfter(true); // Tell it to persist after the animation ends
        mStatusForgruondDummyView.startAnimation(alpha);
        RelativeLayout.LayoutParams backgroundParam = (RelativeLayout.LayoutParams) mStatusBackgruondDummyView.getLayoutParams();
        backgroundParam.height = val;
        mStatusBackgruondDummyView.setLayoutParams(backgroundParam);
    }
}
 
开发者ID:tortuvshin,项目名称:memorize,代码行数:34,代码来源:LockScreenViewService.java


示例6: init

import com.romainpiel.shimmer.Shimmer; //导入依赖的package包/类
private void init() {
	ConfigManager config = ConfigManager.getInstance(getContext());
	
	ShimmerTextView tv  = (ShimmerTextView) findViewById(R.id.shimmer_tv);
    Shimmer shimmer = new Shimmer();
       shimmer.start(tv);
       tv.setText(config.getSlideUnlockText());
       tv.setTextColor(config.getSlideUnlockTextColor());
	
	TextView tvDate = (TextView) findViewById(R.id.tv_date);
	tvDate.setText(DateUtils.formatDateTime(getContext(), System.currentTimeMillis(), DateUtils.FORMAT_SHOW_DATE | DateUtils.FORMAT_SHOW_YEAR));
	TextView tvWeek = (TextView) findViewById(R.id.tv_week);
	tvWeek.setText(DateUtils.formatDateTime(getContext(), System.currentTimeMillis(), DateUtils.FORMAT_SHOW_WEEKDAY));

}
 
开发者ID:androidertc,项目名称:iLocker,代码行数:16,代码来源:SlideUnlockItemView.java


示例7: onCreateView

import com.romainpiel.shimmer.Shimmer; //导入依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
		Bundle savedInstanceState) {
	View rootView = inflater.inflate(
			R.layout.fragment_menu_with_custom_animation, container,
			false);

	final PickerDialog contourPickerDialog = new PickerDialog();
	contourPickerDialog.initialize(R.string.color_dialog_title, ContourMapper.contourItems, R.drawable.lock_item_circle, 4, 2, PickerDialog.TYPE_CONTOUR);
	contourPickerDialog.setOnContourSelectedListener(new OnContourSelectedListener() {
		
		@Override
		public void onContourSelected(int contour) {
			Toast.makeText(getActivity(), "contour : " + contour, Toast.LENGTH_SHORT).show();
		}
	});

	rootView.findViewById(R.id.button1).setOnClickListener(new View.OnClickListener() {

		@Override
		public void onClick(View v) {
			contourPickerDialog.show(getFragmentManager(), "colorpicker");
		}
	});
	
    ShimmerTextView tv  = (ShimmerTextView) rootView.findViewById(R.id.shimmer_tv);
    Shimmer shimmer = new Shimmer();
          shimmer.start(tv);
	return rootView;
}
 
开发者ID:androidertc,项目名称:iLocker,代码行数:31,代码来源:MenuDemoActivity.java


示例8: settingLockView

import com.romainpiel.shimmer.Shimmer; //导入依赖的package包/类
private void settingLockView() {
    mBackgroundLayout = (RelativeLayout) mLockscreenView.findViewById(R.id.lockscreen_background_layout);
    mBackgroundInLayout = (RelativeLayout) mLockscreenView.findViewById(R.id.lockscreen_background_in_layout);
    mBackgroundLockImageView = (ImageView) mLockscreenView.findViewById(R.id.lockscreen_background_image);
    mForgroundLayout = (RelativeLayout) mLockscreenView.findViewById(R.id.lockscreen_forground_layout);
    mShimmerTextView = (ShimmerTextView) mLockscreenView.findViewById(R.id.shimmer_tv);
    (new Shimmer()).start(mShimmerTextView);
    mForgroundLayout.setOnTouchListener(mViewTouchListener);

    mStatusBackgruondDummyView = (RelativeLayout) mLockscreenView.findViewById(R.id.lockscreen_background_status_dummy);
    mStatusForgruondDummyView = (RelativeLayout) mLockscreenView.findViewById(R.id.lockscreen_forground_status_dummy);
    setBackGroundLockView();

    DisplayMetrics displayMetrics = mContext.getResources().getDisplayMetrics();
    mDeviceWidth = displayMetrics.widthPixels;
    mDevideDeviceWidth = (mDeviceWidth / 2);
    mBackgroundLockImageView.setX((int) (((mDevideDeviceWidth) * -1)));

    //kitkat
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
        int val = LockscreenUtil.getInstance(mContext).getStatusBarHeight();
        RelativeLayout.LayoutParams forgroundParam = (RelativeLayout.LayoutParams) mStatusForgruondDummyView.getLayoutParams();
        forgroundParam.height = val;
        mStatusForgruondDummyView.setLayoutParams(forgroundParam);
        AlphaAnimation alpha = new AlphaAnimation(0.5F, 0.5F);
        alpha.setDuration(0); // Make animation instant
        alpha.setFillAfter(true); // Tell it to persist after the animation ends
        mStatusForgruondDummyView.startAnimation(alpha);
        RelativeLayout.LayoutParams backgroundParam = (RelativeLayout.LayoutParams) mStatusBackgruondDummyView.getLayoutParams();
        backgroundParam.height = val;
        mStatusBackgruondDummyView.setLayoutParams(backgroundParam);
    }
}
 
开发者ID:mugku,项目名称:Android-LockScreenSample-DisableHomeButtonKey,代码行数:34,代码来源:LockscreenViewService.java


示例9: onCreate

import com.romainpiel.shimmer.Shimmer; //导入依赖的package包/类
@Override
protected void onCreate( Bundle savedInstanceState )
{
    Logger LOG = LoggerFactory.getLogger(MainActivity.class);
    LOG.info("hello world我是我哦");
    Log.i( this.getClass().getName(), "in onCreate" );

    super.onCreate( savedInstanceState );

    setContentView( R.layout.activity_main );

    initUI();

    uiFunction();

    drawCircle();

    Shimmer shimmer = new Shimmer();
    shimmer.start( shimmerBtn );

    ShortcutUtils shortcutUtils = new ShortcutUtils();
    String shortcutName = getString( R.string.app_name );
    //        if ( !shortCut.hasShortcut( this, shortcutName ) )
    //        {
    //shortcutUtils.creatShortCut( this, shortcutName, R.drawable.ic_launcher );
    //        }
}
 
开发者ID:amar19860330,项目名称:amar-android-demo,代码行数:28,代码来源:MainActivity.java



注:本文中的com.romainpiel.shimmer.Shimmer类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java UndoInfo类代码示例发布时间:2022-05-22
下一篇:
Java Logger类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap