ProportionalLayout:根据宽度计算高度的布局,反之亦然-源码

上传者: 42108948 | 上传时间: 2021-06-21 14:06:03 | 文件大小: 136KB | 文件类型: ZIP
概要 根据宽度计算高度的布局,反之亦然。 com.android.contacts.common.widget.ProportionalLayout 的分支,来自 Android 开源项目(由 Chiiao Cheng 撰写)。 动机 需要显示大小可变的小部件(响应式界面)但保持相同的纵横比,尤其是标准化的小部件。 代码示例 < net .nantunes.widget.ProportionalLayout android : layout_margin = " 10dp " android : background = " @android:color/white " pl : ratio = " 4:3 " pl : direction = " width:height " android : layout_height = " wrap_content "

文件下载

资源详情

[{"title":"( 29 个子文件 136KB ) ProportionalLayout:根据宽度计算高度的布局,反之亦然-源码","children":[{"title":"ProportionalLayout-master","children":[{"title":".gitignore <span style='color:#111;'> 81B </span>","children":null,"spread":false},{"title":"app","children":[{"title":".gitignore <span style='color:#111;'> 7B </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 590B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"main","children":[{"title":"AndroidManifest.xml <span style='color:#111;'> 618B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"layout","children":[{"title":"activity_proportional_layout_demo.xml <span style='color:#111;'> 3.43KB </span>","children":null,"spread":false}],"spread":true},{"title":"values-w820dp","children":[{"title":"dimens.xml <span style='color:#111;'> 358B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable","children":[{"title":"poster.jpg <span style='color:#111;'> 67.16KB </span>","children":null,"spread":false}],"spread":true},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 125B </span>","children":null,"spread":false},{"title":"dimens.xml <span style='color:#111;'> 211B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"java","children":[{"title":"net","children":[{"title":"nantunes","children":[{"title":"widget","children":[{"title":"demo","children":[{"title":"ProportionalLayoutDemo.java <span style='color:#111;'> 337B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"proguard-rules.pro <span style='color:#111;'> 681B </span>","children":null,"spread":false},{"title":"app.iml <span style='color:#111;'> 6.55KB </span>","children":null,"spread":false}],"spread":true},{"title":"settings.gradle <span style='color:#111;'> 23B </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 436B </span>","children":null,"spread":false},{"title":"gradlew <span style='color:#111;'> 4.96KB </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 9.90KB </span>","children":null,"spread":false},{"title":"ProportionalLayout.iml <span style='color:#111;'> 877B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 1.66KB </span>","children":null,"spread":false},{"title":"gradlew.bat <span style='color:#111;'> 2.35KB </span>","children":null,"spread":false},{"title":"gradle.properties <span style='color:#111;'> 855B </span>","children":null,"spread":false},{"title":"gradle","children":[{"title":"wrapper","children":[{"title":"gradle-wrapper.properties <span style='color:#111;'> 232B </span>","children":null,"spread":false},{"title":"gradle-wrapper.jar <span style='color:#111;'> 48.73KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"lib","children":[{"title":".gitignore <span style='color:#111;'> 7B </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 509B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"main","children":[{"title":"AndroidManifest.xml <span style='color:#111;'> 77B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"values","children":[{"title":"attrs.xml <span style='color:#111;'> 805B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"java","children":[{"title":"net","children":[{"title":"nantunes","children":[{"title":"widget","children":[{"title":"ProportionalLayout.java <span style='color:#111;'> 7.23KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"lib.iml <span style='color:#111;'> 6.54KB </span>","children":null,"spread":false},{"title":"proguard-rules.pro <span style='color:#111;'> 681B </span>","children":null,"spread":false}],"spread":true}],"spread":false}],"spread":true}]

评论信息

免责申明

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