Giter Club home page Giter Club logo

numberprogressbar's Introduction

Android NumberProgressBar Build Status

Insight.io

The NumberProgressBar is a bar, slim and sexy (every man wants! ).

I decided to do this because I was really tired of android original progress bar. So, I made some change, added more color style for this.

And also you can contribute more color style, or new idea to me.

BTW. My friends also made some other platform's NumberProgressBar:


Demo

NumberProgressBar

Download Demo

Usage


Gradle

dependencies {
   compile 'com.daimajia.numberprogressbar:library:1.4@aar'
}

Maven

<dependency>
    <groupId>com.daimajia.numberprogressbar</groupId>
    <artifactId>library</artifactId>
    <version>1.4</version>
    <type>apklib</type>
</dependency>

Use it in your own code:

	<com.daimajia.numberprogressbar.NumberProgressBar
		android:id="@+id/number_progress_bar"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
	/>

I made some predesign style. You can use them via style property.

Preset color

Use the preset style just like below:

	<com.daimajia.numberprogressbar.NumberProgressBar
		android:id="@+id/number_progress_bar"
		style="@style/NumberProgressBar_Default"
	/>

In the above picture, the style is :

NumberProgressBar_Default NumberProgressBar_Passing_Green NumberProgressBar_Relax_Blue NumberProgressBar_Grace_Yellow NumberProgressBar_Warning_Red NumberProgressBar_Funny_Orange NumberProgressBar_Beauty_Red NumberProgressBar_Twinkle_Night

You can get more beautiful color from kular, and you can also contribute your color style to NumberProgressBar!

Build

run ./gradlew assembleDebug (Mac/Linux)

or

run gradlew.bat assembleDebug (Windows)

Attributes

There are several attributes you can set:

The reached area and unreached area:

  • color
  • height

The text area:

  • color
  • text size
  • visibility
  • distance between reached area and unreached area

The bar:

  • max progress
  • current progress

for example, the default style:

	<com.daimajia.numberprogressbar.NumberProgressBar
	        android:layout_width="wrap_content"
	        android:layout_height="wrap_content"
	        
	        custom:progress_unreached_color="#CCCCCC"
	        custom:progress_reached_color="#3498DB"
	        
	        custom:progress_unreached_bar_height="0.75dp"
	        custom:progress_reached_bar_height="1.5dp"
	        
	        custom:progress_text_size="10sp"
	        custom:progress_text_color="#3498DB"
	        custom:progress_text_offset="1dp"
	        custom:progress_text_visibility="visible"
	        
	        custom:progress_max="100"
	        custom:progress_current="80"
	         />

About me:

A student in China mainland, I like Google, like Android, like open source, like doing something interesting. :)

If you have some new idea or internship opportunity, please email me !

numberprogressbar's People

Contributors

bryant1410 avatar chongzhe avatar daimajia avatar dheerucr9 avatar hveiras avatar jaredrummler avatar lelexxx avatar seabornlee avatar tdmitriy avatar uknownothingsnow avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

numberprogressbar's Issues

compile gradle

I want to know how to make compile like your project
dependencies {
compile 'com.daimajia.numberprogressbar:library:1.2@aar'
}

Can't use setUnreachedBarColor

Hello, there.

First of all, awesome library, it works great ;)

But I have a problem setting the unreached bar color, it doesn't work exactly as expected :

private void initColors() {
    _progress.setReachedBarColor(getResources().getColor(R.color.blue));
    _progress.setUnreachedBarColor(getResources().getColor(R.color.white));
}

Here, the reached color is good, but the unreached color isn't white, but blue (as the reached color).

And if we look at your code, we can see a little mistake :

public void setUnreachedBarColor(int BarColor) {
    this.mUnreachedBarColor = BarColor;
    mUnreachedBarPaint.setColor(mReachedBarColor);
    invalidate();
}

