Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e51198a4 authored by Amit Kohli's avatar Amit Kohli Committed by Josh Guilfoyle
Browse files

List item updates

parent a2c1a0eb
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -17,7 +17,6 @@ public class ListItemHeaderTwinLabelSecondaryText extends LinearLayout {
	private TextView mItemText;
	private TextView mItem2Text;
	
	
	public ListItemHeaderTwinLabelSecondaryText(Context context) {
		this(context, null);
	}
+9 −3
Original line number Diff line number Diff line
@@ -16,7 +16,6 @@ public class ListItemTwinLabelSecondaryText extends LinearLayout {
	private TextView mItemText;
	private TextView mItem2Text;
	
	
	public ListItemTwinLabelSecondaryText(Context context) {
		this(context, null);
	}
@@ -34,8 +33,10 @@ public class ListItemTwinLabelSecondaryText extends LinearLayout {

		mItemLabel = (TextView)findViewById(R.id.itemLabelText);
		String text = a.getString(R.styleable.ListItemLayout_itemLabelText);
        if (text != null) {
        if (text != null && !"".equals(text)) {
        	mItemLabel.setText(text);
        } else {
        	mItemLabel.setVisibility(GONE);
        }

        mItemText = (TextView)findViewById(R.id.itemText);
@@ -64,7 +65,12 @@ public class ListItemTwinLabelSecondaryText extends LinearLayout {
	}
	
	public void setItemLabelText(CharSequence text) {
		if(text != null && !"".equals(text)) {
        	mItemLabel.setText(text);
        	mItemLabel.setVisibility(VISIBLE);
		} else {
			mItemLabel.setVisibility(GONE);
		}
	}
	
	public CharSequence getItemText() {
+4 −4
Original line number Diff line number Diff line
@@ -14,14 +14,14 @@
			android:gravity="center|left"
			android:layout_weight="1.0"
			android:paddingRight="10dp"
			android:id="@+id/itemLabelText" />
			android:id="@+id/itemText" />
		<TextView
			android:layout_width="85dp"
			android:layout_height="wrap_content"
			android:gravity="center|right"
			android:textAppearance="?android:attr/textAppearanceLabelListItemText"
			android:singleLine="true"
			android:id="@+id/itemText" />
			android:id="@+id/itemLabelText" />

	</LinearLayout>
	<LinearLayout
@@ -36,13 +36,13 @@
			android:gravity="center|left"
			android:layout_weight="1.0"
			android:paddingRight="10dp"
			android:id="@+id/itemLabel2Text" />
			android:id="@+id/item2Text" />
		<TextView
			android:layout_width="85dp"
			android:layout_height="wrap_content"
			android:gravity="center|right"
			android:textAppearance="?android:attr/textAppearanceLabelListItemText"
			android:singleLine="true"
			android:id="@+id/item2Text" />
			android:id="@+id/itemLabel2Text" />
	</LinearLayout>
</merge>