Base function finished
This commit is contained in:
parent
b5a00c1f59
commit
0d1ca2fbae
|
@ -42,6 +42,7 @@ public class TrendAdapter extends ArrayAdapter {
|
|||
v.setBackgroundColor(background);
|
||||
}
|
||||
String trendName = trend.getTrendname(position);
|
||||
((TextView) v.findViewById(R.id.trendpos)).setText(Integer.toString(position)+'.');
|
||||
((TextView) v.findViewById(R.id.trendname)).setText(trendName);
|
||||
return v;
|
||||
}
|
||||
|
|
|
@ -3,14 +3,20 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/twitterBlau"
|
||||
android:orientation="vertical">
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/trendpos"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_margin="5dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/trendname"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_margin="5dp"
|
||||
android:textSize="18dp" />
|
||||
android:textSize="20sp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
|
Loading…
Reference in New Issue