-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from ddfreiling/feat/prefetch
Feature: Prefetching
- Loading branch information
Showing
7 changed files
with
167 additions
and
24 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,20 @@ | ||
<ActionBar title="NativeScript-Image Angular sample app"> | ||
</ActionBar> | ||
<GridLayout rows="*, auto, auto, auto, auto, auto"> | ||
<NSImg #imageView | ||
verticalAlignment="center" | ||
placeholderImageUri="res://ns_logo" | ||
src="https://raw.githubusercontent.com/Akylas/nativescript-image/master/examples-data/breakfast1.jpg"> | ||
</NSImg> | ||
<Button text="Set 1" row="1" (tap)="onSeOpacityTo1()"></Button> | ||
<Button text="Set 0.5" row="2" (tap)="onSeOpacityTo05()"></Button> | ||
<Button text="Set 0.1" row="3" (tap)="onSeOpacityTo01()"></Button> | ||
<Button text="Animate to 0.1" row="4" (tap)="onAnimateTo01()"></Button> | ||
<Button text="Animate to 1" row="5" (tap)="onAnimateTo1()"></Button> | ||
</GridLayout> | ||
<ScrollView> | ||
<GridLayout rows="*, auto, auto, auto, auto, auto, auto, auto"> | ||
<GridLayout rows="*" columns="*" *ngIf="showImage | async"> | ||
<NSImg #imageView | ||
verticalAlignment="center" | ||
placeholderImageUri="res://ns_logo" | ||
src="https://raw.githubusercontent.com/Akylas/nativescript-image/master/examples-data/breakfast1.jpg"> | ||
</NSImg> | ||
</GridLayout> | ||
<Button text="Set 1" row="1" (tap)="onSeOpacityTo1()"></Button> | ||
<Button text="Set 0.5" row="2" (tap)="onSeOpacityTo05()"></Button> | ||
<Button text="Set 0.1" row="3" (tap)="onSeOpacityTo01()"></Button> | ||
<Button text="Animate to 0.1" row="4" (tap)="onAnimateTo01()"></Button> | ||
<Button text="Animate to 1" row="5" (tap)="onAnimateTo1()"></Button> | ||
<Button text="Prefetch to Disk" row="6" (tap)="prefetchToDisk()"></Button> | ||
<Button text="Prefetch to Memory" row="7" (tap)="prefetchToMemory()"></Button> | ||
</GridLayout> | ||
</ScrollView> |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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