-
Notifications
You must be signed in to change notification settings - Fork 14
Home
pRaNaY edited this page Sep 21, 2019
·
4 revisions
🚀 A curated android templates to make android development more easy and fast🔋!
The main idea behind this repo is to share basic android development template which helps developers to write less code.
We have added templates in individual templates group like AndroidManifest, AndroidXmlLayoutTemplates, AndroidGradle, AndroidXmlMenu etc.
Template Name | Purpose | Properties |
---|---|---|
center_parent | Set view in the center of parent in the ConstraintLayout | app:layout_constraintStart_toStartOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toTopOf="parent" app:layout_constraintBottom_toBottomOf="parent" |
center_vertical | Set vertical constraint on view | app:layout_constraintTop_toTopOf="@+id/VIEW_ID" app:layout_constraintBottom_toBottomOf="@+id/VIEW_ID" |
center_vertical_parent | Set vertical constraint on view with parent | app:layout_constraintStart_toStartOf="parent" app:layout_constraintEnd_toEndOf="parent" |
center_horizontal | Set horizontal constraint on view | app:layout_constraintStart_toStartOf="@+id/VIEW_ID" app:layout_constraintEnd_toEndOf="@+id/VIEW_ID" |
center_horizontal_parent | Set horizontal constraint on view with parent | app:layout_constraintStart_toStartOf="parent" app:layout_constraintEnd_toEndOf="parent" |
Template Name | Purpose | Properties |
---|---|---|
permission_storage | Add read/write permissioin for external storage | < uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> < uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> |
permission_location | Add location permissioins in manifest | < uses-permissions android:name="android.permission.ACCESS_COARSE_LOCATION"/> < uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> |
Template Name | Purpose | Properties |
---|---|---|
buildTypes | Default buildTypes setup in gradle with release and debug | buildTypes { release { minifyEnabled false ...} debug { minifyEnabled false ...} } |