In the setUnreachedBarColor function, you update mUnreachedBarColor, but you don't use it to color the unreached bar, you use mReachedBarColor.

Hope you'll fix this soon ;)

Android Studio 1.4
Grade : compile 'com.daimajia.numberprogressbar:library:1.2@aar'

attributes not work

All attributes like "custom:progress_current" gets an error. and in styles.xml it says error for all atributes except normal "android:" attributes. Shit

Android Studio 3.0 - InflateException

I recently updated my working project to Android Studio 3 with all the latest repository versions and i ran into an issue with your library:

android.view.InflateException: Binary XML file line #0: Binary XML file line #0: Error inflating class com.daimajia.numberprogressbar.NumberProgressBar Caused by: android.view.InflateException: Binary XML file line #0: Error inflating class com.daimajia.numberprogressbar.NumberProgressBar

Caused by: java.lang.UnsupportedOperationException: Can't convert value at index 2 to color: type=0x5 at android.content.res.TypedArray.getColor(TypedArray.java:473) at com.daimajia.numberprogressbar.NumberProgressBar.<init>(NumberProgressBar.java:185)

Line 185:
mUnreachedBarColor = attributes.getColor(R.styleable.NumberProgressBar_progress_unreached_color,default_unreached_color);

I use your library as followed:

<com.daimajia.numberprogressbar.NumberProgressBar
                android:id="@+id/progress"
                style="@style/NumberProgressBar_Custom"
                android:layout_alignParentBottom="true"
                android:visibility="gone" />
<style name="NumberProgressBar_Custom" parent="NumberProgressBar_Default">
        <item name="progress_reached_color">@color/colorPrimary</item>
        <item name="progress_reached_bar_height">5dp</item>
        <item name="progress_unreached_color">@android:color/transparent</item>
        <item name="progress_text_color">@color/colorPrimary</item>
        <item name="progress_text_size">5sp</item>
    </style>

Removing the progress_unreached_color item does not work.
Changing the unreached color to @color/white for example does not work.


After further investigation i notice i cannot add two of your styling items:
progress_text_color & progress_reached_bar_height

When i set the other styling parameters, it works fine:

<com.daimajia.numberprogressbar.NumberProgressBar
                android:id="@+id/progress"
                android:layout_height="wrap_content"
                android:layout_width="match_parent"
                bar:max="100"
                bar:progress="0"
                bar:progress_unreached_color="#ff0000" (@android:color/transparent also works)
                bar:progress_reached_color="#00ff00" (@color/colorPrimary also works)
                bar:progress_text_size="5sp"
                bar:progress_unreached_bar_height="0.75dp"
                android:layout_alignParentBottom="true"
                android:visibility="gone" />

onProgressChange not called

hi, i'm using your library to download file and when its reached 100% install apk or view image, but onProgressChange not being called, how to know which part that was miss by me?

xml
<com.daimajia.numberprogressbar.NumberProgressBar android:id="@+id/npb" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_margin="10dp" android:padding="10dp" custom:progress_max="100" style="@style/NumberProgressBar_Warning_Red"/>

