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