Simple Horizontal Divider Item Decoration for RecyclerView
mRecyclerView.addItemDecoration(new SimpleDividerItemDecoration(
getApplicationContext()
));
NOTE: Add item decoration prior to setting the adapter
default_platform :android | |
platform :android do | |
before_all do | |
ENV["SLACK_URL"] = "https://hooks.slack.com/services/ABC/123/XYZ" | |
end | |
######################### PUBLIC LANES ######################### | |
desc "Deploy a new Prod APK version to Play Store Alpha" |
public class AccountAuthenticator extends AbstractAccountAuthenticator { | |
private final Context context; | |
@Inject @ClientId String clientId; | |
@Inject @ClientSecret String clientSecret; | |
@Inject ApiService apiService; | |
public AccountAuthenticator(Context context) { | |
super(context); |
#!/bin/sh | |
# Jira ID Extraction | |
# ================================= | |
# Extract Jira ID from branch name and prepend to commit message. | |
# | |
# Takes a commit message like: "A commit comment" for branch "feature/SUM-1234-hello" | |
# and changes it to: "SUM-1234: A commit comment" for easier commit updates. | |
# | |
# Installation |
#!/bin/bash | |
# https://edimax.freshdesk.com/support/solutions/articles/14000047172-how-to-install-ew-7611ulb-adapter-on-raspberry-pi | |
git clone https://github.com/lwfinger/rtl8723bu.git | |
cd rtl8723bu | |
make | |
sudo make install | |
sudo modprobe -v 8723bu | |
sudo bash -c "echo 8723bu >> /etc/modules" |
public class JsonTestUtil { | |
private static ObjectMapper mObjectMapper; | |
private static ObjectMapper getObjectMapper() { | |
if (mObjectMapper == null) { | |
mObjectMapper = new ObjectMapper(); | |
} | |
return mObjectMapper; | |
} |
public class EndlessListActivity<D> extends Activity { | |
private EndlessRecyclerOnScrollListener mEndlessScrollListener; | |
private EndlessListAdapter mAdapter; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
RecyclerView listView = (RecyclerView) findViewById(R.id.list); | |
LinearLayoutManager linearLayoutManager = new LinearLayoutManager(this); |