بروز خطا
[message]
اشتراک در سوال
رای ها
[dataList]
مشکل در اجرا نشدن help نرم افزار
سلام دوستان
من یک برنامه درست کرده بودم و قسمت راهنمای این نرم افزار رو با (com.getkeepsafe.taptargetview:taptargetview:1.11.0) زده بودم ولی الان که بعد یه مدت بازش کردن و نرم افزار رو run کردم دیگه اون چیزی که ساختم رو نمیاره البته نرم افزار کرش نمیکنه و فقط صفحه رو خاکستری میکنه و چیزی نشون نمیده به این شکل

البته زمانی که رو شئ دارای راهنما کلیک میکنم درست کار میکنه اما بقیه موارد مثل رنگ هایی و افکت هایی که داره رو نمیاره
این هم کدی که برای این صفحه استفاده کردم
public void ShowHelp(){
ArrayList<Integer> id=new ArrayList<Integer>();
ArrayList<String> title=new ArrayList<String>();
ArrayList<String> doc=new ArrayList<String>();
id.add(0,R.id.img_context);
id.add(1,R.id.img_send);
title.add(0,getString(R.string.title_icon_context));
title.add(1,getString(R.string.title_icon_send));
doc.add(0,getString(R.string.doc_icon_context));
doc.add(1,getString(R.string.doc_icon_send));
setAbilityHelp(id,title,doc);
}
public void setAbilityHelp(final ArrayList<Integer> id, final ArrayList<String> title, final ArrayList<String> doc){
TapTargetView.showFor(MainStartup.this,// `this` is an Activity
TapTarget.forView(findViewById(id.get(countId)), title.get(countId), doc.get(countId))
// All options below are optional
.outerCircleColor(R.color.hide) // Specify a color for the outer circle
.outerCircleAlpha(0.88f) // Specify the alpha amount for the outer circle
.targetCircleColor(R.color.white) // Specify a color for the target circle
.titleTextSize(18) // Specify the size (in sp) of the title text
.titleTextColor(R.color.white) // Specify the color of the title text
.descriptionTextSize(16) // Specify the size (in sp) of the description text
.descriptionTextColor(R.color.red) // Specify the color of the description text
.textColor(R.color.blue) // Specify a color for both the title and description text
.textTypeface(Typeface.createFromAsset(getAssets(), "fonts/IRANSansMobile.ttf")) // Specify a typeface for the text
.dimColor(R.color.black) // If set, will dim behind the view with 30% opacity of the given color
.drawShadow(true) // Whether to draw a drop shadow or not
.cancelable(false) // Whether tapping outside the outer circle dismisses the view
.tintTarget(true) // Whether to tint the target view's color
.transparentTarget(false) // Specify whether the target is transparent (displays the content underneath)
//.icon(Drawable) // Specify a custom drawable to draw as the target
.targetRadius(60), // Specify the target radius (in dp)
new TapTargetView.Listener() { // The listener can listen for regular clicks, long clicks or cancels
@Override
public void onTargetClick(TapTargetView view) {
super.onTargetClick(view); // This call is optional
countId++;
if(countId==id.size()){
countId=0;
}else{
setAbilityHelp(id,title,doc);
}
}
});
}
0
0
سلام یک عکس هم از خروجی که داره نمایش می دهد رو بگذار. (8 سال پیش)
برای این سوال 1 پاسخ وجود دارد.
پاسخ به سوال
Borhani
8 سال پیش
0
0
این قسمت
TapTargetView.showFor(MainStartup.this,// `this` is an Activity
رو تغییر به این بده
TapTargetView.showFor(this,// `this` is an Activity
این قسمت رو :
TapTarget.forView(findViewById(id.get(countId)), title.get(countId), doc.get(countId))
فقط یک آیتم رو تست کن یعنی
TapTarget.forView(findViewById(id.get(countId)))
در نهایت به این لینک مراجعه کن :
پاسخگویی و مشاهده پاسخ های این سوال تنها برای اعضای ویژه سایت امکان پذیر است .
چنانچه تمایل دارید به همه بخش ها دسترسی داشته باشید میتوانید از این بخش لایسنس این آموزش را خریداری نمایید .