登录
首页 » Unix_Linux » android_key

android_key

于 2013-10-09 发布 文件大小:4KB
0 248
下载积分: 1 下载次数: 13

代码说明:

  android新增按键值流程,从底层到中间层再到上层app,对linux和android framework有个一定的认识(android key value added processes, from the bottom to the middle layer and then to the upper app, android framework for linux and have a certain understanding of)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • carbook
    一套完整的android应用app源代码,能够正常编译运行并在android实机上运行。(A complete Android application app source code, can be compiled to run and run on the Android machine.)
    2015-11-22 01:16:48下载
    积分:1
  • ActivityThread
    这是一个简单的android程序,应用thread阻塞和inent实现简单的信息交换,适合初学者使用(This is a simple android, application thread blocking and inent simple exchange of information for beginners)
    2013-10-07 20:58:46下载
    积分:1
  • FingerPaint
    说明:  使用android手机系统实现的手绘功能(Implementation of the system using android phone features hand-painted)
    2011-03-29 08:34:26下载
    积分:1
  • music_player02
    基于Android的音乐播放APP,使用eclipse编程的Java程序,直接在eclipse(配置好Android开发环境)上运行,适合新手学习(Android-based music player APP, use eclipse Java programming procedures directly in the eclipse (configured Android development environment) running for novice learning)
    2020-11-20 23:39:37下载
    积分:1
  • cwac-anddown-master
    Android组件库CWAC主要用来解决Android 开发中各个方面的常见问题,每个 CWAC 组件打包成一个独立的 jar 文件,JNI处理,本次下载的是CWAC组件库及应用示例(Component library CWAC Android Android is mainly used to solve common problems in all aspects of development, each CWAC components packaged into a separate jar files, JNI treatment, the download is CWAC component library and application examples)
    2014-04-16 08:49:06下载
    积分:1
  • 仿IOS 对话框
    package com.zf.iosdialog.widget;import android.app.Dialog;import android.content.Context;import android.view.Display;import android.view.LayoutInflater;import android.view.View;import android.view.View.OnClickListener;import android.view.WindowManager;import android.widget.Button;import android.widget.FrameLayout;import android.widget.ImageView;import android.widget.LinearLayout;import android.widget.LinearLayout.LayoutParams;import android.widget.TextView;import com.zf.iosdialog.R;public class AlertDialog {private Context context;private Dialog dialog;private LinearLayout lLayout_bg;private TextView txt_title;private TextView txt_msg;private Button btn_neg;private Button btn_pos;private ImageView img_line;private Display display;private boolean showTitle = false;private boolean showMsg = false;private boolean showPosBtn = false;private boolean showNegBtn = false;public AlertDialog(Context context) {this.context = context;WindowManager windowManager = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);display = windowManager.getDefaultDisplay();}public AlertDialog builder() {// 获取Dialog布局View view = LayoutInflater.from(context).inflate(R.layout.view_alertdialog, null);// 获取自定义Dialog布局中的控件lLayout_bg = (LinearLayout) view.findViewById(R.id.lLayout_bg);txt_title = (TextView) view.findViewById(R.id.txt_title);txt_title.setVisibility(View.GONE);txt_msg = (TextView) view.findViewById(R.id.txt_msg);txt_msg.setVisibility(View.GONE);btn_neg = (Button) view.findViewById(R.id.btn_neg);btn_neg.setVisibility(View.GONE);btn_pos = (Button) view.findViewById(R.id.btn_pos);btn_pos.setVisibility(View.GONE);img_line = (ImageView) view.findViewById(R.id.img_line);img_line.setVisibility(View.GONE);// 定义Dialog布局和参数dialog = new Dialog(context, R.style.AlertDialogStyle);dialog.setContentView(view);// 调整dialog背景大小lLayout_bg.setLayoutParams(new FrameLayout.LayoutParams((int) (display.getWidth() * 0.85), LayoutParams.WRAP_CONTENT));return this;}public AlertDialog setTitle(String title) {showTitle = true;if ("".equals(title)) {txt_title.setText("标题");} else {txt_title.setText(title);}return this;}public AlertDialog setMsg(String msg) {showMsg = true;if ("".equals(msg)) {txt_msg.setText("内容");} else {txt_msg.setText(msg);}return this;}public AlertDialog setCancelable(boolean cancel) {dialog.setCancelable(cancel);return this;}public AlertDialog setPositiveButton(String text,final OnClickListener listener) {showPosBtn = true;if ("".equals(text)) {btn_pos.setText("确定");} else {btn_pos.setText(text);}btn_pos.setOnClickListener(new OnClickListener() {@Overridepublic void onClick(View v) {listener.onClick(v);dialog.dismiss();}});return this;}public AlertDialog setNegativeButton(String text,final OnClickListener listener) {showNegBtn = true;if ("".equals(text)) {btn_neg.setText("取消");} else {btn_neg.setText(text);}btn_neg.setOnClickListener(new OnClickListener() {@Overridepublic void onClick(View v) {listener.onClick(v);dialog.dismiss();}});return this;}private void setLayout() {if (!showTitle && !showMsg) {txt_title.setText("提示");txt_title.setVisibility(View.VISIBLE);}if (showTitle) {txt_title.setVisibility(View.VISIBLE);}if (showMsg) {txt_msg.setVisibility(View.VISIBLE);}if (!showPosBtn && !showNegBtn) {btn_pos.setText("确定");btn_pos.setVisibility(View.VISIBLE);btn_pos.setBackgroundResource(R.drawable.alertdialog_single_selector);btn_pos.setOnClickListener(new OnClickListener() {@Overridepublic void onClick(View v) {dialog.dismiss();}});}if (showPosBtn && showNegBtn) {btn_pos.setVisibility(View.VISIBLE);btn_pos.setBackgroundResource(R.drawable.alertdialog_right_selector);btn_neg.setVisibility(View.VISIBLE);btn_neg.setBackgroundResource(R.drawable.alertdialog_left_selector);img_line.setVisibility(View.VISIBLE);}if (showPosBtn && !showNegBtn) {btn_pos.setVisibility(View.VISIBLE);btn_pos.setBackgroundResource(R.drawable.alertdialog_single_selector);}if (!showPosBtn && showNegBtn) {btn_neg.setVisibility(View.VISIBLE);btn_neg.setBackgroundResource(R.drawable.alertdialog_single_selector);}}public void show() {setLayout();dialog.show();}}
    2015-01-03下载
    积分:1
  • Media_Setting
    基于全志A10 android4.0平台,开发的GPIO控制程序,通过UI界面选择不同状态下GPIO口输出不同的电平状态,来实现由高低电平来控制外部设备;本例程主要实现5个IO口控制Audio和vedio的不同格式输出(Based on Allwinner A10 android4.0 platform, the development of the GPIO control procedures, through the UI interface to select a different state, a different GPIO port output level state, to achieve the high and low to control external devices This course mainly to achieve five IO port control Audio and vedio output different formats)
    2013-10-08 21:33:56下载
    积分:1
  • android仿qq空间发布(从相册选照片) 实例源码下载
    android仿qq空间发布(从相册选照片) 实例源码下载
    2015-04-02下载
    积分:1
  • cvmx-helper-spi
    Functions for SPI initialization, configuration, and monitoring.
    2014-08-11 22:07:54下载
    积分:1
  • PlaneGame
    java实现的android版飞机游戏,主要有surfaceView、mediaPlayer、MVC等的运用(java implementation plane game android version, mainly surfaceView, mediaPlayer, MVC, etc. use)
    2013-07-11 17:43:08下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载