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
                             
                         
                    
                        
                            
                            
                                如果做一个弹出的控件,我们可以进行添加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
                             
                         
                    
                        
                            
                            
                                LayoutInflater作用是将layout的xml布局文件实例化为View类对象。对于一个没有被载入或者想要动态载入的界面,都需要使用LayoutInflater.inflate()来找 res/layout下的 xml 布局文件,并且实例化为View类对象;获取LayoutInflater的...
                            
                            
                                分类:
其他好文   时间:
2014-08-05 13:48:19   
                                阅读次数:
192
                             
                         
                    
                        
                            
                            
                                一、自定义MenuItem的视图custom_view.xml (就是一个单选按钮) MainActivity.java//Inflate the custom view View customNav = LayoutInflater....
                            
                            
                                分类:
其他好文   时间:
2014-07-29 10:34:46   
                                阅读次数:
492
                             
                         
                    
                        
                            
                            
                                转载请标明出处: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
                             
                         
                    
                        
                            
                            
                                在launcher.java中在createShortcut方法中   屏蔽所有应用按钮
改动之前
View createShortcut(int layoutResId, ViewGroup parent, ShortcutInfo info) {
BubbleTextView favorite = (BubbleTextView) mInflater.inflate(
layoutRe...
                            
                            
                                分类:
移动开发   时间:
2014-07-25 11:02:28   
                                阅读次数:
290
                             
                         
                    
                        
                            
                            
                                首先要说的是,界面滑动,就需要多个view来进行切换,实际上可以用一个ArrayList pageViews来保存这些view的信息,然后进行切换
LayoutInflater inflater = getLayoutInflater();
		pageViews = new ArrayList();
		pageViews.add(inflater.inflate(R.layout.item0...
                            
                            
                                分类:
移动开发   时间:
2014-07-21 22:21:08   
                                阅读次数:
252
                             
                         
                    
                        
                            
                            
                                LayoutInflater的inflate方法实例...
                            
                            
                                分类:
移动开发   时间:
2014-07-21 11:35:44   
                                阅读次数:
231
                             
                         
                    
                        
                            
                            
                                //1.利用LayoutInflater的inflate动态加载XML mLinearLayout = (LinearLayout)findViewById(R.id.LinearLayout_ID); LayoutInflater layoutInflater = LayoutInflater.....
                            
                            
                                分类:
移动开发   时间:
2014-07-21 00:13:14   
                                阅读次数:
422
                             
                         
                    
                        
                            
                            
                                完全背包,转化为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