Skip to content

Instantly share code, notes, and snippets.

🖥
A refreshing and contemporary engineer.

Ashok Kumar S ashokslsk

🖥
A refreshing and contemporary engineer.
Block or report user

Report or block ashokslsk

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View MainActivity
public class MainActivity extends AppCompatActivity {
RecyclerView recyclerView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
recyclerView = (RecyclerView) findViewById(R.id.my_recycler_view);
RecyclerAdapter adapter = new RecyclerAdapter(this);
@ashokslsk
ashokslsk / Shortcuts
Created Feb 8, 2016
Android Studio Useful shortcuts.
View Shortcuts
Android Studio Notes
===========================
Android Studio keyboard shortcuts I use often.
## Keyboard Shortcuts for Mac
* `SHIFT + F6` to refactor methods, classes, and variable names
* `CTRL + O` to override methods
* `COMMAND + N`
* Generate getter, setter, and constructor method for a class (when in editor pane)
View CollapseAndExpandActivity
Step 1:
// view_header_layout
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#f9f9f9">
You can’t perform that action at this time.