The script was solely inspired from this article about generating code:
https://medium.com/@IlyaEremin/npm-version-for-gradle-android-9137a7dc273c
TODO:
- Support kotlin (DSL)
- Detect current git branch
| Detailed intro | |
| https://medium.com/@dmilicic/a-detailed-guide-on-developing-android-apps-using-the-clean-architecture-pattern-d38d71e94029 | |
| Demo project | |
| https://github.com/android10/Android-CleanArchitecture | |
| https://github.com/googlesamples/android-architecture | |
| https://github.com/antoniolg/androidmvp | |
The script was solely inspired from this article about generating code:
https://medium.com/@IlyaEremin/npm-version-for-gradle-android-9137a7dc273c
TODO:
##Getting results from DialogFragments to another Fragment.
When setting up the DialogFragment make a call to Fragment.setTargetFragment()
Then from DialogFragment you can access the main fragment with
Fragment.getTargetFragment()
Use interfaces to provide the required actions to the calling Fragment.
##Example code.
###AddFriendDialogFragment - Calls back to calling fragment.
| <?xml version="1.0" encoding="utf-8"?> | |
| <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:app="http://schemas.android.com/apk/res-auto" | |
| xmlns:tools="http://schemas.android.com/tools" | |
| android:layout_width="fill_parent" | |
| android:layout_height="fill_parent" | |
| android:background="#000000" | |
| tools:context="com.example.android.quizpsikologi.MainActivity"> | |
| <LinearLayout |
| package com.example.android.quizpsikologi; | |
| import android.content.Intent; | |
| import android.support.v7.app.AppCompatActivity; | |
| import android.os.Bundle; | |
| import android.view.View; | |
| import android.widget.CheckBox; | |
| import android.widget.Button; | |
| import android.widget.CompoundButton; | |
| import android.widget.TextView; |
| #include<iostream> | |
| using namespace std; | |
| int binomial(int n, int k); | |
| int main() | |
| { | |
| int n,k; | |
| cout<<"\t\t\t Program menghitung Fungsi Binomial\t\t\t"; | |
| cout<<endl; | |
| cout<<"Masukkan angka N:"; |
| program PasienRawatInap; | |
| uses crt,sysutils; | |
| const | |
| nama_file = 'E:\DataMahasiswa\Tugas\Alpro\tugas_besar\data_pasien.txt'; | |
| Maks_pasien = 200; | |
| user = 'rafli' ; | |
| pass = '10116132' ; | |
| type | |
| dt_pasien = record |
| program distribusi_barang; | |
| {I.S. : User Mengisi Data Pada Menu Isi Data} | |
| {F.S. : Melakukan Pencarian Terhadap Data Yang Sudah Ada dan Menampilkan | |
| Keseluruhan Data Yang Telah Terurut} | |
| uses crt; | |
| const | |
| LokasiFile = 'D:\TUBESAlpro\databarang.txt'; | |
| maks = 20; | |
| type |
| program MengolahDataBuku; | |
| {I.S.: user memasukan data buku} | |
| {F.S.: menampilka data buku yang sudah terurut} | |
| uses | |
| crt, sysutils; | |
| const | |
| MaksBuku = 20; | |
| // nama_file = 'E:\DataMahasiswa\Tugas\Alpro\file_test\data_buku.txt'; | |
| nama_file = 'data_buku.txt'; | |
| type |