Skip to content

Commit

Permalink
[TASK] Updating the TV not only with numbers but text also possible
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhmhjn committed May 26, 2013
1 parent 8fb3928 commit ad748e6
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 43 deletions.
6 changes: 3 additions & 3 deletions example/res/layout/vv_seekbars.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
android:layout_height="wrap_content"
android:orientation="vertical" >

<in.jasonleon.vanitiviews.widget.SeekBarWithText
<in.jasonleon.vanityviews.widget.SeekBarWithText
android:layout_width="match_parent"
android:layout_height="wrap_content" />

<in.jasonleon.vanitiviews.widget.SeekBarWithText
<in.jasonleon.vanityviews.widget.SeekBarWithText
android:layout_width="match_parent"
android:layout_height="wrap_content" >

<include
android:id="@id/vv_custom_include"
layout="@layout/custom_seekbar" />
</in.jasonleon.vanitiviews.widget.SeekBarWithText>
</in.jasonleon.vanityviews.widget.SeekBarWithText>

</LinearLayout>
1 change: 1 addition & 0 deletions library/.classpath
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
66 changes: 33 additions & 33 deletions library/.project
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>VanitiViews</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>VanityViews</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
2 changes: 1 addition & 1 deletion library/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="in.jasonleon.vanitiviews"
package="in.jasonleon.vanityviews"
android:versionCode="1"
android:versionName="1.0" >

Expand Down
File renamed without changes.
4 changes: 1 addition & 3 deletions library/res/values/attrs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
<resources>

<!-- VanitySeekbar -->
<declare-styleable name="SeekBarWithText">
<attr name="StatusTvStyle" format="reference"></attr>
</declare-styleable>
<declare-styleable name="SeekBarWithText"></declare-styleable>

</resources>
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/**
*
*/
package in.jasonleon.vanitiviews.widget;
package in.jasonleon.vanityviews.widget;

import in.jasonleon.vanitiviews.R;
import in.jasonleon.vanityviews.R;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
Expand Down Expand Up @@ -53,7 +53,7 @@ protected void onFinishInflate() {

if (findViewById(R.id.vv_custom_include) == null) {
LayoutInflater inflater = LayoutInflater.from(getContext());
inflater.inflate(R.layout.vv__seekbarandcount, this);
inflater.inflate(R.layout.vv__seekbarwithtext, this);
}
super.onFinishInflate();

Expand Down Expand Up @@ -101,6 +101,13 @@ public SeekBar getSeekBar() {
return mSeekBar;
}

/**
* @return the mSeekBarTv
*/
public TextView getSeekBarTv() {
return mSeekBarTv;
}

/**
* @return the mOnSeekBarChangeListener
*/
Expand Down

0 comments on commit ad748e6

Please sign in to comment.