Android insert datetime value in SQLite database

Inserting the timestamp in SQLite can be done in multiple ways. You can either store complete timestamp which contains both date and time or you can store only the date or time. Checkout the following ways of storing the date in database. Method 1 Inserting current timestamp by default If you don’t want to insert …

Android remove EditText border on foucs

Android OS itself adds border to EditText when user focus on it. The color depends on the OS version. Sometimes we might want to get rid of default focus border and there is a way to do it. Method 1 You can keep the background color as transparent to remove the EditText border on focus. …

How to add Rounded Corner borders to Android Layout

If you want to add rounded corner to any kind of android view like linear layout, relative layout, button etc., follow the below method Method 1 Create a xml file under your drawable folder with following code. (The name of the file I created is rounded_corner.xml) And keep this drawable as background for the view …

Page 3 of 3123