<com.randy.test1.self.MarqueeText android:id="@+id/btn1" android:layout_width="match_parent" android:layout_height="wrap_content" android:ellipsize="m ...
分类:
移动开发 时间:
2016-06-22 20:16:53
阅读次数:
213
先看一下xml代码:
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@andr...
分类:
其他好文 时间:
2016-06-21 07:16:34
阅读次数:
275
1、制作一张启动图片splash.png,放置在res->drawable-hdpi文件夹中。
2,布局文件
<RelativeLayout xmlns:Android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="...
分类:
移动开发 时间:
2016-06-16 14:50:19
阅读次数:
176
1、使用wrap_content、match_parent、weight;
2、使用相对布局,尽量不使用绝对布局;
3、使用限定符,如:layout-large/xxx.xml,这样大屏设备就会自动使用该布局;
4、使用最小宽度限定符,如:layout-sw700dp/xxx.xml,这样当屏幕的宽度超过700dp时就会使用该布局;
5、针对不同的分辨率,提供具体的布局,如:res/lay...
分类:
移动开发 时间:
2016-06-12 01:52:17
阅读次数:
248
支持各种屏幕尺寸
上一课下一课
本教程将指导您
使用“wrap_content”和“match_parent”使用相对布局使用尺寸限定符使用最小宽度限定符使用布局别名使用屏幕方向限定符使用自动拉伸位图
您还应参阅
支持多种屏幕
试试看
下载示例应用
NewsReader.zip
此教程将向您介绍如何通过以下方法支持各种尺...
分类:
其他好文 时间:
2016-06-02 14:07:53
阅读次数:
294
为以后可以温习自己做过的一些特效例子,同时也没有必要再一次重写代码,特此从项目中收集代码,按钮颜色变化状态如下: 要实现如图效果,首先要编写一个布局xml文件,代码如下: <LinearLayout android:layout_width="match_parent" android:layout ...
分类:
移动开发 时间:
2016-05-29 19:55:09
阅读次数:
380
音乐播放器api
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_hei...
分类:
移动开发 时间:
2016-05-27 12:23:37
阅读次数:
276
布局定义custom_notification.xml<?xmlversion="1.0"encoding="utf-8"?>
<RelativeLayoutxmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+..
分类:
其他好文 时间:
2016-05-25 19:04:49
阅读次数:
438
一、布局
1.activity_main布局
android:id="@+id/refresh_view"
android:layout_width="match_parent"
android:layout_height="match_parent" >
android:id="@+id/gv"
...
分类:
其他好文 时间:
2016-05-21 10:19:10
阅读次数:
222
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" an ...
分类:
其他好文 时间:
2016-05-18 10:29:47
阅读次数:
151