linger1216 / labelview Goto Github PK
View Code? Open in Web Editor NEWSometimes, we need to show a label above an ImageView or any other views. Well, LabelView will be able to help you. It's easy to implement as well!
License: Apache License 2.0
Sometimes, we need to show a label above an ImageView or any other views. Well, LabelView will be able to help you. It's easy to implement as well!
License: Apache License 2.0
I need to remove from the view please...
great control by the way !!!
I want to use imageview what put a label view.
How can I use this view in XML for static use instead of dynamic creating view ??
Hy there this is possible?
public void setLabelText(String text) { utils.setLabelText(this, text); }
to
public void setLabelText(CharSequence text) { utils.setLabelText(this, text); }
when i use is in LinearLayout,it doesn't work....
Thanks for your great job.
Looking forward to see this awesome widget in jcenter/maven, and I can integrate LabView with gradle.
Thanks
In the "If you need Label in your custom View", section, the first point is written as: "create an new view class extends YourView".
This sentence is grammatically incorrect. 'an' is used before a constant which is against the standard grammatical rules.
The corrected sentence could be: "create a new view class extends YourView".
Thank you.
When I scoll it in my recyclerview, the label became a strip. I figured out that this happens when the targetView became invisible.
:)
这个labelview我在一个view上加了之后,运行出来是斜着的,但是过一段时间自己就变成在这个view上横着显示了
Hi,
I want to change the font of label in labelImageView from assets.
Can i do this?
is that possible to make a gradle setup?
How can I use this in RecyclerVIew by using adapter using RecyclerVIewViewHolder ??
waiting for response...
label.setTargetView(convertView.findViewById(R.id.featured_icon_row_image), 15, LabelView.Gravity.LEFT_TOP);
on some items it shows perfect label and on some items it show horizontal Label.
Would it be possible to add Gravity End and Start to this great library?
That is in case the app support RTL!
Thank you.
/**
* Text rotate in TextView
*
* @author Li Yujiang
* @since 2015/8/12
* Created by IntelliJ IDEA
*/
public class RotateTextView extends TextView {
private static final int DEFAULT_DEGREES = 45;
private int degrees;
public RotateTextView(Context context) {
this(context, null);
}
public RotateTextView(Context context, AttributeSet attrs) {
super(context, attrs, android.R.attr.textViewStyle);
setGravity(Gravity.CENTER);
degrees = DEFAULT_DEGREES;
}
@Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
setMeasuredDimension(getMeasuredWidth(), getMeasuredWidth());
}
@Override
protected void onDraw(Canvas canvas) {
canvas.save();
canvas.translate(getCompoundPaddingLeft(), getExtendedPaddingTop());
canvas.rotate(degrees, this.getWidth() / 2f, this.getHeight() / 2f);
super.onDraw(canvas);
canvas.restore();
}
public void setDegrees(int degrees) {
this.degrees = degrees;
}
public int getDegrees() {
return degrees;
}
}
Hi, after made label for lazy adapter
as you can see in the image link the last image have 2 labels which I just made one label like the other image's label ,but after scrolling up and down this happening
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.