Android Custom Alert dialog

Process One: Extending AlertDialog Class.. //in style.xml<style name=”AlertDialogStyle” parent=”Theme.AppCompat.Light.Dialog”> <item name=”colorAccent”>@color/colorAccent</item> <item name=”android:textColor”>@android:color/black</item> <item name=”android:textColorPrimary”>@color/colorPrimary</item> <item name=”dialogCornerRadius”>18dp</item> <item name=”android:background”>@color/bg_color</item> <item name=”background”>@color/bg_color</item></style> //create a class by extending AlertDialog class AddItemDialog( context: Context, private val listener: OnAddItemListener ) : AlertDialog(context, { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) //supportRequestWindowFeature(Window.FEATURE_NO_TITLE) setContentView(R.layout.layout_add_new) setTitle(“Add New Item”) submit_btn.setOnClickListener(View.OnClickListener { val title=title.text.toString().trim() val …

Android Custom Alert dialog Read More »

Android Project Setup

1.add java 8 compileOptions{ sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } 2.required dependency //recycler view implementation ‘androidx.recyclerview:recyclerview:1.1.0’ //retrofit implementation ‘com.squareup.retrofit2:retrofit:2.4.0’ implementation ‘com.squareup.retrofit2:converter-gson:2.4.0’ //jetPack component def lifecycle_version = “2.2.0” //viewModel+liveData implementation “androidx.lifecycle:lifecycle-extensions:$lifecycle_version” // Annotation processor(only for java 8) //annotationProcessor “androidx.lifecycle:lifecycle-compiler:$lifecycle_version” implementation “androidx.lifecycle:lifecycle-common-java8:$lifecycle_version” //paging implementation ‘androidx.paging:paging-runtime:3.0.0-alpha06’ Folder Structure

Android course outline basic

Android Development Course Outline Basic Android App Development Course (Online Android course With Kotlin) Location: Doesn’t matter. It’s Live Online Course Possible starting date of the course: 13 September, 2020 Class time: 8:00 PM to 10:00 PM (Bangladesh time), weekly two days. You don’t need any course! Learn yourself by following this guideline: Check …

Android course outline basic Read More »

Android spinner background

<?xml version=”1.0″ encoding=”utf-8″?> <selector xmlns:android=””> <item> <layer-list> <item> <shape android:shape=”rectangle”> <padding android:left=”2dp” android:top=”4dp” android:right=”2dp” android:bottom=”4dp” /> <gradient android:startColor=”#ffffff” android:endColor=”#ffffff” android:angle=”270″ /> <stroke android:width=”3px” android:color=”@color/colorShadow2″ /> <corners android:radius=”5dp” /> </shape> </item> <item> <bitmap android:gravity=”center|right” android:src=”@drawable/ic_spinner_dropdown”/> </item> </layer-list> </item> </selector>

Bootstrap 4.0

======Bootstrap 4.0======== // Extra small devices (portrait phones, less than 576px) // No media query for `xs` since this is the default in Bootstrap // Small devices (landscape phones, 576px and up) @media (min-width: 576px) { … } // Medium devices (tablets, 768px and up) @media (min-width: 768px) { … } // Large devices (desktops, …

Bootstrap 4.0 Read More »

Android Studio Settings

Android Studio Setup Font Style 1.  Apperence Font : Segoe UI semibold 2.  Apperence Font Size : 11px 3. Code Font: Monospaced. 4. Code Font Size : 16 5. Code Line Space : 1.2 Plugins   1. Generate All Setter :    Author : burceGe 2.

Git Commands

Problem 1: rejected master -> master (non-fast-forward) you have a readme file inside git remote repo. but you don’t have that in your local repo. ;;;;; I created a github repository after creating my local git repository so I needed to accept the changes into local before pushing to github. In this case the only …

Git Commands Read More »