Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added the functionality of using a TextView instead of a ImageView #16

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

AnshulBansal
Copy link

To implement it in your code just use SquareProgressBarWithtext instead of SquareProgressBar

Example Call

<net.yscs.android.square_progressbar.SquareProgressBarWithText
android:id="@+id/subi"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:paddingTop="20dp" >
</net.yscs.android.square_progressbar.SquareProgressBarWithText>

squareProgressBar = (SquareProgressBarWithText) findViewById(R.id.subi);
squareProgressBar.setText("GDG");
squareProgressBar.setHoloColor(color.holo_blue_dark);
squareProgressBar.setProgress(0);
squareProgressBar.setWidth(8);
squareProgressBar.setOpacity(false);

…re-progressbar

Conflicts:
	android-square-progressbar-example/.classpath
	android-square-progressbar-example/AndroidManifest.xml
	android-square-progressbar-example/project.properties
	android-square-progressbar/.classpath
	android-square-progressbar/project.properties
	android-square-progressbar/src/net/yscs/android/square_progressbar/SquareProgressBar.java
@mrwonderman
Copy link
Owner

Hey Anshul (@AnshulBansal)

Thank you very much for your pull request. I like the idea very much and thanks for your effort. I think I can optimize the code a bit and add some more settings that can be set on the SquareProgressBarWithText. I will do them basing on your pull request on a separate branch, so you then can review the changes before I merge them into the head branch. Is this okay from your side?

Cheers
Yannick

@AnshulBansal
Copy link
Author

Hey Yannick,

It is completely fine from my side and also thank you for this great library. It is helping me a lot in the android game i am developing.

Thank you
Anshul

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants