Android apps learning dump My phone configuration is SDK 22(5.1), so I build my app for the same configuration.
Cheap tricks to get your app working in Android studio 2.2.2 :
- Standard problem :
Error:Failed to resolve: junit:junit:4.12 Show in Project Structure dialog
The hack for this is to write the text from sample build.gradle file. Internet connection may be required for builds if it needs to fetch data from maven.org
I'll be folllowing basic thenewboston's tutorial on youtube first, and then proceed to other resources.(A total of 77 videos). Thanks, but no thanks this time bucky; a realisation I had after video 11.
Most of the app folders are half-baked, not stand alone completed apps. The completed apps deserve a repo of their own, links to which are mentioned separately.
Cheat sheet : Help > Default keymap references
The basic code conventions are in app1. Activity state diagram upto video 10.
Lesson 11 onwards - Hamblaster. A useless template, of no use whatsoever.
Further videos were pointless, since Bucky's Tutorials weren't suitable for Studio 2.2.2
Let's make a calculator, because YTF not ?
Disheartened, I fell to the standard partner of Google for the android tutorials, Udacity.
Since I have alot of time on my hand, first the n00b course, then I'll proceed to the programmer course.
TextView android:text="Excited for the gift you'll surprise me with." android:background="#9C27B0" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="45sp" android:textColor="#F44336"/>
ImageView android:src="@drawable/cake" android:layout_width="wrap_content" android:layout_height="wrap_content" android:scaleType="centerCrop"/>
Assume a <
before each LinearLayout and TextView tag
LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@android:color/darker_gray"> TextView android:text="VIP List" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="#4CAF50" android:textSize="24sp" /> TextView android:text="Kunal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="#4CAF50" android:textSize="24sp" /> TextView android:text="Kagure" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="#4CAF50" android:textSize="24sp" /> TextView android:text="Lyla" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="#4CAF50" android:textSize="24sp" /> /LinearLayout>
LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"> ImageView android:src="@drawable/ocean" android:layout_width="wrap_content" android:layout_height="0" android:layout_weight="1" android:scaleType="centerCrop" /> TextView android:text="You're invited!" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="0" android:textColor="@android:color/white" android:textSize="54sp" android:background="#009688" /> TextView android:text="Bonfire at the beach" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="0" android:textColor="@android:color/white" android:textSize="34sp" android:background="#009688" /> /LinearLayout>