https://github.com/hitherejoe/constraints
Sample application for the new Android ConstraintLayout
https://github.com/hitherejoe/constraints
Last synced: 19 days ago
JSON representation
Sample application for the new Android ConstraintLayout
- Host: GitHub
- URL: https://github.com/hitherejoe/constraints
- Owner: hitherejoe
- Created: 2016-05-19T15:28:55.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-05-24T13:22:47.000Z (almost 9 years ago)
- Last Synced: 2025-04-09T23:18:52.919Z (19 days ago)
- Language: Java
- Size: 10.4 MB
- Stars: 325
- Watchers: 6
- Forks: 33
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Constraints
===========
![]()
An implementation of [Bourbon](https://github.com/hitherejoe/Bourbon) for Android Mobile, with the use of the new ConstraintLayout where possible for demonstration purposes.
The layout files can be found here:
- [Browse Fragment](https://github.com/hitherejoe/Constraints/blob/master/mobile/src/main/res/layout/fragment_browse.xml)
- [Shot Fragment](https://github.com/hitherejoe/Constraints/blob/master/mobile/src/main/res/layout/fragment_shot.xml)
- [Comment Item](https://github.com/hitherejoe/Constraints/blob/master/mobile/src/main/res/layout/item_comment.xml)
- [Shot Item](https://github.com/hitherejoe/Constraints/blob/master/mobile/src/main/res/layout/item_shot.xml)
![]()
Requirements
------------- [Android SDK](http://developer.android.com/sdk/index.html).
- Android [5.0 (API 21) ](http://developer.android.com/tools/revisions/platforms.html#5.0).
- Android SDK Tools
- Android SDK Build tools 23.0.2
- Android Support Repository
- Android Support librariesBuilding
--------To build, install and run a debug version, run this from the root of the project:
./gradlew app:assembleDebug
Testing
-------To run the Unit Test found in the CoreCommon module, run the following command from the root of the project:
./gradlew corecommon:testDebugUnitTest
As mentioned the the structure section above, each of the instrumentation tests are split into a seperate module. You can run the instrumentation tests for these modules by running the commands below from the root of the project:
To run instrumentation tests for mobile:
./gradlew mobile-androidTest:connectedAndroidTest
To run instrumentation tests for wear:
./gradlew wear-androidTest:connectedAndroidTest
To run instrumentation tests for TV:
./gradlew tv-androidTest:connectedAndroidTest