Skip to content

Commit

Permalink
Merge pull request #32 from wajahatch888/OpacityImplementation
Browse files Browse the repository at this point in the history
OpacityAdded
  • Loading branch information
gliechtenstein committed Jan 2, 2017
2 parents 457b1a8 + 258e045 commit 50988ac
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,15 @@ public static View build(View view, final JSONObject component, final JSONObject
int color = JasonHelper.parse_color(style.getString("background"));
view.setBackgroundColor(color);
}
if(style.has("opacity"))
{
try {
float opacity = (float) style.getDouble("opacity");
view.setAlpha(opacity);
}
catch (Exception ex) {
}
}

if (style.has("corner_radius")) {
// TODO: Corner radius
Expand Down

0 comments on commit 50988ac

Please sign in to comment.