lucasr / android-layout-samples Goto Github PK
View Code? Open in Web Editor NEW[DEPRECATED] Explorations around Android custom layouts
[DEPRECATED] Explorations around Android custom layouts
It says :
Error:Android Source Generator: [android-layout-samples] AndroidManifest.xml file not found
But it doesn't make sense: I can see the manifest file...
Why does it happen?
I've tried to uninstall Android-Studio and put the Canary build, and now I get this instead (when trying to import from Git) :
"The project is using an unsupported version of the Android Gradle plug-in (0.9.2). The recommended version is 0.14.2."
are you going to add touch support for this?
Hey lucas,
First off, thank you for this repo. this is an challenging, but worthwhile endeavor.
I was going through TweetElement.java
, when I caught something odd with getMeasuredHeightWithMargins(UIElement uiElement)
and getHeightWithMargins(UIElement)
. For ease, I have attached the methods below:
private int getHeightWithMargins(UIElement element) {
final MarginLayoutParams lp = (MarginLayoutParams) element.getLayoutParams();
return element.getMeasuredHeight() + lp.topMargin + lp.bottomMargin;
}
private int getMeasuredHeightWithMargins(UIElement element) {
final MarginLayoutParams lp = (MarginLayoutParams) element.getLayoutParams();
return element.getMeasuredHeight() + lp.topMargin + lp.bottomMargin;
}
As you can tell, there is no different between the two. I'm still learning, so I might be wrong, but do you mean to call element.getHeight()
in the first method? If so let me know, I'd be happy to submit a PR.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.