摘要: public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(new MT... 阅读全文
posted @ 2017-09-01 08:44 沫髯小乐 阅读(247) 评论(0) 推荐(1) 编辑
摘要: 不解释直接看代码 至于布局自己想像 阅读全文
posted @ 2017-08-30 20:26 沫髯小乐 阅读(177) 评论(0) 推荐(1) 编辑
摘要: 侧滑需要加一个东西,就是我写的侧滑项目名称是cehua,下一步找build.gradle(Module:cehua)点击进去,在最后一个括号上面添加这样一句“compile 'me.tangke.slidemenu:slidemenu:1.1.0'” 阅读全文
posted @ 2017-08-30 20:24 沫髯小乐 阅读(190) 评论(0) 推荐(1) 编辑
摘要: public class MainActivity extends AppCompatActivity implements View.OnClickListener { private ViewPager viewPager1; private Button btnweather,btnlvshi; ArrayList viewlist = new ArrayList... 阅读全文
posted @ 2017-08-24 16:00 沫髯小乐 阅读(259) 评论(0) 推荐(1) 编辑
摘要: public class MainActivity extends Activity { private Button btn; private Button btn2; private WebView web; private Button btn3; private Button btn4; @Override protected ... 阅读全文
posted @ 2017-08-24 15:27 沫髯小乐 阅读(132) 评论(0) 推荐(1) 编辑
摘要: Animation animation = AnimationUtils.loadAnimation(this, R.anim.set); iv.setAnimation(animation);添加到动画要放置的位置 // res > 新建anim > 建立 xml anim形式的 阅读全文
posted @ 2017-08-24 15:26 沫髯小乐 阅读(128) 评论(0) 推荐(1) 编辑
摘要: public class MainActivity extends AppCompatActivity { private List list=new ArrayList(); private ViewPager pager; private Button btn; private Handler handler=new ... 阅读全文
posted @ 2017-08-24 15:22 沫髯小乐 阅读(150) 评论(0) 推荐(1) 编辑
摘要: public class MainActivity extends AppCompatActivity { private TextView tvContent; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState)... 阅读全文
posted @ 2017-08-24 14:33 沫髯小乐 阅读(322) 评论(0) 推荐(1) 编辑
摘要: 此pull解析案例是eclipes的对不对,不知道, 阅读全文
posted @ 2017-08-24 14:30 沫髯小乐 阅读(183) 评论(0) 推荐(1) 编辑
摘要: public class MainActivity extends AppCompatActivity { private List imagelist=new ArrayList(); private ViewPag... 阅读全文
posted @ 2017-08-24 14:26 沫髯小乐 阅读(132) 评论(0) 推荐(1) 编辑