Finder length manipulation

I am using search in android app to set volume. However, the length of the keychain is not too complicated. So, is there a way to adjust the length of the search string?

+2


a source to share


2 answers


XML example:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="10dip">
<SeekBar android:id="@+id/default_width_seek_bar"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content" />
<SeekBar android:id="@+id/fixed_width_seek_bar"
    android:layout_width="100dip"
    android:layout_height="wrap_content" />
<SeekBar android:id="@+id/full_width_seek_bar"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content" />
<SeekBar android:id="@+id/padded_full_width_seek_bar"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:paddingLeft="8dip" android:paddingRight="8dip" />
</LinearLayout>

      



Side note: The SeekBar's thumb can be trimmed when it is moved all the way to the sides. A little extra addition like the latest SeekBar fixes this problem.

+2


a source


SeekBar sk =(SeekBar)findViewById(R.id.seekbar);
sk.setLayoutParams(params)

      



Using this you can set the length of the arrow

0


a source







All Articles