You can now follow and unfollow accounts. Revolutionary.

This commit is contained in:
Grishka
2022-02-13 02:33:41 +03:00
parent 0615aa34f2
commit 9232428232
5 changed files with 121 additions and 13 deletions

View File

@@ -0,0 +1,38 @@
package org.joinmastodon.android.ui.views;
import android.content.Context;
import android.graphics.Canvas;
import android.util.AttributeSet;
import android.widget.Button;
public class ProgressBarButton extends Button{
private boolean textVisible=true;
public ProgressBarButton(Context context){
super(context);
}
public ProgressBarButton(Context context, AttributeSet attrs){
super(context, attrs);
}
public ProgressBarButton(Context context, AttributeSet attrs, int defStyleAttr){
super(context, attrs, defStyleAttr);
}
public void setTextVisible(boolean textVisible){
this.textVisible=textVisible;
invalidate();
}
public boolean isTextVisible(){
return textVisible;
}
@Override
protected void onDraw(Canvas canvas){
if(textVisible){
super.onDraw(canvas);
}
}
}