• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录

gisoracle

  • 博客园
  • 联系
  • 订阅
  • 管理

公告

03 2016 档案

Android中dip、dp、sp、pt和px的区别
摘要:1、概述 过去,程序员通常以像素为单位设计计算机用户界面。例如:图片大小为80×32像素。这样处理的问题在于,如果在一个每英寸点数(dpi)更高的新显示器上运行该程序,则用户界面会显得很小。在有些情况下,用户界面可能会 <?xml version="1.0" encoding="utf-8"?> < 阅读全文

posted @ 2016-03-10 15:44 gisai 阅读(620) 评论(0) 推荐(0)

andriod 获得drawable下所有图片
摘要:package com.example.yanlei.my1; import android.app.AlertDialog; import android.content.Context; import android.content.pm.ApplicationInfo; import andr 阅读全文

posted @ 2016-03-10 11:19 gisai 阅读(772) 评论(0) 推荐(0)

LinearLayout嵌套
摘要:<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" an 阅读全文

posted @ 2016-03-10 07:38 gisai 阅读(423) 评论(0) 推荐(0)

andriod 带看括弧的计算器
摘要:界面 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" andr 阅读全文

posted @ 2016-03-09 18:20 gisai 阅读(609) 评论(0) 推荐(0)

andriod 动态显示当前时间
摘要:<?xml version="1.0" encoding="UTF-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" and 阅读全文

posted @ 2016-03-09 15:25 gisai 阅读(505) 评论(2) 推荐(0)

andriod GridView
摘要:<?xml version="1.0" encoding="UTF-8"?> <GridView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/grid_view" android:layout 阅读全文

posted @ 2016-03-09 15:02 gisai 阅读(179) 评论(0) 推荐(0)

android ImageSwitcher
摘要:android ImageSwitcher 阅读全文

posted @ 2016-03-09 14:56 gisai 阅读(250) 评论(0) 推荐(0)

andriod Spinner
摘要:<?xml version="1.0" encoding="UTF-8"?> <LinearLayout android:orientation="vertical" android:layout_height="fill_parent" android:layout_width="fill_par 阅读全文

posted @ 2016-03-09 13:43 gisai 阅读(403) 评论(0) 推荐(0)

andriod RadioButton
摘要:<?xml version="1.0" encoding="UTF-8"?> <LinearLayout android:orientation="vertical" android:layout_height="fill_parent" android:layout_width="fill_par 阅读全文

posted @ 2016-03-09 13:09 gisai 阅读(192) 评论(0) 推荐(0)

anriod TabHost
摘要:package com.example.yanlei.mytk; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.text.method.HideReturnsTran 阅读全文

posted @ 2016-03-09 12:23 gisai 阅读(211) 评论(0) 推荐(0)

andriod CheckBox
摘要:<?xml version="1.0" encoding="UTF-8"?> <LinearLayout android:orientation="vertical" android:layout_height="fill_parent" android:layout_width="fill_par 阅读全文

posted @ 2016-03-09 12:12 gisai 阅读(230) 评论(0) 推荐(0)

andriod 用户名和密码
摘要:<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android 阅读全文

posted @ 2016-03-09 11:57 gisai 阅读(366) 评论(0) 推荐(0)

andriod ==和equals
摘要:andriod ==和equals 阅读全文

posted @ 2016-03-09 11:55 gisai 阅读(266) 评论(0) 推荐(0)

android布局--Android fill_parent、wrap_content和match_parent的区别
摘要:来自:http://www.cnblogs.com/nikyxxx/archive/2012/06/15/2551390.html 三个属性都用来适应视图的水平或垂直大小,一个以视图的内容或尺寸为基础的布局比精确地指定视图范围更加方便。 1)fill_parent 设置一个构件的布局为fill_pa 阅读全文

posted @ 2016-03-09 09:08 gisai 阅读(215) 评论(0) 推荐(0)

Android 五大布局
摘要:Android 五大布局: FrameLayout(框架布局),LinearLayout (线性布局),AbsoluteLayout(绝对布局),RelativeLayout(相对布局),TableLayout(表格布局)。 FrameLayout 所有东西依次都放在左上角,会重叠,这个布局比较简单 阅读全文

posted @ 2016-03-09 07:53 gisai 阅读(302) 评论(1) 推荐(0)

一个帖子学会Android开发四大组件
摘要:来自:http://www.cnblogs.com/pepcod/archive/2013/02/11/2937403.html 这个文章主要是讲Android开发的四大组件,本文主要分为 一、Activity详解二、Service详解三、Broadcast Receiver详解四、Content 阅读全文

posted @ 2016-03-09 07:37 gisai 阅读(376) 评论(1) 推荐(1)

Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.
摘要:改下build.gradle文件,将里面的compileSdkVersion改为23即可 apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion "23.0.2" default 阅读全文

posted @ 2016-03-08 11:31 gisai 阅读(270) 评论(0) 推荐(0)

andriod VideoView
摘要:package com.example.yanlei.myyk; import android.media.MediaPlayer; import android.net.Uri; import android.os.Bundle; import android.os.Environment; im 阅读全文

posted @ 2016-03-08 07:53 gisai 阅读(259) 评论(0) 推荐(0)

arcgis andriod 长按获得当前信息
摘要:// 长按显示鼠标点坐标及比例尺 private class myLongPressListener implements OnLongPressListener { private static final long serialVersionUID = 1L; @Override public 阅读全文

posted @ 2016-03-07 16:09 gisai 阅读(447) 评论(0) 推荐(0)

Arcgis for android 离线查询
摘要:参考.. 官方API demo 。。。 各种资料 以及。。 [html] view plain copy ArcGIS for Android示例解析之高亮要素-----HighlightFeatures ttp://blog.csdn.net/wozaifeiyang0/article/detai 阅读全文

posted @ 2016-03-07 15:02 gisai 阅读(5312) 评论(0) 推荐(0)

andriod arcgis保存Mapview为图片
摘要:andriod arcgis保存Mapview为图片 阅读全文

posted @ 2016-03-07 12:21 gisai 阅读(689) 评论(0) 推荐(0)

andriod 动态创建控件
摘要:Button btNext=(Button)findViewById(R.id.next); btNext.setOnClickListener(new Button.OnClickListener(){ public void onClick(View view){ //创建一个布局管理器控件 L 阅读全文

posted @ 2016-03-07 08:03 gisai 阅读(347) 评论(0) 推荐(0)

andriod arcgis加载影像TIF
摘要:private static final String TAG = "MainActivity"; private MapView mapView = null; @Override protected void onCreate(Bundle savedInstanceState) { super 阅读全文

posted @ 2016-03-06 14:34 gisai 阅读(1298) 评论(0) 推荐(0)

android 数据文件存取至储存卡
摘要:来自:http://blog.csdn.net/jianghuiquan/article/details/8569233 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.androi 阅读全文

posted @ 2016-03-05 22:38 gisai 阅读(465) 评论(0) 推荐(0)

andriod 资源文件之存取操作
摘要:来自:http://blog.csdn.net/jianghuiquan/article/details/8569235 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.androi 阅读全文

posted @ 2016-03-05 21:58 gisai 阅读(305) 评论(0) 推荐(0)

andriod 图片选择器
摘要:<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.genwoxue.pictureviewer" andro 阅读全文

posted @ 2016-03-05 21:33 gisai 阅读(321) 评论(0) 推荐(0)

android 读中文文本文件
摘要:android 读中文文本文件 阅读全文

posted @ 2016-03-03 15:02 gisai 阅读(861) 评论(0) 推荐(0)

 
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3