change listener
@Override public void onProgressChange(int current, int max) { if (current == max){ //instal on apps new Handler().postDelayed(new Runnable() { @Override public void run() { installOnDevice(); npb.setProgress(0); } }, 2000); } }

in asynctask
protected void onProgressUpdate(String... progress) { // setting progress percentage npb.setProgress(Integer.parseInt(progress[0])); }

install or view
private void installOnDevice(){ File downloadedFile = new File(Environment.getExternalStorageDirectory() + "/" + fileName); Log.d(TAG, "filename: " + fileName); if (fileName.contains(".apk")){ Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(Uri.fromFile(downloadedFile), "application/vnd.android.package-archive"); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); } else if (fileName.contains(".jpg")){ Log.d(TAG, "set image to image view"); Glide.with(getActivity()).load(downloadedFile).into(ivBackground); } enableTap = true; }

thanks b4

Absolute Figures

I want to show stages the user can reach. How can I display that he has done 3 of 5 stages for example? Instead of releative 60% i want to set 3/5.

java.lang.NoSuchFieldError: com.daimajia.numberprogressbar.R$attr.numberProgressBarStyle

I've tried adding library to my project. I am facing some problem, I clicked 'Syns now', and I also downloaded library locally and added it to project, and ... I've tried every thing but I still got this error, any advice ?

    09-07 02:03:34.091    2976-2976/com.ghaleh.minifc E/AndroidRuntime﹕ FATAL EXCEPTION: main
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ghaleh.minifc/com.ghaleh.minifc.activities.MainActivity}: android.view.InflateException: Binary XML file line #18: Error inflating class com.daimajia.numberprogressbar.NumberProgressBar
            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1956)
            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
            at android.app.ActivityThread.access$600(ActivityThread.java:123)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
            at android.os.Handler.dispatchMessage(Handler.java:99)
            at android.os.Looper.loop(Looper.java:137)
            at android.app.ActivityThread.main(ActivityThread.java:4424)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:511)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
            at dalvik.system.NativeStart.main(Native Method)
     Caused by: android.view.InflateException: Binary XML file line #18: Error inflating class com.daimajia.numberprogressbar.NumberProgressBar
            at android.view.LayoutInflater.createView(LayoutInflater.java:606)
            at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:680)
            at android.view.LayoutInflater.rInflate(LayoutInflater.java:739)
            at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
            at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
            at com.ghaleh.minifc.activities.Drawer1.onCreateView(Drawer1.java:102)
            at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:828)
            at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1032)
            at android.app.BackStackRecord.run(BackStackRecord.java:622)
            at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1382)
            at android.app.Activity.performStart(Activity.java:4501)
            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1929)
            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
            at android.app.ActivityThread.access$600(ActivityThread.java:123)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
            at android.os.Handler.dispatchMessage(Handler.java:99)
            at android.os.Looper.loop(Looper.java:137)
            at android.app.ActivityThread.main(ActivityThread.java:4424)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:511)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
            at dalvik.system.NativeStart.main(Native Method)
     Caused by: java.lang.reflect.InvocationTargetException
            at java.lang.reflect.Constructor.constructNative(Native Method)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
            at android.view.LayoutInflater.createView(LayoutInflater.java:586)
            at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:680)
            at android.view.LayoutInflater.rInflate(LayoutInflater.java:739)
            at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
            at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
            at com.ghaleh.minifc.activities.Drawer1.onCreateView(Drawer1.java:102)
            at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:828)
            at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1032)
            at android.app.BackStackRecord.run(BackStackRecord.java:622)
            at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1382)
            at android.app.Activity.performStart(Activity.java:4501)
            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1929)
            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
            at android.app.ActivityThread.access$600(ActivityThread.java:123)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
            at android.os.Handler.dispatchMessage(Handler.java:99)
            at android.os.Looper.loop(Looper.java:137)
            at android.app.ActivityThread.main(ActivityThread.java:4424)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:511)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
            at dalvik.system.NativeStart.main(Native Method)
     Caused by: java.lang.NoSuchFieldError: com.daimajia.numberprogressbar.R$attr.numberProgressBarStyle
            at com.daimajia.numberprogressbar.NumberProgressBar.<init>(NumberProgressBar.java:167)
            at java.lang.reflect.Constructor.constructNative(Native Method)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
            at android.view.LayoutInflater.createView(LayoutInflater.java:586)
            at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:680)
            at android.view.LayoutInflater.rInflate(LayoutInflater.java:739)
            at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
            at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
            at com.ghaleh.minifc.activities.Drawer1.onCreateView(Drawer1.java:102)
            at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:828)
            at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1032)
            at android.app.BackStackRecord.run(BackStackRecord.java:622)
            at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1382)
            at android.app.Activity.performStart(Activity.java:4501)
            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1929)
            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
            at android.app.ActivityThread.access$600(ActivityThread.java:123)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
            at android.os.Handler.dispatchMessage(Handler.java:99)
            at android.os.Looper.loop(Looper.java:137)
            at android.app.ActivityThread.main(ActivityThread.java:4424)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:511)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
            at dalvik.system.NativeStart.main(Native Method)'

