For example, you want to set 40% alpha transparence to #000000
(black color), you need to add 66
like this #66000000
.
EDIT: You can find this same updated tutorial here -> Medium
Now I'm going to list how to publish an Android libray to jCenter and then syncronize it with Maven Central:
- I use "Android Studio" and I have this simple android lib that I would like to be available on maven: CircularImageView
Android Studio exposes developers to -nodpi
and -anydpi
in various places. For example, if you use the New Resource Directory wizard thing, and you choose to add a density qualifier to the directory, you will see "No Density" (-nodpi
) and "Any Density" (-anydpi
) options.
Some of you might expect these to be well-documented.
In a word, no.
However, courtesy of a fair amount of experimentation (largely done as part of work on this Stack Overflow question and this answer), their use becomes at least a bit clearer. Many thanks to Stack Overflow user rds for the help!
[Android Transition Framework][transition-framework] can be used for three main things:
- Animate activity layout content when transitioning from one activity to another.
- Animate shared elements (Hero views) in transitions between activities.
- Animate view changes within same activity.
#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME}#end | |
import android.support.v7.widget.RecyclerView | |
import android.view.LayoutInflater | |
import android.view.View | |
import android.view.ViewGroup | |
import java.util.* | |
class ${NAME} : RecyclerView.Adapter<${Model}Adapter.ViewHolder>() { |
#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME}#end | |
import com.mstv.presentation.scenes.base.view.ContentState | |
import com.mstv.presentation.scenes.base.view.LoadingState | |
data class ${NAME}(val loadingState: LoadingState = LoadingState.NONE, | |
val contentState: ContentState = ContentState.NONE, | |
val data: ${DataType}? = null, | |
val errorMessage: String? = null, | |
val snackMessage: String? = null) { |