This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const CandidateModel = require('candidate_data'); | |
const BundleService = require('bundle_service'); | |
const BundlePlanMappingService = require('bundle_plan_mapping_service'); | |
const candidateDataMappingService = require("candidate_data_mapping_services"); | |
const _ = require('lodash'); | |
const global_constants = require('global_constants'); | |
const CustomerService = require('customer_service'); | |
const CustomerContactModel = require('customer_contact'); | |
const CommonService = require('common_service'); | |
const PromoteService = require('promote_service'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://graph.facebook.com/USERNAME/picture?width=800 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
viewModel = ViewModelProviders.of(this).get(MainActivityViewModel.class); | |
viewModel.getResponse().observe(this, data -> { | |
progressBar.setVisibility(View.GONE); | |
init(data); | |
}); | |
viewModel.isNetworkAvailable.observe(this,data ->{ | |
if (!data){ | |
showSnackbar(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MainActivity extends AppCompatActivity { | |
private ArrayList<String> imageModelArrayList; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
requestWindowFeature(Window.FEATURE_NO_TITLE); | |
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN); | |
setContentView(R.layout.activity_main); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class BaseActivity extends AppCompatActivity { | |
@Inject SharedPreferences prefs; | |
@Override | |
protected void onCreate(@Nullable Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
((DaggerApplication)getApplication()).getAppComponent().inject(this); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class WebActivity extends AppCompatActivity { | |
WebView myWebView; | |
public static String url="http://www.google.co.in"; | |
ProgressBar determinateBar; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_web); | |
Toolbar toolbar = findViewById(R.id.toolbar); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="fill_parent" | |
android:layout_height="fill_parent" | |
android:background="@color/colorPrimary" | |
android:fitsSystemWindows="true"> | |
<LinearLayout | |
android:orientation="vertical" | |
android:layout_width="match_parent" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ProfileAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> { | |
private final Context context; | |
private List<Data> profileList; | |
public class MyViewHolder extends RecyclerView.ViewHolder { | |
TextView textViewFirstName; | |
ImageView imageView; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
classpath "io.realm:realm-gradle-plugin:5.3.0" | |
apply plugin: 'realm-android' | |
realm { | |
syncEnabled = true; | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//////////////// | |
[{ | |
"avatar": "https:\/\/s3.amazonaws.com\/uifaces\/faces\/twitter\/calebogden\/128.jpg", | |
"last_name": "Bluth", | |
"id": 1, | |
"first_name": "George" | |
}, { | |
"avatar": "https:\/\/s3.amazonaws.com\/uifaces\/faces\/twitter\/josephstein\/128.jpg", | |
"last_name": "Weaver", | |
"id": 2, |
NewerOlder