我通过SELECT x.xdate, x.xevent, x.xname, x.xaffirm, y.activity, y.title,
y.text, y.date
FROM x LEFT JOIN y ON x.xdate = y.date
WHERE xevent='Hiking' AND xaffirm='Yes'
ORDER BY y.date DESC")
Print "<table width=500>";
while($info = mysql_fetch_array( $data ))
{
Print "<tr>";
Print
"<th style='width:225px;' bgcolor=#49A78D align=center >Title</th>
<th style='width:300px;' bgcolor=#49A78D align=center >Text</th>
<th style='width:175px;' bgcolor=#49A78D align=center >Date</th>
<th style='width:175px;' bgcolor=#49A78D align=center >Name</th>";
Print "</tr>";
Print "<tr>";
Print
"<td bgcolor=#ffffff valign=top align=center>".$info['title'] . "</td>
<td bgcolor=#ffffff valign=top align=left>".$info['text'] . "</td>
<td bgcolor=#ffffff valign=top align=left>".$info['date'] . "</td>
<td bgcolor=#ffffff valign=top align=left>".$info['name'] . "</td>";
Print "</tr>";
在我的Android Studio项目活动中使用链接。
默认链接是AppTheme的Accent颜色的颜色,并有一个底线(下划线)。那么如何在TextView中自定义链接:删除下划线,更改颜色和文本样式?
答案 0 :(得分:0)
您可以定义自己的自定义样式,然后将它们应用到布局xml文件中的textview。
<TextView
style="@style/CodeFont"
android:text="@string/hello" />
有关详细信息,请参阅https://developer.android.com/guide/topics/ui/themes.html。
答案 1 :(得分:0)
您可以覆盖android:textColorLink
属性以更改文字颜色。