Skip to content

Instantly share code, notes, and snippets.

Avatar

Grigore Cristian-Andrei grrigore

View GitHub Profile
@grrigore
grrigore / dynamicviews.md
Created Nov 4, 2018
Add views dynamically using SeekBar
View dynamicviews.md

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 Apr 13, 2019
mvp folder structure generator
View mvp-folder-generator.sh
#!/bin/bash
# generate mvp folders and classes for screens component
###############
##screen name
PARENT_FOLDER=$1
###############
##activity name
ACTIVITY_NAME=$2
###############
View Ubuntu 18.04 fullscreen Spotify.md