码迷,mamicode.com
首页 >  
搜索关键字:inflate    ( 358个结果
gridview
public class HomeAdapter extends BaseAdapter { public int getCount() { return names.length; } public View getView(int position, View convertView, ViewGroup parent) { View view = View.inflate...
分类:其他好文   时间:2014-08-11 18:06:42    阅读次数:230
android一个弹出菜单的动画(二)
如果做一个弹出的控件,我们可以进行添加view: 写class SatelliteMenu extends FrameLayout private void init(Context context, AttributeSet attrs, int defStyle) { inflate(context, R.layout.sat_main, this); imgMain = (Ima...
分类:移动开发   时间:2014-08-08 18:17:26    阅读次数:428
inflate方法与findViewById的区别
LayoutInflater作用是将layout的xml布局文件实例化为View类对象。对于一个没有被载入或者想要动态载入的界面,都需要使用LayoutInflater.inflate()来找 res/layout下的 xml 布局文件,并且实例化为View类对象;获取LayoutInflater的...
分类:其他好文   时间:2014-08-05 13:48:19    阅读次数:192
低版本系统兼容的ActionBar(三)自定义Item视图+进度条的实现+下拉导航+透明ActionBar
一、自定义MenuItem的视图custom_view.xml (就是一个单选按钮) MainActivity.java//Inflate the custom view View customNav = LayoutInflater....
分类:其他好文   时间:2014-07-29 10:34:46    阅读次数:492
Android LayoutInflater深度解析 给你带来全新的认识
转载请标明出处:http://blog.csdn.net/lmj623565791/article/details/38171465 , 本文出自:http://blog.csdn.net/lmj623565791/article/details/381714651、 题外话 相信大家对LayoutInflate都不陌生,特别在ListView的Adapter的getView方法中基本都会出现,...
分类:移动开发   时间:2014-07-28 15:54:03    阅读次数:469
android launcher2开发之 有抽屉改成无抽屉
在launcher.java中在createShortcut方法中   屏蔽所有应用按钮 改动之前 View createShortcut(int layoutResId, ViewGroup parent, ShortcutInfo info) { BubbleTextView favorite = (BubbleTextView) mInflater.inflate( layoutRe...
分类:移动开发   时间:2014-07-25 11:02:28    阅读次数:290
android实现左右滑动界面
首先要说的是,界面滑动,就需要多个view来进行切换,实际上可以用一个ArrayList pageViews来保存这些view的信息,然后进行切换 LayoutInflater inflater = getLayoutInflater(); pageViews = new ArrayList(); pageViews.add(inflater.inflate(R.layout.item0...
分类:移动开发   时间:2014-07-21 22:21:08    阅读次数:252
Android编程之LayoutInflater的inflate方法实例
LayoutInflater的inflate方法实例...
分类:移动开发   时间:2014-07-21 11:35:44    阅读次数:231
Android动态添加布局
//1.利用LayoutInflater的inflate动态加载XML mLinearLayout = (LinearLayout)findViewById(R.id.LinearLayout_ID); LayoutInflater layoutInflater = LayoutInflater.....
分类:移动开发   时间:2014-07-21 00:13:14    阅读次数:422
USACO inflate
完全背包,转化为0/1背包 dp[i, j] = max(dp[i-1, j], dp[i, j - minutes[i]] + points[i]) /* ID:kevin_s1 PROG:inflate LANG:C++ */ #include #include #include #include #include #include #include #include #i...
分类:其他好文   时间:2014-07-20 23:17:56    阅读次数:353
358条   上一页 1 ... 31 32 33 34 35 36 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!