Comments (5)
Hi CyberWarriorZ,
Can you show me your code?
from waveloadingview.
I used that code in my fragment.
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_battery, container, false);
WaveLoadingView waveView = view.findViewById(R.id.waveLoadingView);
waveView.setBottomTitleColor(R.color.colorPrimaryDark);
waveView.setWaveColor(R.color.greenDark);
return view;
}
And my layout:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
tools:context="com.deviceinfo.fragments.BatteryFragment"
android:orientation="vertical">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginTop="8dp"
android:orientation="vertical">
<me.itangqi.waveloadingview.WaveLoadingView
android:id="@+id/waveLoadingView"
android:layout_width="120dp"
android:layout_height="120dp"
app:wlv_borderWidth="3dp"
app:wlv_shapeType="circle"
app:wlv_round_rectangle="true"
app:wlv_triangle_direction="north"
app:wlv_titleCenterStrokeWidth="3dp"
app:wlv_titleCenter="Center Title"
app:wlv_titleCenterSize="24sp"
app:wlv_waveAmplitude="70"/>
</LinearLayout>
<ListView
android:scrollbars="none"
android:id="@+id/listViewBattery"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:layout_marginStart="8dp"
android:layout_marginBottom="8dp"/>
</LinearLayout>
from waveloadingview.
Whenever I try to change the color to something else I get purple color...
from waveloadingview.
same problem
from waveloadingview.
use "getResource().getColor(R.color.colorPrimaryDark)" instead of "R.color.colorPrimaryDark" and it will work
from waveloadingview.
Related Issues (20)
- 如何修改wave 为渐变色
- not able to set max progress value HOT 5
- 为什么 不是 上下波动 而是 一直 往右边 ??????????赶快 添加
- java.lang.IllegalArgumentException: bitmap size exceeds 32bits
- Custom font title
- Please help!
- for image view
- waveloadingview one line
- 添加浮动动画
- 能否将默认的从上到下的加载动画设置为可配置参数?
- Is centerTitle update linked to setting the wave progress value
- how to set progress gradient color HOT 1
- NUMBER OF WAVES HOT 1
- is this library working in recyclerviewadapter ? HOT 1
- Set second wave color
- NestedScroll
- SAMPLE at README is broken
- Will this repository be migrated to maven central ? HOT 1
- setAnimDuration Not working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from waveloadingview.