Cannot compile project against 1.3 release - proguard issue

Warning:Exception while processing task java.io.IOException: proguard.ParseException: Expecting java type before ';' in line 18 of file '/Users/alex/Projects/myproject/app/build/intermediates/exploded-aar/com.daimajia.numberprogressbar/library/1.3/proguard.txt'

Looks like instead of

-keep interface com.daimajia.numberprogressbar.* { *; }

should be

-keep interface com.daimajia.numberprogressbar.** { ; }

请教

你这个有考虑到如果进度为0或者100的时候,圆形背景超出进度一半的情况吗?,是否需要判断如果当进度小于0 或者大于100时,适当的修正位置呢

字体大小可以当做宽度或者高度吗

@OverRide
protected int getSuggestedMinimumWidth() {
return (int) mTextSize;
}

@Override
protected int getSuggestedMinimumHeight() {
    return Math.max((int) mTextSize, Math.max((int) mReachedBarHeight, (int) mUnreachedBarHeight));
}

重写的这两个方法中为什么返回mTextSize,textSize和宽高有什么关联吗?

为什么构造方法中要先调用setProgress后调用setMax呐?

我在使用的时候,需求初始的max是500,current是300,当我在xml设置完成后显示的是0%,后来我查看了源码并且修改了原来的构造方法,将setMax和setProgress执行顺序交换,解决了我的问题,正常显示60%,我想问的是,为什么要先执行setProgress后执行setMax,他们会产生bug吗?

Add prgress label

Hi. Great lib.
Feature request...
Will it be possible to add another attribute for a text progress label (see the attached pic)

progress

Fails to Render in Android Studio

When using the library as described, with the following XML:
<com.daimajia.numberprogressbar.NumberProgressBar
android:id="@+id/summary_card_monthly_progress"
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="@style/NumberProgressBar_Default"
/>

Android Studio gives the following Rendering error:

Missing styles. Is the correct theme chosen for this layout? Use the Theme combo box above the layout to choose a different layout, or fix the theme style references. Failed to find style 'numberProgressBarStyle' in current theme (2 similar errors not shown)

question

There are some errors ,I am a freshman.
error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.

setMax() not working.

I have an issue. No matter if I called setMax() before, max value of my progress bar stays 100.

当进度走到80%,为什么会变成-%79, - %78 .......

