Skip to main content

Posts

Android Button Shape and Selector Together

- <selector xmlns:android="https://schemas.android.com/apk/res/android">     <item android:state_pressed="true">         <shape android:shape="oval">             <gradient android:angle="135" android:endcolor="@color/jd_red" android:startcolor="@color/green">             <corners android:radius="20dp">             <stroke android:color="@android:color/black" android:width="2dp">         </stroke></corners></gradient></shape>     </item>     <item>         <shape android:shape="rectangle">             <gradient android:angle="225" android:endcolor="@color/green" android:startcolor="@color/jd_red">             <corners android:radius="@dimen/btn_corner_radius"> ...

Date Picker Sample Code - Android Studio

XML CODE :  <EditText         android:id="@+id/editText1"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:layout_marginLeft="100dp"         android:layout_marginTop="150dp"         android:ems="10"         android:hint="Enter Date" />     <Button         android:id="@+id/button1"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:layout_below="@+id/editText1"         android:layout_marginLeft="100dp"         android:text="Get Date" />     <TextView         android:id="@+id/textView1"         android:layout_width="wrap...

Android Course Outline [Instructions of Hasan Vai]

Course Outlines Fundamentals How to ask questions? How to use Google? Chapter 1: Hello World Android Activity UI design with TextView, Layout. Use most used properties of TextView and layout Input with: EditText, Button, Radio Button, Checkbox Project:  Design a calculator Chapter 2: Some basic views, phone call and email ImageView WebView ListView CardView RecyclerView Phone Call Email Project:  Develop a static information App for your class. It contains all the information of your classmates. Also functional for phone call and email them. Chapter 3: Data storage SharedPreference SQLite database Android default camera Project:  Create an App for storing all information of your friends with photo. All information will be stored in SQLite database. Have to perform CRUD operations. Chapter 4: Connect to the server Introduction to  PHP Introduction to GET and POST method Retrofit network library JSON object an...

onclick method on imageView instead of button

first do it on xml then do it on java between the last 2 parethisis /** code for back_button on onclick method for image public void onClick(View view){ ImageView imageView = (ImageView)findViewById(R.id.backButton); imageView.setOnClickListener(new View.OnClickListener(){ @Override public void onClick(View v){ Intent intent = new Intent(getApplicationContext(),Home.class); startActivity(intent); } }); } **/

Show Loading On Webview While Site Is Loading | Thunkable

Android Learning Source

.Android Learning Source

You uploaded an APK with an invalid signature (learn more about signing). Error from apksigner: ERROR: JAR_SIG_NO_SIGNATURES: No JAR signatures

. Click to find Solution This is the Problem solution piture is

How to add banner ADs in android application on android studio ?? Step by step

Video Tutorial First Come to that marked section Then go to this link Copy this code implementation 'com.google.android.gms:play-services-ads:17.2.0' and paste it to this section after that,go to here marked section and check if it is in the same state. allprojects { repositories { google() jcenter() } } now come to "xml" section write this code now come to menifest section write this extra code. now come to java file write this extra code .there will be error,red underlined some words,u will click on those word ,select that than ,from key board press "Atl+Enter" then select 'import class' MobileAds.initialize(this, "ca-app-pub-3940256099942544~3347511713[this is your app id]"); mAdView = findViewById(R.id....

Android Retrofit Example | JSON API Retrofit Library Working Tutorial (in Hindi)

Android Retrofit Example | JSON API Retrofit Library Working Tutorial (in Hindi)

Android Retrofit tutorial Bangla

Retrofit bangla web series learning

How to get permission to connect your app with internet

Document write it to the manifest

webView

WebSettings webSettings=yutbe.getSettings(); webSettings.setJavaScriptEnabled(true); yutbe.loadUrl("https://www.youtube.com/"); yutbe.setWebViewClient(new WebViewClient()); @Overridepublic void onBackPressed() { if (yutbe.canGoBack()) { yutbe.goBack(); } else { super.onBackPressed(); } }