This test rule is now in the 'test-rules' support repository. Use that one!
https://developer.android.com/reference/android/support/test/rule/ActivityTestRule.html
| <?xml version="1.0" encoding="utf-8"?> | |
| <!-- | |
| Copyright (C) 2015 The Android Open Source Project | |
| Licensed under the Apache License, Version 2.0 (the "License"); | |
| you may not use this file except in compliance with the License. | |
| You may obtain a copy of the License at | |
| http://www.apache.org/licenses/LICENSE-2.0 |
| /** | |
| * The MIT License (MIT) | |
| * | |
| * Copyright (c) 2015 Circle Internet Financial | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights | |
| * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| * copies of the Software, and to permit persons to whom the Software is |
| // your code | |
| apply from: "build-plugins/idea-gradle-sources.gradle" |
| Google finally realized the need of generating unique IDs for programmatically created views... | |
| From API level 17 and above, you can call | |
| View.generateViewId() | |
| Then use View.setId(int). | |
| In case you need it for targets lower than level 17, here is its internal implementation in View.java you can use directly in your project, put it in your util class or somewhere: |
This test rule is now in the 'test-rules' support repository. Use that one!
https://developer.android.com/reference/android/support/test/rule/ActivityTestRule.html
| # | |
| # Build configuration for Circle CI | |
| # | |
| general: | |
| artifacts: | |
| - /home/ubuntu/your-app-name/app/build/outputs/apk/ | |
| machine: | |
| environment: |
| Unless specified otherwise, all of the below tinting applies to both Lollipop and pre-Lollipop using AppCompat v21. To use the support version of these attributes, remove the android namespace. For instance, "android:colorControlNormal" becomes "colorControlNormal". These attributes will be propagated to their corresponding attributes within the android namespace for devices running Lollipop. Any exceptions to this will be noted by including the "android:" prefix. | |
| All Clickable Views: | |
| ----------- | |
| * ripple effect (Lollipop only) -- "colorControlHighlight" | |
| Status Bar: | |
| ------------ | |
| * background (Lollipop only) - "colorPrimaryDark" |
| dependencies { | |
| compile 'com.android.support:appcompat-v7:21.+' | |
| compile 'com.wrapp.floatlabelededittext:library:0.0.5' | |
| } |
| import android.annotation.SuppressLint; | |
| import android.os.Build; | |
| import android.os.Bundle; | |
| import android.support.v7.app.ActionBarActivity; | |
| import android.util.Log; | |
| import android.view.View; | |
| import android.view.ViewGroup; | |
| import android.view.ViewTreeObserver; | |
| import com.google.android.gms.maps.GoogleMap; |
| ###################################################### | |
| # Proguard file to remove debug logs and NOT kill the application | |
| # | |
| # @benclayton github.com/benvium 15-12-2014 | |
| # | |
| # https://gist.github.com/benvium/8995326bc944f47f2c64 | |
| ###################################################### | |
| # To use this file, your project's build.gradle 'buildTypes' section should look like this: | |
| # |