Skip to content

Instantly share code, notes, and snippets.

View grrigore's full-sized avatar

Grigore Cristian-Andrei grrigore

View GitHub Profile
@grrigore
grrigore / dynamicviews.md
Created November 4, 2018 23:03
Add views dynamically using SeekBar

1. Create a new project and download these sample images. Save the image files into the project's res/drawable/ directory.

2. Open the res/layout/activity_main.xml file and insert the following:

activity_main.xml

<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"

android:layout_width="match_parent"

@grrigore
grrigore / mvp-folder-generator.sh
Last active April 13, 2019 21:48
mvp folder structure generator
#!/bin/bash
# generate mvp folders and classes for screens component
###############
##screen name
PARENT_FOLDER=$1
###############
##activity name
ACTIVITY_NAME=$2
###############