Skip to content

Commit f6317e9

Browse files
committed
Refactoring Image. Added support Picasso
1 parent 5eb6de8 commit f6317e9

22 files changed

Lines changed: 440 additions & 24 deletions

File tree

634 Bytes
Binary file not shown.

.idea/codeStyles/Project.xml

Lines changed: 29 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/dictionaries/R12.xml

Lines changed: 0 additions & 3 deletions
This file was deleted.

.idea/encodings.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 38 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,13 @@ dependencies {
2424
implementation fileTree(dir: 'libs', include: ['*.jar'])
2525
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
2626
implementation "com.android.support:appcompat-v7:$supportVersion"
27-
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
27+
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
2828

2929
api project(':omegatypes')
3030

31+
api project(':picasso')
32+
33+
3134
testImplementation 'junit:junit:4.12'
3235
androidTestImplementation 'com.android.support.test:runner:1.0.2'
3336
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

app/src/main/AndroidManifest.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
33
package="omega_r.com.omegatypesexample">
44

5+
<uses-permission android:name="android.permission.INTERNET"/>
6+
7+
58
<application
69
android:allowBackup="true"
710
android:icon="@mipmap/ic_launcher"

app/src/main/java/omega_r/com/omegatypesexample/MainActivity.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import android.widget.TextView
66
import com.omega_r.libs.omegatypes.Image
77
import com.omega_r.libs.omegatypes.Text
88
import com.omega_r.libs.omegatypes.applyTo
9+
import com.omega_r.libs.omegatypes.picasso.from
910

1011
class MainActivity : BaseActivity() {
1112

@@ -17,7 +18,7 @@ class MainActivity : BaseActivity() {
1718
setContentView(R.layout.activity_main)
1819
val text = Text.from(R.string.hello_world)
1920
text.applyTo(exampleTextView) // or exampleTextView.setText(text)
20-
val image = Image.from(R.mipmap.ic_launcher)
21+
val image = Image.from("https://avatars1.githubusercontent.com/u/28600571")
2122
image.applyTo(imageView) // or imageView.setImage(image)
2223
}
2324

0 commit comments

Comments
 (0)