https://github.com/amlcurran/ShowcaseView 라이브러리를 사용하여 쇼케이스보기를 만들었습니다. 기본적으로 쇼케이스 뷰 원은 요소의 가운데를 가리 킵니다. android showcaseview circle position을 변경하는 방법은 무엇입니까?
나는 텍스트 뷰의 시작 부분이 원을 이동하려는
날
업데이트
내 레이아웃
<RelativeLayout 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"
tools:context="com.bm.eg.activities.CreateProfileActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<include layout="@layout/toolbar_transparent" />
<TextView
android:id="@+id/tv_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:layout_marginLeft="40dp"
android:layout_marginRight="40dp"
android:layout_marginTop="8dp"
android:ellipsize="end"
android:hint="@string/hint_title"
android:singleLine="true"
android:textColor="@android:color/white"
android:textColorHint="@color/white_transparency_50"
android:textSize="24sp" />
활동에 도움을 주시기 바랍니다
mTVTitle = (TextView) findViewById(R.id.tv_title);
mShowcaseView = new ShowcaseView.Builder(this)
.setTarget(new ViewTarget(mTVTitle))
.setContentTitle(getString(R.string.sv_create_profile_title))
.setContentText(getString(R.string.sv_create_profile_title_description))
.setStyle(R.style.CustomShowcaseTheme2)
.blockAllTouches()
.replaceEndButton(R.layout.showcase_view_cusom_button)
.build();
방법은'설정 .setTarget (새 ActionViewTarget (이, ActionViewTarget.Type.HOME))되는' –
mTVTitle = (텍스트 뷰) findViewById를 (R.id.tv_title); .setTarget (새 ViewTarget (mTVTitle)) –