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,R.style.AlertDialogStyle) { 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 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: https://hellohasan.com/2017/07/16/android-app-development-guideline/ Check …

Android course outline basic Read More »

Android spinner background

<?xml version=”1.0″ encoding=”utf-8″?> <selector xmlns:android=”http://schemas.android.com/apk/res/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    https://github.com/gejun123456/intellij-generateAllSetMethod 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 »

Automatic popping up keyboard on start Activity

android:focusable=”true” android:focusableInTouchMode=”true” add these two line in parent of the Edittext …in example we added into cardview. <androidx.cardview.widget.CardView android:id=”@+id/note_search_layout” android:layout_width=”0dp” android:layout_height=”wrap_content” android:padding=”5dp” app:cardBackgroundColor=”@color/whiteBgcolor” app:cardCornerRadius=”5dp” app:cardElevation=”3dp” app:cardUseCompatPadding=”true” app:layout_constraintEnd_toEndOf=”parent” app:layout_constraintStart_toStartOf=”parent” app:layout_constraintTop_toTopOf=”parent” android:focusable=”true” android:focusableInTouchMode=”true”> <EditText android:id=”@+id/note_search” android:layout_width=”match_parent” android:layout_height=”wrap_content” android:layout_margin=”5dp” android:background=”@drawable/bg_white_border_no” android:hint=”Search Note by title..” android:imeOptions=”actionSearch” android:inputType=”text” android:padding=”8dp” android:textSize=”15sp” /> </androidx.cardview.widget.CardView> Auto focus on edittext inside scrollview autofocus inside …

Automatic popping up keyboard on start Activity Read More »