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
boolean isRaining = true; | |
if (isRaining) { | |
Log.v("WeatherActivity", "It's raining, better bring an umbrella."); | |
} else { | |
Log.v("WeatherActivity", "It's unlikely to rain."); | |
} | |
Log.v("WeatherActivity", "Thank you for using the WhetherWeather App."); |
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
int numberOfSmoothiesTillPrize = 10; | |
if (numberOfSmoothiesTillPrize > 9) { | |
Log.v("SmoothieActivity", "Congratulations, you get a free smoothie!"); | |
numberOfSmoothiesTillPrize = numberOfSmoothiesTillPrize - 10; | |
} else { | |
Log.v("SmoothieActivity", "No free smoothie this time."); | |
} | |
Log.v("SmoothieActivity", "You currently have " + numberOfSmoothiesTillPrize + " out of 10 smoothies needed for your next free smoothie."); |
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
<Text View | |
android:text="Hapy Birthday" | |
android:layout_width="150dp" | |
android:layout_height="150" | |
android:background="@android:color/darker_groy" | |
> |
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
<LinearLayout | |
android:orientation="vertical" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content"> | |
<TextView | |
android:text="Guest List" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" /> | |