Skip to content

Instantly share code, notes, and snippets.

View OrenBochman's full-sized avatar
🏠
Working from home

Oren Bochman OrenBochman

🏠
Working from home
  • WMF
  • 20:49 (UTC +03:00)
View GitHub Profile
@OrenBochman
OrenBochman / !!Android_Recycler_deviders.md
Last active September 9, 2018 15:13
Adding dividers to a RecyclerView

RecyclerView - Adding Dividers

How to add deviders between recyclerview items.

Based on the book Pro Android UI.

@OrenBochman
OrenBochman / !!_swipe to refresh.md
Last active September 9, 2018 15:21
android swipe to refresh
@OrenBochman
OrenBochman / !!android annotation.md
Last active September 9, 2018 09:19
annotation guide
@OrenBochman
OrenBochman / Search my gists.md
Last active August 28, 2024 21:07 — forked from santisbon/Search my gists.md
How to search gists

Gist Search Cheatsheet

Enter this in the search box along with your search terms:

Get all gists from the user santisbon.
user:orenbochman

Find all gists with a .yml extension.
extension:yml

@OrenBochman
OrenBochman / !!intents.md
Last active March 1, 2023 09:12
All about Intents in Android

Intents

Explicit v.s. Implicit

A quick demo of implicit and explicit intents.

Requesting data from another activity

  1. Use startActivityForResult() to start the second Activity
  2. To return data from the second Activity:
@OrenBochman
OrenBochman / !!Accelerating_Gradle.md
Last active September 9, 2018 09:36 — forked from kevalpatel2106/gradle.properties
Accelerating Gradle

Accelerating Gradle Builds

@OrenBochman
OrenBochman / !!readme.md
Last active September 9, 2018 15:28
easy camera

Camera - Capture an image with an app on Android

code to access an external app's camera capabilities

@OrenBochman
OrenBochman / !!android libraries.md
Last active September 13, 2018 03:19
android libraries and tools

Libraries Android - A quick reference guide

I generally try to avoid libraries and code I did not write/test but here is a quick refrence for:

Library Library Library
Android Annotations Buterknife Dagger2
EventBus FirbaseJobDispatcher Glide
Icepick JodaTime LeakCanary
ObjectBox OkHttpClient Moshi
@OrenBochman
OrenBochman / !!Using Intents.md
Last active September 9, 2018 15:11
some intents

Using Intents

  1. shareing
  2. sms
  3. select image
@OrenBochman
OrenBochman / 00_read_me.md
Last active September 9, 2018 10:32
Determine the Current Layout in Android

Activity that adapts

To develop great UI the designer impliments different layouts for different breakpoints.

Two Layout

  • orientation:vertical (1st break point) - master_frag and detail_frag are each in a FragmentActiity
  • orientation:horizontal (2nd break point) - master_detail_act.xml incorprating master_frag and detail_frag fragments
  1. Detection is done in onCreate is testing for the articleView View in the detail fragment. if it is available we are in master/detail layout.