摘要:1、概述 过去,程序员通常以像素为单位设计计算机用户界面。例如:图片大小为80×32像素。这样处理的问题在于,如果在一个每英寸点数(dpi)更高的新显示器上运行该程序,则用户界面会显得很小。在有些情况下,用户界面可能会 <?xml version="1.0" encoding="utf-8"?> <
阅读全文
摘要:package com.example.yanlei.my1; import android.app.AlertDialog; import android.content.Context; import android.content.pm.ApplicationInfo; import andr
阅读全文
摘要:<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" an
阅读全文
摘要:界面 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" andr
阅读全文
摘要:<?xml version="1.0" encoding="UTF-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" and
阅读全文
摘要:<?xml version="1.0" encoding="UTF-8"?> <GridView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/grid_view" android:layout
阅读全文
摘要:<?xml version="1.0" encoding="UTF-8"?> <LinearLayout android:orientation="vertical" android:layout_height="fill_parent" android:layout_width="fill_par
阅读全文
摘要:<?xml version="1.0" encoding="UTF-8"?> <LinearLayout android:orientation="vertical" android:layout_height="fill_parent" android:layout_width="fill_par
阅读全文
摘要:package com.example.yanlei.mytk; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.text.method.HideReturnsTran
阅读全文
摘要:<?xml version="1.0" encoding="UTF-8"?> <LinearLayout android:orientation="vertical" android:layout_height="fill_parent" android:layout_width="fill_par
阅读全文
摘要:<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android
阅读全文
摘要:来自:http://www.cnblogs.com/nikyxxx/archive/2012/06/15/2551390.html 三个属性都用来适应视图的水平或垂直大小,一个以视图的内容或尺寸为基础的布局比精确地指定视图范围更加方便。 1)fill_parent 设置一个构件的布局为fill_pa
阅读全文
摘要:Android 五大布局: FrameLayout(框架布局),LinearLayout (线性布局),AbsoluteLayout(绝对布局),RelativeLayout(相对布局),TableLayout(表格布局)。 FrameLayout 所有东西依次都放在左上角,会重叠,这个布局比较简单
阅读全文
摘要:来自:http://www.cnblogs.com/pepcod/archive/2013/02/11/2937403.html 这个文章主要是讲Android开发的四大组件,本文主要分为 一、Activity详解二、Service详解三、Broadcast Receiver详解四、Content
阅读全文
摘要:改下build.gradle文件,将里面的compileSdkVersion改为23即可 apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion "23.0.2" default
阅读全文
摘要:package com.example.yanlei.myyk; import android.media.MediaPlayer; import android.net.Uri; import android.os.Bundle; import android.os.Environment; im
阅读全文
摘要:// 长按显示鼠标点坐标及比例尺 private class myLongPressListener implements OnLongPressListener { private static final long serialVersionUID = 1L; @Override public
阅读全文
摘要:参考.. 官方API demo 。。。 各种资料 以及。。 [html] view plain copy ArcGIS for Android示例解析之高亮要素-----HighlightFeatures ttp://blog.csdn.net/wozaifeiyang0/article/detai
阅读全文
摘要:andriod arcgis保存Mapview为图片
阅读全文
摘要:Button btNext=(Button)findViewById(R.id.next); btNext.setOnClickListener(new Button.OnClickListener(){ public void onClick(View view){ //创建一个布局管理器控件 L
阅读全文
摘要:private static final String TAG = "MainActivity"; private MapView mapView = null; @Override protected void onCreate(Bundle savedInstanceState) { super
阅读全文
摘要:来自:http://blog.csdn.net/jianghuiquan/article/details/8569233 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.androi
阅读全文
摘要:来自:http://blog.csdn.net/jianghuiquan/article/details/8569235 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.androi
阅读全文
摘要:<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.genwoxue.pictureviewer" andro
阅读全文