CSS – Selectors

CSS – Selectors

Below is a common list of selectors. Selector is a pattern that is used to select an element or elements Selector Description Example * Select all the elements * ELEMENT Select all ELEMENT elements div ELEMENT1 ELEMENT2 Select any ELEMENT2 element that is descendant of ELEMENT1 div p ELEMENT1,ELEMENT2 Select all ELEMENT1 and ELEMENT2 elements div, p ELEMENT1>ELEMENT2 Select any ELEMENT2 that is a child of ELEMENT1 div > p ELEMENT1 + ELEMENT2 Select any ELEMENT2 that is immediately after ELEMENT1 div + p #ID Select the element that has…

CSS – Selectors Read More

Android – Activity callback/hook methods PART 3

Android – Activity callback/hook methods PART 3

You can read Part 1 and Part 2. This part will cover the 7 hook methods: onCreate() – It is called first when activity launched and it is called only one time. Here you initialize the views, bind data to lists etc. Next is onStart() onStart() – It is called when the activity is becoming visible to the user. Next is onResume() only if the activity was at the background and now comes to the foreground. onResume() – It is when the activity starts interacting with the user and it…

Android – Activity callback/hook methods PART 3 Read More

Android – Starting an Activity PART 2

Android – Starting an Activity PART 2

You can read PART 1 here. You can launch activities on demand with startActivity() and startActivityForResult() startActivity() Launches a new activity and it does not return any information when the activity exits. It has one argument, an intent to start. You can read more here. startActivityForResult() Launches an activity and you will get a result when the activity finished. It can take up to 3 arguments, the intent to start, the request code (int) that identifies the request to the 2nd activity and options as a bundle. At the 1st…

Android – Starting an Activity PART 2 Read More

Android – Activity and lifecycle states Part 1

Android – Activity and lifecycle states Part 1

Activity is the most common component in Android app and the most crucial. It is usually used to display information to the device screen but there also times that you do not have to provide a user interface with an activity. To implement an activity you need to follow some steps: Extend the Ativity class Override selected lifecycle/hook methods, those at the picture above define other methods or nested classes needed to implement the activity update the AndroidManifest.xml file to include the activity so Android OS knows about it. Lifecycle…

Android – Activity and lifecycle states Part 1 Read More

HMTL & CSS – lists styling

HMTL & CSS – lists styling

Let’s see a few properties that you can style lists. An unordered list. list-style-type – specifies the appearance of the list item marker. Values can take disc | circle | square | none | decimal | decimal-leading-zero | lower-roman | upper-roman | lower-greek | lower-latin | upper-latin | armenian | georgian | lower-alpha | upper-alpha | none  An ordered list list-style-position – specifies the position of the marker box. Values can take are: inside | outside. Default is outside. list-style-image – sets the image that will be used as the…

HMTL & CSS – lists styling Read More