作成する必要がありますTextView
左揃えと右揃え同じ行にテキストを配置し、このように出力します。私はHTMLテキストか何か財産左のテキストと右のテキスト、方法のようないくつかのものを使用して解決策を探してることはsetCompoundDrawables
Android TextViewの左揃えと右揃え同じ行のテキストの整列
これは出力
電流であり、これはあります現在のコード
PackageInfo packageInfo = (PackageInfo) getItem(position);
Drawable appIcon = packageManager.getApplicationIcon(packageInfo.applicationInfo);
int inPixels= (int) context.getResources().getDimension(R.dimen.iconsize);
appIcon.setBounds(0, 0, inPixels, inPixels);
holder.apkName.setCompoundDrawables(appIcon, null, null, null);
holder.apkName.setCompoundDrawablePadding(15);
String appName = packageManager.getApplicationLabel(packageInfo.applicationInfo).toString();
Date date=new Date(packageInfo.firstInstallTime);
SimpleDateFormat df2 = new SimpleDateFormat("dd.MM.yyyy");
String dateText = df2.format(date);
holder.apkName.setText(Html.fromHtml("<b>"+appName+"</b>("+dateText+")"));
あなたは手の込んだていただけますか? –
Android TextViewの左揃えと右揃え同じ行のテキストの整列 –
ああ、テキストは左隅と右隅に表示しますか? –