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
| data class TabPosition(val left: Float, val right: Float) | |
| @Composable | |
| fun StretchTabComponent() { | |
| val tabs = listOf("SALE", "RENT") | |
| var selectedIndex by remember { mutableIntStateOf(0) } | |
| val tabPositions = remember { mutableStateListOf<TabPosition>() } | |
| val startX = remember { Animatable(0f) } | |
| val endX = remember { Animatable(0f) } | |
| val scope = rememberCoroutineScope() |
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
| how to add a git android library project as a sub module, to a project | |
| 1. create an android project | |
| 2. add to vcs (vcs - import into version control - create git repository) | |
| 3. goto terminal and add sub-module - make sure the location folder name is different than the original project name | |
| git submodule add https://XXX@bitbucket.org/YYY/ZZZ.git | |
| 4. goto file menu - project structure | |
| 5. click '+' on left top | |
| 6. select 'import gradle project' |
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 | |
| } | |
| } |
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
| TimeZone: | |
| pacific/midway: | |
| olson: Pacific/Midway | |
| text: (GMT-11:00) Midway Island, Samoa | |
| america/adak: | |
| olson: America/Adak | |
| text: (GMT-10:00) Hawaii-Aleutian | |
| etc/gmt+10: | |
| olson: Etc/GMT+10 | |
| text: (GMT-10:00) Hawaii |