自定义布局RelativeLayout 画网格线

上传者: yxg190221 | 上传时间: 2019-12-21 22:15:28 | 文件大小: 2.97MB | 文件类型: zip
在Android中画线必须由一个载体,要么是一个控件,要么是一个布局,其实他们都是继承自View,通过自定义控件或布局的方式画线是最常见的。这个例子实现了在自定义RelativeLayout中画网格线

文件下载

资源详情

( 92 个子文件 2.97MB ) 自定义布局RelativeLayout 画网格线
GridLineLayout
.project 850B
project.properties 584B
src
layout
layout
ex
GridRelativeLayout.java 1.73KB
AndroidManifest.xml 494B
res
drawable-ldpi
drawable-hdpi
ic_launcher.png 9.18KB
values-v11
styles.xml 334B
drawable-mdpi
ic_launcher.png 5.11KB
layout
drawable-xhdpi
ic_launcher.png 14.05KB
values
strings.xml 88B
styles.xml 697B
values-v14
styles.xml 391B
.settings
org.eclipse.jdt.core.prefs 177B
assets
gen
com
example
gridrelativelayout
BuildConfig.java 172B
R.java 1.57KB
libs
android-support-v4.jar 606.89KB
.classpath 475B
proguard-project.txt 781B
bin
R.txt 135B
classes
layout
layout
ex
GridRelativeLayout.class 2.08KB
com
example
gridrelativelayout
R$style.class 527B
BuildConfig.class 369B
R$drawable.class 492B
R$attr.class 376B
R.class 559B
R$string.class 483B
AndroidManifest.xml 494B
jarlist.cache 120B
res
crunch
drawable-hdpi
ic_launcher.png 8.98KB
drawable-mdpi
ic_launcher.png 4.94KB
drawable-xhdpi
ic_launcher.png 13.74KB
gridlinelayout.jar 1.43KB
gridrelativelayout.jar 1.47KB
GridDemo
.project 844B
project.properties 609B
src
com
example
test005
MainActivity.java 1.12KB
AndroidManifest.xml 880B
res
drawable-ldpi
drawable-hdpi
ic_launcher.png 7.48KB
values-v11
styles.xml 334B
menu
main.xml 263B
drawable-mdpi
ic_launcher.png 3.69KB
layout
activity_main.xml 1.13KB
values-sw600dp
dimens.xml 203B
drawable-xxhdpi
ic_launcher.png 24.20KB
drawable-xhdpi
ic_launcher.png 12.22KB
values
strings.xml 224B
styles.xml 697B
dimens.xml 220B
values-sw720dp-land
dimens.xml 277B
values-v14
styles.xml 391B
.settings
org.eclipse.jdt.core.prefs 177B
assets
gen
com
example
test005
BuildConfig.java 161B
R.java 3.48KB
gridrelativelayout
R.java 568B
libs
android-support-v4.jar 606.89KB
.classpath 475B
proguard-project.txt 781B
ic_launcher-web.png 50.19KB
bin
test005.apk 272.90KB
resources.ap_ 40.08KB
R.txt 479B
classes
com
example
test005
R$layout.class 406B
R$style.class 434B
R$dimen.class 464B
BuildConfig.class 347B
R$drawable.class 410B
R$attr.class 343B
R$id.class 484B
MainActivity$2.class 951B
R.class 683B
R$string.class 475B
MainActivity$1.class 968B
R$menu.class 391B
MainActivity.class 1.62KB
gridrelativelayout
R$style.class 467B
R$drawable.class 443B
R.class 501B
R$string.class 434B
GridDemo.apk 272.69KB
AndroidManifest.xml 880B
dexedLibs
android-support-v4-98c3acc17a8a5d4bef72935dfd637410.jar 227.10KB
gridrelativelayout-0c26cc24988e9ccda7a68c1562afd51d.jar 1.38KB
android-support-v4-ee6af7a4f0eb289605ba13554497a15b.jar 227.10KB
android-support-v4-d35abffd8bfd967e56a1962ddea44e87.jar 227.10KB
gridlinelayout-d0af10f4771a65e65b890f30999e384a.jar 1.36KB
gridrelativelayout-9017afff245f2dc3308d734aec5817d9.jar 1.33KB
jarlist.cache 366B
res
crunch
drawable-hdpi
ic_launcher.png 5.82KB
drawable-mdpi
ic_launcher.png 3.04KB
drawable-xxhdpi
ic_launcher.png 17.47KB
drawable-xhdpi
ic_launcher.png 9.14KB
classes.dex 676.16KB
Demo.apk 273.07KB
[{"title":"( 92 个子文件 2.97MB ) 自定义布局RelativeLayout 画网格线","children":[{"title":"GridLineLayout","children":[{"title":".project <span style='color:#111;'> 850B </span>","children":null,"spread":false},{"title":"project.properties <span style='color:#111;'> 584B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"layout","children":[{"title":"layout","children":[{"title":"ex","children":[{"title":"GridRelativeLayout.java <span style='color:#111;'> 1.73KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"AndroidManifest.xml <span style='color:#111;'> 494B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"drawable-ldpi","children":null,"spread":false},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 9.18KB </span>","children":null,"spread":false}],"spread":true},{"title":"values-v11","children":[{"title":"styles.xml <span style='color:#111;'> 334B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 5.11KB </span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":null,"spread":false},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 14.05KB </span>","children":null,"spread":false}],"spread":true},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 88B </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 697B </span>","children":null,"spread":false}],"spread":true},{"title":"values-v14","children":[{"title":"styles.xml <span style='color:#111;'> 391B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".settings","children":[{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 177B </span>","children":null,"spread":false}],"spread":true},{"title":"assets","children":null,"spread":false},{"title":"gen","children":[{"title":"com","children":[{"title":"example","children":[{"title":"gridrelativelayout","children":[{"title":"BuildConfig.java <span style='color:#111;'> 172B </span>","children":null,"spread":false},{"title":"R.java <span style='color:#111;'> 1.57KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"libs","children":[{"title":"android-support-v4.jar <span style='color:#111;'> 606.89KB </span>","children":null,"spread":false}],"spread":true},{"title":".classpath <span style='color:#111;'> 475B </span>","children":null,"spread":false},{"title":"proguard-project.txt <span style='color:#111;'> 781B </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"R.txt <span style='color:#111;'> 135B </span>","children":null,"spread":false},{"title":"classes","children":[{"title":"layout","children":[{"title":"layout","children":[{"title":"ex","children":[{"title":"GridRelativeLayout.class <span style='color:#111;'> 2.08KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"com","children":[{"title":"example","children":[{"title":"gridrelativelayout","children":[{"title":"R$style.class <span style='color:#111;'> 527B </span>","children":null,"spread":false},{"title":"BuildConfig.class <span style='color:#111;'> 369B </span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'> 492B </span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'> 376B </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 559B </span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'> 483B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 494B </span>","children":null,"spread":false},{"title":"jarlist.cache <span style='color:#111;'> 120B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"crunch","children":[{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 8.98KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 4.94KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 13.74KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"gridlinelayout.jar <span style='color:#111;'> 1.43KB </span>","children":null,"spread":false},{"title":"gridrelativelayout.jar <span style='color:#111;'> 1.47KB </span>","children":null,"spread":false}],"spread":true}],"spread":false},{"title":"GridDemo","children":[{"title":".project <span style='color:#111;'> 844B </span>","children":null,"spread":false},{"title":"project.properties <span style='color:#111;'> 609B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"com","children":[{"title":"example","children":[{"title":"test005","children":[{"title":"MainActivity.java <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"AndroidManifest.xml <span style='color:#111;'> 880B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"drawable-ldpi","children":null,"spread":false},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 7.48KB </span>","children":null,"spread":false}],"spread":true},{"title":"values-v11","children":[{"title":"styles.xml <span style='color:#111;'> 334B </span>","children":null,"spread":false}],"spread":true},{"title":"menu","children":[{"title":"main.xml <span style='color:#111;'> 263B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.69KB </span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":[{"title":"activity_main.xml <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false}],"spread":true},{"title":"values-sw600dp","children":[{"title":"dimens.xml <span style='color:#111;'> 203B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 24.20KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 12.22KB </span>","children":null,"spread":false}],"spread":false},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 224B </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 697B </span>","children":null,"spread":false},{"title":"dimens.xml <span style='color:#111;'> 220B </span>","children":null,"spread":false}],"spread":false},{"title":"values-sw720dp-land","children":[{"title":"dimens.xml <span style='color:#111;'> 277B </span>","children":null,"spread":false}],"spread":false},{"title":"values-v14","children":[{"title":"styles.xml <span style='color:#111;'> 391B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":".settings","children":[{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 177B </span>","children":null,"spread":false}],"spread":true},{"title":"assets","children":null,"spread":false},{"title":"gen","children":[{"title":"com","children":[{"title":"example","children":[{"title":"test005","children":[{"title":"BuildConfig.java <span style='color:#111;'> 161B </span>","children":null,"spread":false},{"title":"R.java <span style='color:#111;'> 3.48KB </span>","children":null,"spread":false}],"spread":true},{"title":"gridrelativelayout","children":[{"title":"R.java <span style='color:#111;'> 568B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"libs","children":[{"title":"android-support-v4.jar <span style='color:#111;'> 606.89KB </span>","children":null,"spread":false}],"spread":true},{"title":".classpath <span style='color:#111;'> 475B </span>","children":null,"spread":false},{"title":"proguard-project.txt <span style='color:#111;'> 781B </span>","children":null,"spread":false},{"title":"ic_launcher-web.png <span style='color:#111;'> 50.19KB </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"test005.apk <span style='color:#111;'> 272.90KB </span>","children":null,"spread":false},{"title":"resources.ap_ <span style='color:#111;'> 40.08KB </span>","children":null,"spread":false},{"title":"R.txt <span style='color:#111;'> 479B </span>","children":null,"spread":false},{"title":"classes","children":[{"title":"com","children":[{"title":"example","children":[{"title":"test005","children":[{"title":"R$layout.class <span style='color:#111;'> 406B </span>","children":null,"spread":false},{"title":"R$style.class <span style='color:#111;'> 434B </span>","children":null,"spread":false},{"title":"R$dimen.class <span style='color:#111;'> 464B </span>","children":null,"spread":false},{"title":"BuildConfig.class <span style='color:#111;'> 347B </span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'> 410B </span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'> 343B </span>","children":null,"spread":false},{"title":"R$id.class <span style='color:#111;'> 484B </span>","children":null,"spread":false},{"title":"MainActivity$2.class <span style='color:#111;'> 951B </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 683B </span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'> 475B </span>","children":null,"spread":false},{"title":"MainActivity$1.class <span style='color:#111;'> 968B </span>","children":null,"spread":false},{"title":"R$menu.class <span style='color:#111;'> 391B </span>","children":null,"spread":false},{"title":"MainActivity.class <span style='color:#111;'> 1.62KB </span>","children":null,"spread":false}],"spread":false},{"title":"gridrelativelayout","children":[{"title":"R$style.class <span style='color:#111;'> 467B </span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'> 443B </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 501B </span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'> 434B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"GridDemo.apk <span style='color:#111;'> 272.69KB </span>","children":null,"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 880B </span>","children":null,"spread":false},{"title":"dexedLibs","children":[{"title":"android-support-v4-98c3acc17a8a5d4bef72935dfd637410.jar <span style='color:#111;'> 227.10KB </span>","children":null,"spread":false},{"title":"gridrelativelayout-0c26cc24988e9ccda7a68c1562afd51d.jar <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false},{"title":"android-support-v4-ee6af7a4f0eb289605ba13554497a15b.jar <span style='color:#111;'> 227.10KB </span>","children":null,"spread":false},{"title":"android-support-v4-d35abffd8bfd967e56a1962ddea44e87.jar <span style='color:#111;'> 227.10KB </span>","children":null,"spread":false},{"title":"gridlinelayout-d0af10f4771a65e65b890f30999e384a.jar <span style='color:#111;'> 1.36KB </span>","children":null,"spread":false},{"title":"gridrelativelayout-9017afff245f2dc3308d734aec5817d9.jar <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false}],"spread":false},{"title":"jarlist.cache <span style='color:#111;'> 366B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"crunch","children":[{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 5.82KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.04KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 17.47KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 9.14KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"classes.dex <span style='color:#111;'> 676.16KB </span>","children":null,"spread":false},{"title":"Demo.apk <span style='color:#111;'> 273.07KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}]

评论信息

  • passerby_b :
    有点参考价值,感谢分享
    2018-04-23
  • 彬彬杨 :
    还好,就是简单了点。
    2018-01-22
  • dj0379 :
    挺不过,有一定的借鉴价值
    2016-09-18
  • SZ米咯强 :
    不错,有待进一步应用改善
    2016-02-24
  • 叶上灯明 :
    还好,就是简单了点。
    2015-11-18

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明
服务器状态检查中...