- 博客(11)
- 资源 (1)
- 收藏
- 关注
原创 在自己写的类中启动Activity的方法
问题描述:开发中发现,在自己写的类中需要监听某个控件,然后跳转到新的Activity中,如自己写的Adapter监听ViewPager里面的控件,点击跳转新的Activity但是在Adapter类里启动一个Intent是不能直接启动的,所以需要做一下这样的处理:首先在当前运行的Activity里声明一个静态对象:public static MainActivity mactivit
2017-05-16 16:09:36 890
转载 ViewPager 详解(一)---基本入门
版权声明:本文为博主转载文章,出处http://blog.csdn.net/harvic880925/article/details/38453725 前言:这两天研究研究ViewPager滚动功能,现在很多的app都有用到这个功能,我们的大虾米也有这个模块。要研究就彻底的研究研究,我从不满足于一个功能只是简单的应用,要学就学的彻底,所以我打算将ViewPager 分几篇写,研究的哪个程度
2017-05-07 23:00:58 264
原创 Android一些简单记录
1.令图片成为Activity的背景(填充整个屏幕)并且隐藏掉APP的项目标题栏在values文件夹中的 styles.xml中添加一个样式style>style name="AppTheme.NoActionBar"> item name="windowActionBar">falseitem> item name="windowNoTitle">trueitem
2017-05-05 22:27:49 190
原创 D - Artificial Intelligence?
DescriptionPhysics teachers in high school often think that problems given as text are more demanding than pure computations. After all, the pupils have to read and understand the problem firs
2015-04-24 22:58:49 426
原创 广州大学第九届ACM D --- 最大值
D - 最大值Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 128000/64000 KB (Java/Others) Submit StatusProblem DescriptionThere are n integers a[0], a[1], ..., a[n-1], your task i
2015-04-16 22:28:42 555
原创 广州大学第九届ACM C----不要47
C - 不要47Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 128000/64000 KB (Java/Others) Submit StatusProblem DescriptionOne day, XiaoMing get a mysterious(神秘的) number n.In Xi
2015-04-16 20:09:14 668
原创 广州大学第九届ACM B--再来一道
B - 再来一道Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 128000/64000 KB (Java/Others) Submit StatusProblem DescriptionXiaoMing is so lazy that he was sleeping in his English
2015-04-16 20:03:01 563
原创 广州大学第九届ACM A——一道难题
A - 一道难题Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 128000/64000 KB (Java/Others) Submit StatusProblem DescriptionGive you n elements a1, a2, a3,..., an.You need to calcu
2015-04-16 19:51:00 591
原创 杭电ACM-1003 Max Sum
Max SumTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 165114 Accepted Submission(s): 38679Problem DescriptionGiven a sequenc
2015-04-16 19:44:47 265
转载 回文数判断
A - PalindromesTime Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %lluSubmit StatusDescriptionA regular palindrome is a string of numbers or letters that is the same f
2015-04-16 19:29:45 263
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人