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
| package com.appukrb.CustomFont; | |
| import android.content.Context; | |
| import android.graphics.Typeface; | |
| import android.util.AttributeSet; | |
| /** | |
| * Created by appukrb. | |
| */ |
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
| //In Activity | |
| circleIndicator=(SimpleCircularIndicatorAndroid)itemView.findViewById(R.id.circle_indicator); | |
| circleIndicator.setPageIndicators(3);//Number of indicator to display(int) |
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
| { | |
| "COUNTRYCODE": { | |
| "98": "India (+91)", | |
| "222": "United States of America (+1)", | |
| "220": "United Arab Emirates (+971)", | |
| "221": "United Kingdom (+44)", | |
| "13": "Australia (+61)", | |
| "189": "Singapore (+65)", | |
| "39": "Canada (+1)", | |
| "173": "Qatar (+974)", |
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
| { | |
| "COUNTRY":{ | |
| "1":"Afghanistan", | |
| "2":"Albania", | |
| "3":"Algeria", | |
| "4":"American Samoa", | |
| "5":"Andorra", | |
| "6":"Angola", | |
| "7":"Anguilla", | |
| "8":"Antarctica", |
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
| /** | |
| * @author luksprog | |
| */ | |
| public class BusSeatRecycler extends AppCompatActivity { | |
| private RecyclerView recyclerView; | |
| private BusSeatAdapter adapter; | |
| @Override |
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 MyApp extends Application { | |
| @Override | |
| public void onCreate() { | |
| TypefaceUtil.overrideFont(getApplicationContext(), "SERIF", "fonts/Roboto-Regular.ttf"); // font from assets: "assets/fonts/Roboto-Regular.ttf | |
| } | |
| } |
NewerOlder