Here we are making splash screen which is used in all application as a first screen.
So lets start to learn how to make the splash screen.
First make .xml layout for it , most of splash screen are with image.
So here is your splash_screen.xml
Here i share my Android , React-Native , Kotlin coding knowledge for Android Beginner, Android Users, Android Developer. Kotlin android learners, React-Native learners. Also Support for Application developers with code suff to create applications.
Here we are making splash screen which is used in all application as a first screen.
So lets start to learn how to make the splash screen.
First make .xml layout for it , most of splash screen are with image.
So here is your splash_screen.xml
How to make like below image in android.
This is the called as Edittext mask making , it means that how to make edittext inserting data format like card view , like expiry date format etc...
So here we learn how to make Edittext Mask Making Format in android.
How to set textview gradient color in android , below image is showing the text with gradient style , this style is apply with 2 colors and Text Shader method.
txtshader1.getPaint().setShader(SetTextShader_Gradient1(mContext));
How to make Payment with Stripe , Here we are doing the Stripe Payment process integration.
How to call API using Retrofit method , here we are looking how to parse web API using Retrofit and with Header.
private void callRegister() {
APIInterface reg_api = RetrofitService.createService(ApiInterface.class, "BASE_URL", true);
//str_fname,str_lname,str_phone
RegisterBody regmodel = new RegisterBody();
regmodel.setFirst_name(str_fname);
regmodel.setLast_name(str_lname);
regmodel.setCountry_code("+91");
regmodel.setMobile(str_phone);
regmodel.setPassword(str_password);
Call<RegisterModel> callAdvisoryApi = reg_api.getRegister(regmodel);
callAdvisoryApi.enqueue(new Callback<RegisterModel>() {
@Override
public void onResponse(Call<RegisterModel> call, Response<RegisterModel> response) {
RegisterModel objRegisterModel = response.body();
if (response.code() == 200) {
Toast.makeText(mContext,"Register Successfully..",Toast.LENGTH_LONG).show();
Intent myintent = new Intent(mContext, MainActivity.class);
startActivity(myintent);
} else {
Utilities.displayMessage(mContext, "Could not signup..Please try again");
}
}
@Override
public void onFailure(Call<RegisterModel> call, Throwable t) {
Toast.makeText(mContext, "Failed to load data" + t.getMessage(), Toast.LENGTH_SHORT).show();
}
});
}
public interface ApiInterface {
@POST("/api/user/signup")
Call<RegisterModel> getRegister(@Body RegisterBody regmodelobj);
@POST("/api/user/login")
Call<LoginModel> postLogin(@Body LoginParameters params);
}
In Kotlin, determining the difference in hours between two timestamps is a common task, especially in scenarios involving time-based calcu...