Make Android Seekbar line thinner
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
Please help me to create a seek bar with thinner line. Here is the code
<android.support.v7.widget.AppCompatSeekBar
android:id="@+id/sb_zoom_size"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_marginStart="0dp"
android:max="200"
android:padding="15dp"
android:progress="100"
app:tickMark="@color/colorPrimary"
app:tickMarkTint="@color/colorPrimary"
app:tickMarkTintMode="multiply"
android:progressTint="@android:color/darker_gray"/>
Thank you
java android android-studio user-interface mobile
add a comment |
Please help me to create a seek bar with thinner line. Here is the code
<android.support.v7.widget.AppCompatSeekBar
android:id="@+id/sb_zoom_size"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_marginStart="0dp"
android:max="200"
android:padding="15dp"
android:progress="100"
app:tickMark="@color/colorPrimary"
app:tickMarkTint="@color/colorPrimary"
app:tickMarkTintMode="multiply"
android:progressTint="@android:color/darker_gray"/>
Thank you
java android android-studio user-interface mobile
add a comment |
Please help me to create a seek bar with thinner line. Here is the code
<android.support.v7.widget.AppCompatSeekBar
android:id="@+id/sb_zoom_size"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_marginStart="0dp"
android:max="200"
android:padding="15dp"
android:progress="100"
app:tickMark="@color/colorPrimary"
app:tickMarkTint="@color/colorPrimary"
app:tickMarkTintMode="multiply"
android:progressTint="@android:color/darker_gray"/>
Thank you
java android android-studio user-interface mobile
Please help me to create a seek bar with thinner line. Here is the code
<android.support.v7.widget.AppCompatSeekBar
android:id="@+id/sb_zoom_size"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_marginStart="0dp"
android:max="200"
android:padding="15dp"
android:progress="100"
app:tickMark="@color/colorPrimary"
app:tickMarkTint="@color/colorPrimary"
app:tickMarkTintMode="multiply"
android:progressTint="@android:color/darker_gray"/>
Thank you
java android android-studio user-interface mobile
java android android-studio user-interface mobile
asked Nov 15 '18 at 17:04
GopaGopa
217
217
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
You can change the size/thickness of your seek-bar just by using these two attributes of seekbar: android:minHeight="20dp"
and android:maxHeight="20dp"
For example,in your case :
<android.support.v7.widget.AppCompatSeekBar
android:id="@+id/sb_zoom_size"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_marginStart="0dp"
android:max="200"
android:maxHeight="20dp"
android:minHeight="20dp"
android:padding="15dp"
android:progress="100"
android:progressTint="@android:color/darker_gray"
app:tickMark="@color/colorPrimary"
app:tickMarkTint="@color/colorPrimary"
app:tickMarkTintMode="multiply" />
If you need a more customizable SeekBar then you'll need to use drawable and you can check this post.
add a comment |
You can use this attributes in AppCompatSeekBar
android:minHeight="2dip"
android:maxHeight="2dip"
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53324544%2fmake-android-seekbar-line-thinner%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can change the size/thickness of your seek-bar just by using these two attributes of seekbar: android:minHeight="20dp"
and android:maxHeight="20dp"
For example,in your case :
<android.support.v7.widget.AppCompatSeekBar
android:id="@+id/sb_zoom_size"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_marginStart="0dp"
android:max="200"
android:maxHeight="20dp"
android:minHeight="20dp"
android:padding="15dp"
android:progress="100"
android:progressTint="@android:color/darker_gray"
app:tickMark="@color/colorPrimary"
app:tickMarkTint="@color/colorPrimary"
app:tickMarkTintMode="multiply" />
If you need a more customizable SeekBar then you'll need to use drawable and you can check this post.
add a comment |
You can change the size/thickness of your seek-bar just by using these two attributes of seekbar: android:minHeight="20dp"
and android:maxHeight="20dp"
For example,in your case :
<android.support.v7.widget.AppCompatSeekBar
android:id="@+id/sb_zoom_size"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_marginStart="0dp"
android:max="200"
android:maxHeight="20dp"
android:minHeight="20dp"
android:padding="15dp"
android:progress="100"
android:progressTint="@android:color/darker_gray"
app:tickMark="@color/colorPrimary"
app:tickMarkTint="@color/colorPrimary"
app:tickMarkTintMode="multiply" />
If you need a more customizable SeekBar then you'll need to use drawable and you can check this post.
add a comment |
You can change the size/thickness of your seek-bar just by using these two attributes of seekbar: android:minHeight="20dp"
and android:maxHeight="20dp"
For example,in your case :
<android.support.v7.widget.AppCompatSeekBar
android:id="@+id/sb_zoom_size"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_marginStart="0dp"
android:max="200"
android:maxHeight="20dp"
android:minHeight="20dp"
android:padding="15dp"
android:progress="100"
android:progressTint="@android:color/darker_gray"
app:tickMark="@color/colorPrimary"
app:tickMarkTint="@color/colorPrimary"
app:tickMarkTintMode="multiply" />
If you need a more customizable SeekBar then you'll need to use drawable and you can check this post.
You can change the size/thickness of your seek-bar just by using these two attributes of seekbar: android:minHeight="20dp"
and android:maxHeight="20dp"
For example,in your case :
<android.support.v7.widget.AppCompatSeekBar
android:id="@+id/sb_zoom_size"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_marginStart="0dp"
android:max="200"
android:maxHeight="20dp"
android:minHeight="20dp"
android:padding="15dp"
android:progress="100"
android:progressTint="@android:color/darker_gray"
app:tickMark="@color/colorPrimary"
app:tickMarkTint="@color/colorPrimary"
app:tickMarkTintMode="multiply" />
If you need a more customizable SeekBar then you'll need to use drawable and you can check this post.
edited Nov 15 '18 at 19:40
answered Nov 15 '18 at 19:09
Miruna RaduMiruna Radu
716
716
add a comment |
add a comment |
You can use this attributes in AppCompatSeekBar
android:minHeight="2dip"
android:maxHeight="2dip"
add a comment |
You can use this attributes in AppCompatSeekBar
android:minHeight="2dip"
android:maxHeight="2dip"
add a comment |
You can use this attributes in AppCompatSeekBar
android:minHeight="2dip"
android:maxHeight="2dip"
You can use this attributes in AppCompatSeekBar
android:minHeight="2dip"
android:maxHeight="2dip"
answered Nov 15 '18 at 19:15
Milad BahmanabadiMilad Bahmanabadi
868718
868718
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53324544%2fmake-android-seekbar-line-thinner%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown