您好,欢迎光临本网站![请登录][注册会员]  

搜索资源列表

  1. Android使用VideoView播放本地视频和网络视频的方法

  2. 1、效果展示 2、布局文件 <RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android xmlns:tools=http://schemas.android.com/tools android:layout_width=match_parent android:layout_height=match_parent android:paddingBottom=dimen/activi
  3. 所属分类:其它

    • 发布日期:2021-01-05
    • 文件大小:69632
    • 提供者:weixin_38563871
  1. Android启动画面的实现方法

  2. 本文实例讲述了Android启动画面的实现方法。分享给大家供大家参考。具体分析如下: 在应用程序中经常用到启动画面,会启动一个后台线程为主程序的运行准备资源。 Android要实现启动画面可以这样做: 这是splash.xml布局文件的代码: 代码如下:<LinearLayout   xmlns:android=”http://schemas.android.com/apk/res/android”   android:layout_height=”fill_parent” androi
  3. 所属分类:其它

    • 发布日期:2021-01-05
    • 文件大小:35840
    • 提供者:weixin_38724370
  1. 详解Android中的Menu菜单键

  2. Android中的设置按钮:长按或点击菜单键 1.长按选项: 布局文件: <LinearLayout xmlns:android=http://schemas.android.com/apk/res/android xmlns:tools=http://schemas.android.com/tools android:layout_width=match_parent android:layout_height=match_parent android:orientation=ve
  3. 所属分类:其它

    • 发布日期:2021-01-05
    • 文件大小:61440
    • 提供者:weixin_38569569
  1. Android App中的多个LinearLayout嵌套布局实例解析

  2. 在做android  UI布局时,用了LinearLayout嵌套,发现效果并不如我预料一般 查了下资料,说是要设置layout_weight属性 资料说得不是很清楚,也没仔细看,就去弄,结果越弄越混乱。 于是静下心来,自己写xml测试,发现如下。 如果LinearLayout是最外面的一层,它是不会弹出layout_weight属性的, 换句话说最外层不能用layout_weight xml布局如下 <LinearLayout xmlns:android=http://schemas
  3. 所属分类:其它

    • 发布日期:2021-01-05
    • 文件大小:82944
    • 提供者:weixin_38628990
  1. Android使用Handler实现打地鼠游戏

  2. 本文实例为大家分享了Android使用Handler实现打地鼠的具体代码,供大家参考,具体内容如下 1.实现效果 如下图所示: 2.代码实现 新建一个名为DiglettDemo的项目,activity_main.xml代码如下: <RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android xmlns:tools=http://schemas.android.com/tools andro
  3. 所属分类:其它

    • 发布日期:2021-01-05
    • 文件大小:57344
    • 提供者:weixin_38690402
  1. 轻松实现Android指南针功能

  2. 本文实例为大家讲解如何轻松实现Android指南针功能,分享给大家供大家参考。具体如下: (1)布局文件如下: <LinearLayout xmlns:android=http://schemas.android.com/apk/res/android android:layout_width=fill_parent android:layout_height=fill_parent android:gravity=center android:orientation
  3. 所属分类:其它

    • 发布日期:2021-01-05
    • 文件大小:54272
    • 提供者:weixin_38630091
  1. 基于RecyclerView实现横向GridView效果

  2. 本文实例为大家分享了RecyclerView实现横向GridView效果展示的具体代码,供大家参考,具体内容如下 要使用RecyclerView,首先要在build.gradle文件中添加依赖compile ‘com.android.support:appcompat-v7:24.1.0’ 效果图 布局如下 <RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android xmlns:tools=
  3. 所属分类:其它

    • 发布日期:2021-01-05
    • 文件大小:52224
    • 提供者:weixin_38683895
  1. Android文件下载进度条的实现代码

  2. main.xml: 代码如下:<TextView  android:id=”+id/tv”    android:layout_w
  3. 所属分类:其它

    • 发布日期:2021-01-05
    • 文件大小:43008
    • 提供者:weixin_38645335
  1. Android电话拨号器实现方法

  2. 本文实例讲述了Android电话拨号器实现方法。分享给大家供大家参考。具体如下: 以下案例模拟android电话拨号器的实现 AndroidManifest.xml清单列表 <application android:i
  3. 所属分类:其它

    • 发布日期:2021-01-05
    • 文件大小:132096
    • 提供者:weixin_38610870
  1. Android模仿用户设置密码实例

  2. 首先有2个对话框,没有设置过密码,需要设置dialog_set_password.xml,用户设置过密码,不需要设置,直接输入密码dialog_input_password.xml, 设置对话框dialog_set_password.xml <LinearLayout xmlns:android=http://schemas.android.com/apk/res/android android:layout_width=match_parent android:layout_
  3. 所属分类:其它

    • 发布日期:2021-01-05
    • 文件大小:58368
    • 提供者:weixin_38746926
  1. Android实现仿Windows7图片预览窗格效果

  2. 本实例将显示类似于windows7提供的图片预览窗格效果,单击任意一张图片,可以在右侧显示该图片的预览效果。 效果如图所示: 具体实现方法: res/layout/main.xml: <LinearLayout xmlns:android=http://schemas.android.com/apk/res/android android:orientation=horizontal android:layout_width=fill_parent android:layou
  3. 所属分类:其它

    • 发布日期:2021-01-05
    • 文件大小:78848
    • 提供者:weixin_38667835
  1. Android实现支付宝6位密码输入界面

  2. 我们先来照图分析一下: (1)限制输入6位,每一位都有自己的框格,每个格显示一位; (2)有回退/取消支付按钮; (3)有忘记密码链接; (4)自定义的只能输入数字的键盘输入区; (5)在6位输完后自动进行密码校验和支付交易。如上图左边是iOS支付宝支付密码输入控件,右边是我模仿实现的效果。 首先,我们需要一个页面来完成以上的静态布局,.xml代码如下: <RelativeLayout xmlns:android=http://schemas.android.com/apk/res/
  3. 所属分类:其它

    • 发布日期:2021-01-05
    • 文件大小:80896
    • 提供者:weixin_38590309
  1. Android互联网访问图片并在客户端显示的方法

  2. 本文实例讲述了Android互联网访问图片并在客户端显示的方法。分享给大家供大家参考,具体如下: 1、布局界面 <RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android xmlns:tools=http://schemas.android.com/tools android:layout_width=match_parent android:layout_height=match_parent
  3. 所属分类:其它

    • 发布日期:2021-01-05
    • 文件大小:101376
    • 提供者:weixin_38672794
  1. android监听软键盘的弹出与隐藏的示例代码

  2. 情境:布局文件中有ScrollView,ScrollView中有个EditView,布局底部有一个控件(见下面布局代码),程序一启动EditView就获取焦点,弹出软键盘,将这个底部的控件也顶上去了,感觉不太好,所以我就想监听下软键盘弹出,此时去隐藏底部控件,软键盘隐藏时则显示底部控件。 初始:       <LinearLayout android:id=+id/activity_main xmlns:android=http://schemas.android.co
  3. 所属分类:其它

    • 发布日期:2021-01-05
    • 文件大小:117760
    • 提供者:weixin_38677227
  1. Android实现标题上显示隐藏进度条效果

  2. 一个界面,实现在向页面添加图片时,在标题上显示一个水平进度条,当图片载入完毕后,隐藏进度条并显示图片 具体实现方法: res/layout/main.xml: <LinearLayout xmlns:android=http://schemas.android.com/apk/res/android android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=hori
  3. 所属分类:其它

    • 发布日期:2021-01-05
    • 文件大小:72704
    • 提供者:weixin_38575421
  1. Android使用Spinner实现城市级联下拉框

  2. 最近写一个使用Spinner实现城市级联下拉框的Dome,现在总结一下,第一次写博客,互相学习。 activity_main.xml里面有三个Spinner <LinearLayout xmlns:android=http://schemas.android.com/apk/res/android xmlns:tools=http://schemas.android.com/tools android:layout_width=match_parent android:la
  3. 所属分类:其它

    • 发布日期:2021-01-05
    • 文件大小:77824
    • 提供者:weixin_38595019
  1. Android编程自定义搜索框实现方法【附demo源码下载】

  2. 本文实例讲述了Android编程自定义搜索框实现方法。分享给大家供大家参考,具体如下: 先来看效果图吧~ 分析:这只是模拟了一个静态数据的删除与显示 用EditText+PopupWindow+listView实现的 步骤: 1.先写出搜索框来-activity_mian布局: <RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android xmlns:tools=http://schemas.and
  3. 所属分类:其它

    • 发布日期:2021-01-05
    • 文件大小:77824
    • 提供者:weixin_38679277
  1. Android中闪屏实现方法小结(普通闪屏、倒计时闪屏、倒计时+动画闪屏)

  2. 一、项目目录结构 二、activity_main.xml代码 <RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android xmlns:tools=http://schemas.android.com/tools android:layout_width=match_parent android:layout_height=match_parent android:paddingBott
  3. 所属分类:其它

    • 发布日期:2021-01-05
    • 文件大小:103424
    • 提供者:weixin_38633083
  1. Android 进度条显示在标题栏的实现方法

  2. 好吧,先给大家展示效果图: xml文件: <Button android:id=+id/button1 android:layout_width=wrap_content android:layout_heig
  3. 所属分类:其它

    • 发布日期:2021-01-05
    • 文件大小:70656
    • 提供者:weixin_38705004
  1. Android编程实现WebView添加进度条的方法

  2. 本文实例讲述了Android编程实现WebView添加进度条的方法。分享给大家供大家参考,具体如下: 标准的XML界面 <ProgressBar an
  3. 所属分类:其它

    • 发布日期:2021-01-05
    • 文件大小:48128
    • 提供者:weixin_38699593
« 1 2 ... 45 46 47 48 49 50»