myBody = new MyBody(requestBody, new MyBody.ProgressListener() { @Override public void onProgress(long currentBytes, long contentLength) { int current = new Long(currentBytes).intValue(); int total = new Long(contentLength).intValue(); if (seted) { numberProgressBar.setMax(total); //只设置一次最大值 seted = false; } numberProgress.setProgress(current); } }); mShow = builder.show();

Attributes not work?

Hi!

<com.daimajia.numberprogressbar.NumberProgressBar
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"

        custom:progress_unreached_bar_height="4dp"
        custom:progress_reached_bar_height="8dp"

        custom:max="100"
        custom:progress="80"
         />

Unfortunately the height of the bar does not change.
Is this a bug?

Missing license

Could you please add a license to this project, which we can use when mentioning your project? :)

Warning in Android Studio Layoutpreview

Thanks for the wonderful library. I've added the dependencies and rebuilt the project too but in the preview I'm getting the following error

Rendering Problems Missing styles. Is the correct theme chosen for this layout?  Use the Theme combo box above the layout to choose a different layout, or fix the theme style references.  Failed to find style 'numberProgressBarStyle' in current theme (2 similar errors not shown) 

Seems the default style theme doesn't have any idea about the progress bar library. Is it safe to avoid this warning?

Thanks in advance

no OnProgressBarListener

I add below to build.gradle
compile 'com.daimajia.numberprogressbar:library:1.2@aar'

however, when to build,
there's no progress_max and progress_current attribute
and can not reach to OnProgressBarListener.

when I go to NumberProgressBar.java,
it is different from what I can see in this repository.

May I get any help? is it matter of different version?

Text background

There should be an option to set the background color of the displayed text.
Another great enhancement to be able to set textBackgroundShape,=: circle, square,..etc

Target 27

Can you please update the library to have target 27? I have some lint errors:
Error: Class referenced in the layout file, com.daimajia.numberprogressbar.NumberProgressBar, was not found in the project or the libraries [MissingRegistered]

Using this library in RecyclerView Adapter!

Thank you for the great work!

I am having this issue when using this library with RecyclerView Adapter

Cannot call this method while RecyclerView is computing a layout or scrolling

Thank you.

Logo Design

Hello!

I'm a graphic designer and I like to support open source projects. I would like to design a logo for your project if you interested, I will be happy to work with you! :)

Best Regards

Baran Pirinçal

Graphic Designer

Set Typeface

i cant settype face to it??
how can i do it??

Rendering Problem

When I add a NumberProgessBar in activity_main.xml, and switch to design mode, I met the exception. I've added " compile 'com.daimajia.numberprogressbar:library:1.1@aar'
" in build.gradle, what else should I do?. Thanks for your project.

<com.daimajia.numberprogressbar.NumberProgressBar
    android:id="@+id/bar"
    android:layout_width="wrap_content"
    android:layout_height="match_parent" />

java.lang.ClassNotFoundException: com.daimajia.numberprogressbar.R$attr
at com.intellij.util.lang.UrlClassLoader.findClass(UrlClassLoader.java:142)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at com.daimajia.numberprogressbar.NumberProgressBar.(NumberProgressBar.java:155)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.jetbrains.android.uipreview.ViewLoader.createNewInstance(ViewLoader.java:375)
at org.jetbrains.android.uipreview.ViewLoader.loadView(ViewLoader.java:100)
at com.android.tools.idea.rendering.LayoutlibCallback.loadView(LayoutlibCallback.java:172)
at android.view.BridgeInflater.loadCustomView(BridgeInflater.java:207)
at android.view.BridgeInflater.createViewFromTag(BridgeInflater.java:135)
at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:755)
at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:64)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:727)
at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
at android.view.LayoutInflater.inflate(LayoutInflater.java:373)
at com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:399)
at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:336)
at com.android.ide.common.rendering.LayoutLibrary.createSession(LayoutLibrary.java:332)
at com.android.tools.idea.rendering.RenderService$3.compute(RenderService.java:555)
at com.android.tools.idea.rendering.RenderService$3.compute(RenderService.java:544)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:932)
at com.android.tools.idea.rendering.RenderService.createRenderSession(RenderService.java:544)
at com.android.tools.idea.rendering.RenderService.render(RenderService.java:671)
at com.intellij.android.designer.designSurface.AndroidDesignerEditorPanel$6.run(AndroidDesignerEditorPanel.java:483)
at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:320)
at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:310)
at com.intellij.util.ui.update.MergingUpdateQueue$2.run(MergingUpdateQueue.java:254)
at com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:269)
at com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:227)
at com.intellij.util.ui.update.MergingUpdateQueue.run(MergingUpdateQueue.java:217)
at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:238)
at com.intellij.util.Alarm$Request$1.run(Alarm.java:327)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:695)

background of the text area

Can I set the background of the text area, such as transparency, and I think the white background blocks some of the display !

Not Working with ButterKnifeZelezny

I try to bind the control to butterKnief through annotation
is not binding
@BindView(R.id.NmumberProgressBar)
NumberProgressBar bn;

Overide
Oncreate
bn(this);

and it throw null error argument
Any Suggesting Please

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.