{"id":13643071,"url":"https://github.com/florent37/DiagonalLayout","last_synced_at":"2025-04-20T21:32:51.239Z","repository":{"id":91120146,"uuid":"70920445","full_name":"florent37/DiagonalLayout","owner":"florent37","description":"With Diagonal Layout explore new styles and approaches on material design","archived":true,"fork":false,"pushed_at":"2020-07-02T11:49:07.000Z","size":25095,"stargazers_count":2556,"open_issues_count":8,"forks_count":321,"subscribers_count":51,"default_branch":"master","last_synced_at":"2025-04-19T20:58:07.647Z","etag":null,"topics":["android","design","diagonal","elevation","layout","material-design"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/florent37.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"ko_fi":"FlorentChampigny","github":"florent37"}},"created_at":"2016-10-14T14:59:59.000Z","updated_at":"2025-03-31T22:35:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"74a1d798-b493-42b3-af53-c4d9324e48cf","html_url":"https://github.com/florent37/DiagonalLayout","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/florent37%2FDiagonalLayout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/florent37%2FDiagonalLayout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/florent37%2FDiagonalLayout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/florent37%2FDiagonalLayout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/florent37","download_url":"https://codeload.github.com/florent37/DiagonalLayout/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249965547,"owners_count":21352925,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","design","diagonal","elevation","layout","material-design"],"created_at":"2024-08-02T01:01:40.862Z","updated_at":"2025-04-20T21:32:50.072Z","avatar_url":"https://github.com/florent37.png","language":"Java","readme":"# DiagonalLayout\n\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-DiagonalLayout-brightgreen.svg?style=flat)](http://android-arsenal.com/details/1/4530)\n\nWith Diagonal Layout explore new styles and approaches on material design\n\n\u003ca href=\"https://goo.gl/WXW8Dc\"\u003e\n  \u003cimg alt=\"Android app on Google Play\" src=\"https://developer.android.com/images/brand/en_app_rgb_wo_45.png\" /\u003e\n\u003c/a\u003e\n\n\n[![screen](https://raw.githubusercontent.com/florent37/DiagonalLayout/master/media/sample.gif)](https://www.github.com/florent37/DiagonalLayout)\n\n# Usage\n\n```xml\n\u003ccom.github.florent37.diagonallayout.DiagonalLayout\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"250dp\"\n        diagonal:diagonal_angle=\"10\"\n        diagonal:diagonal_position=\"left / right / top / bottom\"\n        diagonal:diagonal_direction=\"left / right\"\n        android:elevation=\"10dp\"\n        \u003e\n\n        \u003c!-- YOUR CONTENT --\u003e\n\n\u003c/com.github.florent37.diagonallayout.DiagonalLayout\u003e\n```\n\n# Sample\n\n## Bottom\n\n[![screen](https://raw.githubusercontent.com/florent37/DiagonalLayout/master/media/sample2_elevation.png)](https://www.github.com/florent37/DiagonalLayout)\n\n```xml\n\u003ccom.github.florent37.diagonallayout.DiagonalLayout\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"250dp\"\n        android:elevation=\"10dp\"\n        app:diagonal_angle=\"20\"\n        diagonal:diagonal_direction=\"left\"\n        diagonal:diagonal_position=\"bottom\"\u003e\n\n        \u003cImageView\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"match_parent\"\n            android:scaleType=\"centerCrop\"\n            android:src=\"@drawable/mountains\" /\u003e\n\n\u003c/com.github.florent37.diagonallayout.DiagonalLayout\u003e\n```\n\n## Top\n\n[![screen](https://raw.githubusercontent.com/florent37/DiagonalLayout/master/media/sample2_bottom.png)](https://www.github.com/florent37/DiagonalLayout)\n\n```xml\n\u003ccom.github.florent37.diagonallayout.DiagonalLayout\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"250dp\"\n        android:elevation=\"10dp\"\n        app:diagonal_angle=\"20\"\n        app:diagonal_position=\"top\"\n        app:diagonal_direction=\"right\"\u003e\n\n        \u003cImageView\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"match_parent\"\n            android:scaleType=\"centerCrop\"\n            android:src=\"@drawable/mountains\" /\u003e\n\n\u003c/com.github.florent37.diagonallayout.DiagonalLayout\u003e\n```\n\n# Position / Direction\n\n[![screen](https://raw.githubusercontent.com/florent37/DiagonalLayout/master/media/positions_small.png)](https://www.github.com/florent37/DiagonalLayout)\n\n# Elevation\n\n**Do not forget to add elevation with** `android:elevation=\"**dp\"`\n\n[![screen](https://raw.githubusercontent.com/florent37/DiagonalLayout/master/media/with_elevation_small.png)](https://www.github.com/florent37/DiagonalLayout)\n\n# KenBurns\n\nUsing [https://github.com/flavioarfaria/KenBurnsView](https://github.com/flavioarfaria/KenBurnsView)\n\n[![screen](https://raw.githubusercontent.com/florent37/DiagonalLayout/master/media/sample.gif)](https://www.github.com/florent37/DiagonalLayout)\n\n```xml\n\u003ccom.github.florent37.diagonallayout.DiagonalLayout\n        android:id=\"@+id/diagonalLayout\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"250dp\"\n        diagonal:diagonal_angle=\"10\"\n        diagonal:diagonal_position=\"left\"\n        android:elevation=\"30dp\"\n        \u003e\n\n        \u003ccom.flaviofaria.kenburnsview.KenBurnsView\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"match_parent\"\n            android:scaleType=\"centerCrop\"\n            android:src=\"@drawable/background\"\n            /\u003e\n\n        ...\n\n\u003c/com.github.florent37.diagonallayout.DiagonalLayout\u003e\n```\n\n# Inspirations\n\nExploration of some new styles and approaches on material design. This one here is a user profile for Hollywood personas\n\n[https://material.uplabs.com/posts/user-profile-concept](https://material.uplabs.com/posts/user-profile-concept)\n\n[![screen](https://raw.githubusercontent.com/florent37/DiagonalLayout/master/media/materialup.png)](https://material.uplabs.com/posts/user-profile-concept)\n\n# Download\n\n\u003ca href='https://ko-fi.com/A160LCC' target='_blank'\u003e\u003cimg height='36' style='border:0px;height:36px;' src='https://az743702.vo.msecnd.net/cdn/kofi1.png?v=0' border='0' alt='Buy Me a Coffee at ko-fi.com' /\u003e\u003c/a\u003e\n\nIn your module [![Download](https://api.bintray.com/packages/florent37/maven/DiagonalLayout/images/download.svg)](https://bintray.com/florent37/maven/DiagonalLayout/_latestVersion)\n```groovy\ncompile 'com.github.florent37:diagonallayout:1.0.9'\n```\n\n# Logs\n\n## 1.0.1\n\n- Added Elevation\n\n## 1.0.2\n\n- Can setup the diagonal on *top* or *bottom*\n- Fixed angle calculation\n- Added flag attributes `top|bottom|left|right`\n\n## 1.0.3\n\nThanks to [ZieIony](https://github.com/ZieIony)\n\n- Changed clipping method\n- Changed shadow casting method\n- Removed unnecessary content layout\n- added support for padding\n\n## 1.0.4\n\n- Removed `:gravity`\n- Added `:position` \u0026 `direction`\n\n# Credits\n\nAuthor: Florent Champigny \nBlog : [http://www.tutos-android-france.com/](http://www.tutos-android-france.com/)\n\nFiches Plateau Moto : [https://www.fiches-plateau-moto.fr/](https://www.fiches-plateau-moto.fr/)\n\n\u003ca href=\"https://goo.gl/WXW8Dc\"\u003e\n  \u003cimg alt=\"Android app on Google Play\" src=\"https://developer.android.com/images/brand/en_app_rgb_wo_45.png\" /\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://plus.google.com/+florentchampigny\"\u003e\n  \u003cimg alt=\"Follow me on Google+\"\n       src=\"https://raw.githubusercontent.com/florent37/DaVinci/master/mobile/src/main/res/drawable-hdpi/gplus.png\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://twitter.com/florent_champ\"\u003e\n  \u003cimg alt=\"Follow me on Twitter\"\n       src=\"https://raw.githubusercontent.com/florent37/DaVinci/master/mobile/src/main/res/drawable-hdpi/twitter.png\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://www.linkedin.com/in/florentchampigny\"\u003e\n  \u003cimg alt=\"Follow me on LinkedIn\"\n       src=\"https://raw.githubusercontent.com/florent37/DaVinci/master/mobile/src/main/res/drawable-hdpi/linkedin.png\" /\u003e\n\u003c/a\u003e\n\n\nLicense\n--------\n\n    Copyright 2016 florent37, Inc.\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","funding_links":["https://ko-fi.com/FlorentChampigny","https://github.com/sponsors/florent37","https://ko-fi.com/A160LCC'"],"categories":["布局","Java"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflorent37%2FDiagonalLayout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflorent37%2FDiagonalLayout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflorent37%2FDiagonalLayout/lists"}