Skip to content

Commit

Permalink
v1.2 demo updated
Browse files Browse the repository at this point in the history
  • Loading branch information
woxingxiao committed Dec 4, 2016
1 parent 2011209 commit 1a178c4
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;

import com.xw.repo.bubbleseekbar.BubbleSeekBar;
import com.xw.repo.BubbleSeekBar;

import java.util.Random;

Expand Down
22 changes: 14 additions & 8 deletions app/src/main/res/layout/content_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@
tools:context="com.xw.samlpe.bubbleseekbar.MainActivity"
tools:showIn="@layout/activity_main">

<com.xw.repo.bubbleseekbar.BubbleSeekBar
<com.xw.repo.BubbleSeekBar
android:id="@+id/bubble_seek_bar_0"
android:layout_width="match_parent"
android:layout_height="16dp"
android:layout_marginTop="48dp"/>
android:layout_marginTop="32dp"/>

<com.xw.repo.bubbleseekbar.BubbleSeekBar
<com.xw.repo.BubbleSeekBar
android:id="@+id/bubble_seek_bar_1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="32dp"
Expand All @@ -30,7 +31,8 @@
app:bsb_show_section_mark="true"
app:bsb_track_color="@color/color_gray"/>

<com.xw.repo.bubbleseekbar.BubbleSeekBar
<com.xw.repo.BubbleSeekBar
android:id="@+id/bubble_seek_bar_2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="32dp"
Expand All @@ -41,7 +43,8 @@
app:bsb_track_color="@color/color_gray"
app:bsb_track_size="4dp"/>

<com.xw.repo.bubbleseekbar.BubbleSeekBar
<com.xw.repo.BubbleSeekBar
android:id="@+id/bubble_seek_bar_3"
android:layout_width="match_parent"
android:layout_height="16dp"
android:layout_marginTop="32dp"
Expand All @@ -50,13 +53,14 @@
app:bsb_show_text="true"
app:bsb_show_thumb_text="true"/>

<com.xw.repo.bubbleseekbar.BubbleSeekBar
<com.xw.repo.BubbleSeekBar
android:id="@+id/bubble_seek_bar_4"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="32dp"
app:bsb_auto_adjust_section_mark="true"
app:bsb_bubble_color="@color/color_red_light"
app:bsb_bubble_text_color="@color/color_green"
app:bsb_bubble_text_color="@color/colorPrimaryDark"
app:bsb_bubble_text_size="10sp"
app:bsb_max="50"
app:bsb_min="-50"
Expand All @@ -67,12 +71,14 @@
app:bsb_text_position="bottom"
app:bsb_track_color="@color/color_red_light"/>

<com.xw.repo.bubbleseekbar.BubbleSeekBar
<com.xw.repo.BubbleSeekBar
android:id="@+id/bubble_seek_bar_5"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="32dp"
app:bsb_auto_adjust_section_mark="true"
app:bsb_second_track_color="@color/color_blue"
app:bsb_section_count="5"
app:bsb_show_progress_in_float="true"
app:bsb_show_section_mark="true"
app:bsb_show_text="true"
Expand Down
Binary file modified demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sample.apk
Binary file not shown.

0 comments on commit 1a178c4

Please sign in to comment.