2016-08-29 2 views
1

android-maps-utilsでバンプ0.4.3から0.4.4までアイコンアイコンのアイコンジェネレータでTextViewスタイルを設定できません。 TextViewは、私が使っているスタイル(libやmy styles.xmlから)にかかわらず透明なままです。setTextAppearance()内のTextView android-maps-utils 0.4.4 always transparent

public class MapRenderCustom extends DefaultClusterRenderer<T> { 
public MapRenderCustom(Context context, GoogleMap map, ClusterManager<T> clusterManager) { 
    super(context, map, clusterManager); 
new IconGenerator(contex).setTextAppearance(com.google.maps.android.R.style.ClusterIcon_TextAppearance); 
} 
} 

上記は0.4.3で問題ありません。 しかし0.4.4では(amu_ClusterIcon_TextAppearanceに変更しても)動作しません。

これに対して非難されるコードはhttps://github.com/googlemaps/android-maps-utils/commit/29490ad2cbc6bf2fb13fb7ac60eb8769c408bd51ですが、TextViewの可視性がどのように壊れているかわかりません。

答えて

2

、ここで説明したように私は解決:ここに私の答えの https://github.com/googlemaps/android-maps-utils/issues/315

コピー/ペースト: 少数の後、私はまたmakeSquareTextView方法が変更されたことに気づいコミット掘ります。

mIconGenerator.setTextAppearance(R.style.ClusterIcon_TextAppearance);

01から

を必要に応じて

squareTextView.setId(R.id.text);

から

squareTextView.setId(R.id.amu_text);

にこのスタイルの変更はテキストラベルを表示することができるようにします

mIconGenerator.setTextAppearance(R.style.amu_ClusterIcon_TextAppearance);