Category: Android

0

Android Databinding – Variable is already defined

Recently I added a listener variable in the layout XML of one of my files. It looked like this: <?xml version="1.0" encoding="utf-8"?> <layout xmlns:android="http://schemas.android.com/apk/res/android"> <data> <variable name="paymentActionListener" type="com.tideaccount.android.tabs.accounts.listeners.QueuedPaymentActionListener" /> </data> <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="5dp"...

0

Understanding Gradle for Android

I have always found Gradle to be the necessary evil in Android but there is an article which I found which really widened my sight about what is Gradle and how to use it....

0

Android Context Types

I found THIS great article about the types of Context in Android. You should know which one to use in what kind of a situation. Copy/Paste here: Context is probably the most used element...

0

Controlling the Android AppBar/Toolbar shadow

Today I was fighting the problem of hiding the shadow below the android AppBar or in other cases below the Toolbar. The solution is very simple: AppBar appBar = (AppBar) findViewById … appBar.setEnabled(false;) Toolbar...

0

Android CameraView – Lessons Learned

For a long now I have implemented the android SurfaceView and TextureView for custom applications which require custom camera inside one of the screens. Let me share with you part of my experience. Long...

0

Pro RecyclerView notes

Notes from Pro RecyclerView Past ListView Designed for consistent and repeating design A lot of data, not enough memory Solves the problem by faking – shows the user the views they can see. It...

0

Android Viper + MVVM Architecture

I found this great lecture in the Realm.io blog about implementing a VIPER architecture at coursera. It is a great video and you should surely check it out. Here is a link to it: https://realm.io/news/360andev-richa-khandelwal-effective-android-architecture-patterns-java/