-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from samoryka/master
GUI modifications - part 2
- Loading branch information
Showing
68 changed files
with
536 additions
and
421 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,21 @@ | ||
ParkenDD | ||
======== | ||
|
||
Android App for parking spots in Dresden. | ||
If you want to contribute a translation be free to do so on [poeditor.com](https://poeditor.com/join/project/eu2wqvnR4z). | ||
An android application to find free parking sports in Dresden and other cities. | ||
|
||
<a href="https://f-droid.org/repository/browse/?fdid=de.jkliemann.parkendd" target="_blank"> | ||
<img src="https://f-droid.org/badge/get-it-on.png" alt="Get it on F-Droid" height="80"/></a> | ||
<a href="https://play.google.com/store/apps/details?id=de.jkliemann.parkendd" target="_blank"> | ||
<img src="https://play.google.com/intl/en_us/badges/images/generic/en-play-badge.png" alt="Get it on Google Play" height="80"/></a> | ||
<a href="https://f-droid.org/repository/browse/?fdid=de.jkliemann.parkendd" target="_blank"><img src="https://f-droid.org/badge/get-it-on.png" alt="Get it on F-Droid" height="80"/></a> | ||
<a href="https://play.google.com/store/apps/details?id=de.jkliemann.parkendd" target="_blank"><img src="https://play.google.com/intl/en_us/badges/images/generic/en-play-badge.png" alt="Get it on Google Play" height="80"/></a> | ||
|
||
This app shows the free parking lots in Dresden with the possibility to view them with a maps application. | ||
## Features | ||
![Different screenshots of ParkenDD: the main list of parking spots, a forecast showing how many places are available at a certain date and a map of Dresden and its free parking spots.](resources/readmeScreenshots/assortment.png) | ||
* See how many free places are available in the parking spots near you | ||
* Find out how busy parking spots will be at a certain date and time | ||
* Display a map showing all your city's parking spots | ||
|
||
## Translation | ||
ParkenDD is available in several languages including English, German and French. | ||
If you want to contribute a translation be free to do so on [poeditor.com](https://poeditor.com/join/project/eu2wqvnR4z)! | ||
|
||
## Licenses | ||
Licenses can be viewed in the files LICENSE and LICENSE-EXTRA. | ||
|
||
![screen](http://jkliemann.de/parkendd/media/parkendd4.png "screenshot") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
app/src/main/java/de/jkliemann/parkendd/Utilities/ColorUtilities.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package de.jkliemann.parkendd.Utilities; | ||
|
||
import android.animation.ArgbEvaluator; | ||
import android.content.res.ColorStateList; | ||
import android.graphics.Color; | ||
|
||
/** | ||
* Created by kasam on 18/08/2017. | ||
*/ | ||
|
||
public class ColorUtilities { | ||
|
||
public static int mixBetweenColors(float percentage, Object firstColor, Object secondColor) { | ||
ArgbEvaluator colorEvaluator = new ArgbEvaluator(); | ||
|
||
return (int)colorEvaluator.evaluate(percentage, firstColor, secondColor); | ||
} | ||
|
||
public static int darkenColor(int color, float percentage) { | ||
float factor = (100-percentage)/100; | ||
|
||
int alpha = Color.alpha(color); | ||
|
||
int red = Math.round(Color.red(color) * factor); | ||
int green = Math.round(Color.green(color) * factor); | ||
int blue = Math.round(Color.blue(color) * factor); | ||
|
||
return Color.argb(alpha, red, green, blue); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.