开发界
首页 移动开发 在线交易 IT笔记 网络技术 操作系统 企业架构 数据库 考试认证 IT培训 开源软件 数据存储 行业资讯
大家都在看:java   开发   C#   oracle   mysql   android   web开发   学习   sqlserver   linux   asp   php   ajax   javascript   css   html
android客户端源代码阅读2
2013-03-06 15:49:18 来源:开发界 作者:admin 栏目:移动开发 责任编辑:admin
[导读]开源中国-android客户端源代码阅读2

main activity进来的是程序的主页面

Java代码 
private ScrollLayout mScrollLayout;  
    private RadioButton[] mButtons;  
    private String[] mHeadTitles;  
    private int mViewCount;  
    private int mCurSel;  
      
    private ImageView mHeadLogo;  
    private TextView mHeadTitle;  
    private ProgressBar mHeadProgress;  
    private ImageButton mHead_search;  
    private ImageButton mHeadPub_post;  
    private ImageButton mHeadPub_tweet;  
      
    private int curNewsCatalog = NewsList.CATALOG_ALL;  
    private int curQuestionCatalog = PostList.CATALOG_ASK;  
    private int curTweetCatalog = TweetList.CATALOG_LASTEST;  
    private int curActiveCatalog = ActiveList.CATALOG_LASTEST;  
      
    private PullToRefreshListView lvNews;  
    private PullToRefreshListView lvBlog;  
    private PullToRefreshListView lvQuestion;  
    private PullToRefreshListView lvTweet;  
    private PullToRefreshListView lvActive;  
    private PullToRefreshListView lvMsg;  
      
    private ListViewNewsAdapter lvNewsAdapter;  
    private ListViewBlogAdapter lvBlogAdapter;  
    private ListViewQuestionAdapter lvQuestionAdapter;  
    private ListViewTweetAdapter lvTweetAdapter;  
    private ListViewActiveAdapter lvActiveAdapter;  
    private ListViewMessageAdapter lvMsgAdapter;  
      
    private List<News> lvNewsData = new ArrayList<News>();  
    private List<Blog> lvBlogData = new ArrayList<Blog>();  
    private List<Post> lvQuestionData = new ArrayList<Post>();  
    private List<Tweet> lvTweetData = new ArrayList<Tweet>();  
    private List<Active> lvActiveData = new ArrayList<Active>();  
    private List<Messages> lvMsgData = new ArrayList<Messages>();  
     

private ScrollLayout mScrollLayout;
 private RadioButton[] mButtons;
 private String[] mHeadTitles;
 private int mViewCount;
 private int mCurSel;
 
 private ImageView mHeadLogo;
 private TextView mHeadTitle;
 private ProgressBar mHeadProgress;
 private ImageButton mHead_search;
 private ImageButton mHeadPub_post;
 private ImageButton mHeadPub_tweet;
 
 private int curNewsCatalog = NewsList.CATALOG_ALL;
 private int curQuestionCatalog = PostList.CATALOG_ASK;
 private int curTweetCatalog = TweetList.CATALOG_LASTEST;
 private int curActiveCatalog = ActiveList.CATALOG_LASTEST;
 
 private PullToRefreshListView lvNews;
 private PullToRefreshListView lvBlog;
 private PullToRefreshListView lvQuestion;
 private PullToRefreshListView lvTweet;
 private PullToRefreshListView lvActive;
 private PullToRefreshListView lvMsg;
 
 private ListViewNewsAdapter lvNewsAdapter;
 private ListViewBlogAdapter lvBlogAdapter;
 private ListViewQuestionAdapter lvQuestionAdapter;
 private ListViewTweetAdapter lvTweetAdapter;
 private ListViewActiveAdapter lvActiveAdapter;
 private ListViewMessageAdapter lvMsgAdapter;
 
 private List<News> lvNewsData = new ArrayList<News>();
 private List<Blog> lvBlogData = new ArrayList<Blog>();
 private List<Post> lvQuestionData = new ArrayList<Post>();
 private List<Tweet> lvTweetData = new ArrayList<Tweet>();
 private List<Active> lvActiveData = new ArrayList<Active>();
 private List<Messages> lvMsgData = new ArrayList<Messages>();
  上面的属性主要是程序主页面的组件等

 ScrollLayout:左右滑动切换屏幕控件 自定义 继承ViewGroup

版权所有:转载请注明出处!
分享到:
上一篇PhoneGap (cordova-2.4.0) + Senc.. 下一篇安卓开发学习笔记
您可能还喜欢
考试认证 更多
开发技术 更多
移动开发 更多

关于开发界 | 合作伙伴 | 联系我们 | 友情链接 | 版权声明 | 网站制作 | 网站地图 | 加入收藏 | 设为首页

Copyright@2012-2016 开发界 京ICP备12027873号