-
Android TabHost嵌套用法示例
本源代码演示Android TabHost组件嵌套的用法示例,屏幕上部和底部均出现TAb,下部的TAB是在上部指定TAB激活时才显示,实现了双层嵌套的TAB视图效果。本例子继承了TabActivity,注意:在设置双层嵌套时,要注意其TAB的顺序,若错乱可能会导致嵌套失败。
对于TabHost、布局文件中必须包含TabHost、TabWidget 、FrameLayout ,如果继承TabActivity,并且通过getTabHost()方法来获取TabHost,那么三者的ID必须是android.R.id.tabhost、android.R.id.tabs、android.R.id.tabcontent,如果继承Activity,可以通过findViewById来获取这三个组件,此时ID可自定义。
- 2022-12-13 00:20:03下载
- 积分:1
-
opdm
说明: 改变子载波的数目n,实现ofdm的pts抑制papr算法,以验证不同的子载波数的影响(By changing the number of subcarriers n, the pts suppression papr algorithm of ofdm is implemented to verify the influence of different subcarriers.)
- 2019-03-28 01:24:57下载
- 积分:1
-
交警移动执法系统
本资源的主要作用用于让初学android的朋友比较容易上手android开发,功能包括一些界面设计,service,消息传递等等,基本上囊括了android基本开发的知识点。
- 2022-03-30 17:59:25下载
- 积分:1
-
AhHuiUniversity
随着经济与科技的快速发展,智能手机一步步进入普通人得生活,它将成为人们获取信息的主要设备,因此基于Android手机的手机地图服务需求越开越迫切,为外出旅游的人们提供了极大地便利。Android是Google开发的基于Linux平台的开源手机操作系统。它包括操作系统、中间件、用户界面和应用程序,是为移动终端打造的真正开放和完整的移动软件。本文对目前应用的Symbian、WindowsMoblie、Mac OS X和Android平台的现状进行了分析与比较,主要阐述以面向对象程序开发语言JAVA,以eclipse为开发工具,基于智能手机Android之上设计一个导览系统。本文主要介绍安徽大学,界面友好 、操作便捷,具有良好的可扩展性和可维护性,系统经过测试,可以稳定运行,能够满足手机用户基本的地图服务需求。(With the rapid development of economy and technology,Smartphone enters into the lives of ordinary people step by step,it will become the main device to obtain information,Therefore,based on the Android mobile phone mobile map service needs become more and more urgent for people who travel offers great convenience.Android is the Google development opens the source handset operating system based on Linux platform. It includes the operating system,the Middleware,he user interface and the application procedure. It is for the mobile terminal to create a truly open and complete mobile software. In this thesis,there is a analysis and comparion about the status of the current applide platforms like Symbiam ,WindowsMoblie,Mac OS X and Android ,this thesis Mainly expounds the development of object-oriented programming language java, eclipse as a
development tool, to design a navigation system-based smartphone on Android. This paper mainly introduces the anhui university,user-friendly,easy to)
- 2013-10-30 13:56:55下载
- 积分:1
-
MySlideMenu
Android滑动菜单+-+实现手动、自动滚动视图(Android sliding menu+-+ realize manual and automatic scrolling view)
- 2013-06-05 11:29:17下载
- 积分:1
-
Chapter04_UI_WebView
webview的使用,实现在手机上浏览网页(webview used to achieve browsing on mobile phones)
- 2010-12-15 15:09:38下载
- 积分:1
-
编程工具
Android环境搭建工具,ADT希望能给大家带来方便。
- 2023-01-17 22:45:26下载
- 积分:1
-
网络获取图片(缓存)
package com.hsx.imageloader.adapter;import android.content.Context;import android.view.LayoutInflater;import android.view.View;import android.view.ViewGroup;import android.widget.BaseAdapter;import android.widget.ImageView;import android.widget.TextView;import com.hsx.imageloader.listener.AnimateFirstDisplayListener;import com.nostra13.universalimageloader.core.DisplayImageOptions;import com.nostra13.universalimageloader.core.ImageLoader;import com.nostra13.universalimageloader.core.assist.ImageLoadingListener;import com.nostra13.universalimageloader.core.display.RoundedBitmapDisplayer;import com.hsx.imageloader.R;public class ItemAdapter extends BaseAdapter {DisplayImageOptions options;private ImageLoadingListener animateFirstListener = new AnimateFirstDisplayListener();String[] imageUrls;Context context;public ItemAdapter(String[] imageUrls, Context context) {super();this.imageUrls = imageUrls;this.context = context;options = new DisplayImageOptions.Builder().showStubImage(R.drawable.ic_launcher)//设置图片在下载期间显示的图片.showImageForEmptyUri(R.drawable.ic_launcher)//设置图片Uri为空或是错误的时候显示的图片.showImageOnFail(R.drawable.ic_launcher)//设置图片加载/解码过程中错误时候显示的图片.cacheInMemory(true)//是否緩存都內存中.cacheOnDisc(true)//是否緩存到sd卡上.displayer(new RoundedBitmapDisplayer(20)).build();}private class ViewHolder {public TextView text;public ImageView image;}@Overridepublic int getCount() {return imageUrls.length;}@Overridepublic Object getItem(int position) {return position;}@Overridepublic long getItemId(int position) {return position;}@Overridepublic View getView(final int position, View convertView, ViewGroup parent) {final ViewHolder holder;if (convertView == null) {LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);convertView = inflater.inflate(R.layout.item_list_image, parent, false);holder = new ViewHolder();holder.text = (TextView) convertView.findViewById(R.id.text);holder.image = (ImageView) convertView.findViewById(R.id.image);convertView.setTag(holder);} else {holder = (ViewHolder) convertView.getTag();}holder.text.setText("Item " (position 1));// ImageLoaderImageLoader imageLoader = ImageLoader.getInstance();imageLoader.displayImage(imageUrls[position], holder.image, options, animateFirstListener);return convertView;}}
- 2015-03-05下载
- 积分:1
-
CamMonitor-Android CamMonitor摄像头监控捕获和接收视频源代码程序.rar
CamMonitor-Android CamMonitor摄像头监控捕获和接收视频源代码程序.rar
- 2015-05-21下载
- 积分:1
-
AppChangeNotifier 安卓添加桌面图标
PackageChangeReceiver
通过监视 intent-filter android.intent.action.PACKAGE_ADDED
添加android 桌面图标
- 2022-07-09 09:56:37下载
- 积分:1