Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

volobot/String-Picker-Android

Repository files navigation

Stylise String Chooser

Add it in your root build.gradle at the end of repositories:

allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}

Add the dependency

dependencies {
	 implementation 'com.github.volobot-admin:String-Picker-Android:v1.3'
	}

How to implement

<com.volobot.stringchooser.StringChooser
 android:id="@+id/stringChooser"
 android:layout_width="match_parent"
 android:layout_height="match_parent"
 app:selectedColor="@android:color/holo_blue_dark"
 app:notSelectedColor="@android:color/holo_green_light"
 app:selectedSize="32dp"
 app:notSelectedSize="20dp"
 app:notSelectedOpacity="0.3"
 >
StringChooser stringChooser = findViewById(R.id.stringChooser);
 List<String> strings = new ArrayList<>();
 for (int i = 0; i < 25; i++) {
 strings.add("option "+i);
 }
 stringChooser.setStrings(strings);
 stringChooser.setStringChooserCallback(new StringChooser.StringChooserCallback() {
 @Override
 public void onStringPickerValueChange(String s, int position) {
 Log.d(TAG, s);
 }
 });

About

This is Stylish String Chooser for Android.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

Languages

AltStyle によって変換されたページ (->オリジナル) /