From 53d47b30cecf9eab74624afe89edc28cc9d8029e Mon Sep 17 00:00:00 2001 From: salmaanahmed Date: Mon, 3 Sep 2018 16:21:59 +0500 Subject: [PATCH] Initial Commit --- .idea/vcs.xml | 6 +++ .../salmaan/ahmsal/com/MainActivity.kt | 5 +-- app/src/main/res/layout/activity_main.xml | 4 +- .../saslider/{CustomSlider.kt => SASlider.kt} | 38 +++++++++---------- .../{custom_slider.xml => sa_slider.xml} | 0 saslider/src/main/res/values/attrs.xml | 2 +- 6 files changed, 30 insertions(+), 25 deletions(-) create mode 100644 .idea/vcs.xml rename saslider/src/main/java/sasliderdemo/salmaan/ahmsal/com/saslider/{CustomSlider.kt => SASlider.kt} (88%) rename saslider/src/main/res/layout/{custom_slider.xml => sa_slider.xml} (100%) diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/app/src/main/java/sasliderdemo/salmaan/ahmsal/com/MainActivity.kt b/app/src/main/java/sasliderdemo/salmaan/ahmsal/com/MainActivity.kt index 0976d1f..1efe522 100644 --- a/app/src/main/java/sasliderdemo/salmaan/ahmsal/com/MainActivity.kt +++ b/app/src/main/java/sasliderdemo/salmaan/ahmsal/com/MainActivity.kt @@ -4,8 +4,7 @@ import android.graphics.Color import android.os.Bundle import android.support.v7.app.AppCompatActivity import kotlinx.android.synthetic.main.activity_main.* -import sasliderdemo.salmaan.ahmsal.com.saslider.CustomSlider -import sasliderdemo.salmaan.ahmsal.com.R +import sasliderdemo.salmaan.ahmsal.com.saslider.SASlider class MainActivity : AppCompatActivity() { @@ -14,7 +13,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) - val slider = CustomSlider(this@MainActivity) + val slider = SASlider(this@MainActivity) slider.sliderColor = Color.BLUE slider.criticalColor = Color.BLACK slider.min = 0.0 diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index f91ff87..c6731a7 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -5,7 +5,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:background="@android:color/white" - tools:context="sasliderdemo.salmaan.ahmsal.com.sasliderdemo.salmaan.ahmsal.com.MainActivity"> + tools:context="sasliderdemo.salmaan.ahmsal.com.MainActivity"> - - +