srgtrujillo / quotes Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
Show above quote his comments.
This is a common problem when different parts of the Android software need navigate to a Activity and needs arguments or specific parameters.
The problem:
A
launch Activity B
and Activity C
launch Activity B
B
needs to be launched, a Bundle, and all activities that launch the Activity B
needs write .putExtra(someArgument).B
needs remember what Activity B
needs.The solutions:
LoginNavigation
-> launch LoginActivity
and only LoginNavigation
know how LoginActivity
needs be launched.SomeActivity.launch(Context context, arguments)
Static method in each Activity to know how this Activity is launched.You can decide what kind of solution we will apply.
Its a independent view with comments by Quote, like a fragment below Quote detail.
Create a QuoteDetailActivity
This is a example of GET quotes
[
{
"id" : "234l23j42j4",
"author" : "Albert Einstein",
"imageUrl": "https://i.ytimg.com/vi/nYaRPlEWnXw/mqdefault.jpg",
"timestamp" : 23423423,
"quote" : "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe",
"likes" : ["id1", "id2"]
}
]
This is a example of GET comments by quote id : 234l23j42j4
[
{
"id" : "1",
"quote_id" : "234l23j42j4",
"user" : "id",
"comment" : "Wooooooooooooow",
"timestamp" : 234234342,
"likes" : ["id1", "id2"]
},
{
"id" : "2",
"quote_id" : "234l23j42j4",
"user" : "id2",
"comment" : "Wooooooooooooow",
"timestamp" : 234234343,
"likes" : ["id1", "id2"]
}
]
A list of Quotes from books in Main Screen.
You can see a example : https://www.goodreads.com/quotes
Quote:
The branch master
doesn't have a api
folder
When click y any Quote should see the Quote text and author.
Create UI Main Activity to #1
View contract and behaviour:
https://travis-ci.org/srgtrujillo/quotes/builds/155725278
java.lang.RuntimeException: Waited for the root of the view hierarchy to have window focus and not be requesting layout for over 10 seconds. If you specified a non default root matcher, it may be picking a root that never takes focus. Otherwise, something is seriously wrong. Selected Root:
Root{application-window-token=android.view.ViewRootImpl$W@b2eea308, window-token=android.view.ViewRootImpl$W@b2eea308, has-window-focus=false, layout-params-type=1, layout-params-string=WM.LayoutParams{(0,0)(fillxfill) sim=#100 ty=1 fl=#1810100 pfl=0x8 wanim=0x10302a1}, decor-view-string=DecorView{id=-1, visibility=VISIBLE, width=480, height=800, has-focus=true, has-focusable=true, has-window-focus=false, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, root-is-layout-requested=false, has-input-connection=false, x=0.0, y=0.0, child-count=1}}
:app:connectedDebugAndroidTest FAILED
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.