Skip to content

Commit

Permalink
Fixed examples with cards with list
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielemariotti committed Jun 10, 2014
1 parent f36d8eb commit b8a2a6e
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion demo/extras/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ dependencies {
compile ('se.emilsjolander:stickylistheaders:2.4.0')

//Weather Lib
compile 'com.survivingwithandroid:WeatherLib:1.3.0'
compile 'com.survivingwithandroid:weatherlib:1.3.2'

// Fading ActionBar
compile 'com.github.manuelpeinado.fadingactionbar:fadingactionbar:3.0.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ protected List<ListObject> initChildren() {
s2.name = "Another user";
s2.common = "3 people in common";
s2.url = "https://lh5.googleusercontent.com/-squZd7FxR8Q/UyN5UrsfkqI/AAAAAAAAbAo/VoDHSYAhC_E/s54/new%2520profile%2520%25282%2529.jpg";
mObjects.add(s1);
mObjects.add(s2);

return mObjects;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ public void onCreate(Bundle savedInstanceState) {

// Let's create the WeatherProvider
config = new WeatherConfig();
config.lang = "en"; // If you want to use english
config.unitSystem = WeatherConfig.UNIT_SYSTEM.M;
config.numDays = 6; // Max num of days in the forecast

Expand Down Expand Up @@ -124,14 +125,15 @@ public void onConnectionError(Throwable t) {
*/
private void initCard() {

//Create a Card
//Weather Card
card= new WeatherCard(getActivity());

//Set card in the cardView
CardView cardView = (CardView) getActivity().findViewById(R.id.carddemo_weathercard);
cardView.setCard(card);


//May know card
GoogleKnowwithList card2= new GoogleKnowwithList(getActivity());

//Set card in the cardView
Expand Down
3 changes: 3 additions & 0 deletions demo/extras/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,12 @@
<i>by Emil Sjölander</i><br><br>
<b><a href="https://github.com/etsy/AndroidStaggeredGrid">AndroidStaggeredGrid</a></b><br>
<i>by Etsy</i><br><br>
<b><a href="https://github.com/survivingwithandroid/WeatherLib">WeatherLib</a></b><br>
<i>by Francesco Azzola</i><br><br>
<b>Thanks for some ideas and code:</b><br>
<b><a href="https://github.com/JakeWharton/u2020">u2020</a></b><br>
<i>by JakeWharton</i><br><br>
<b>Thanks to <a href="https://plus.google.com/+TaylorLing">Taylor Ling</a> for drag and drop icon.</b>
<br>
]]></string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
android:gravity="center_vertical"
style="@style/card"
android:layout_width="match_parent"
android:layout_height="72dp">
android:layout_height="32dp">


<TextView
Expand Down
2 changes: 2 additions & 0 deletions demo/stock/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@
<b>Thanks for some ideas and code:</b><br>
<b><a href="https://github.com/nhaarman/ListViewAnimations">ListViewAnimations</a></b><br>
<i>by Niek Haarman</i><br><br>
<b><a href="https://github.com/frankiesardo/LinearListView">LinearListView</a></b><br>
<i>by Frankie Sardo</i><br><br>
<br><br><br>
Google and the Google Maps logo are registered trademarks of Google Inc.
Expand Down

0 comments on commit b8a2a6e

Please sign in to comment.