Skip to content

Instantly share code, notes, and snippets.

View johnnyfivedev's full-sized avatar
🔝
qweasd

Johnny Five johnnyfivedev

🔝
qweasd
View GitHub Profile
https://medium.com/@tpom6oh/managing-content-in-collapsingtoolbarlayout-e9afbc91be24
https://stackoverflow.com/questions/32794247/what-is-layout-collapseparallaxmultiplier-used-in-collapsingtoolbarlayout
https://stackoverflow.com/questions/37600497/collapsingtoolbarlayout-settitletitle-does-not-work-after-changing-appbarlayou
@johnnyfivedev
johnnyfivedev / Circle transparent button with circle ripple effect
Last active August 23, 2019 08:48
Circle transparent button with circle ripple effect
<ImageButton
android:id="@+id/iv_send"
style="@style/ImageButton.TransparentCircleRipple"
android:layout_marginEnd="8dp"
app:layout_constraintBottom_toBottomOf="@+id/et_input"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@+id/et_input"
app:srcCompat="@drawable/state_list_chat_btn_send" />
// styles.xml
//https://stackoverflow.com/a/39476747/6325722
public class GetConsultationHistoryUseCase {
private final PubNubService pubNubService;
private final DoctisFileApiClient doctisFileApiClient;
private final PNHistoryItemResultToPubNubMessageMapper pnHistoryItemResultToPubNubMessageMapper;
public GetConsultationHistoryUseCase(PubNubService pubNubService,
DoctisFileApiClient doctisFileApiClient,

RecyclerView should be either match_constraint to both dimentions:

android:layout_width="0dp"
android:layout_height="0dp"

Or scrolling dimention must be match_parent.

Unless specified otherwise, all of the below tinting applies to both Lollipop and pre-Lollipop using AppCompat v21.
To use the support version of these attributes, remove the android namespace.
For instance, "android:colorControlNormal" becomes "colorControlNormal".
These attributes will be propagated to their corresponding attributes within the android namespace
for devices running Lollipop. Any exceptions to this will be noted by including the "android:" prefix.
All Clickable Views:
-----------
@johnnyfivedev
johnnyfivedev / README.md
Created August 14, 2018 09:46 — forked from hofmannsven/README.md
My simply Git Cheatsheet