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

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

adding list item secondary widget

parent b5b652ac
Loading
Loading
Loading
Loading
+5 −13
Original line number Diff line number Diff line
@@ -2,7 +2,6 @@ package com.tmobile.widget;

import android.content.Context;
import android.content.res.TypedArray;
import android.os.Debug;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.LinearLayout;
@@ -28,7 +27,6 @@ public class ListItemTwinLabelSecondaryText extends LinearLayout {
	
	public ListItemTwinLabelSecondaryText(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
//		Debug.stopMethodTracing();
		LayoutInflater.from(context).inflate(R.layout.tmobile_list_item_twin_label_secondary_text, this, true);

		TypedArray a = 
@@ -36,10 +34,8 @@ public class ListItemTwinLabelSecondaryText extends LinearLayout {

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

        mItemText = (TextView)findViewById(R.id.itemText);
@@ -59,6 +55,7 @@ public class ListItemTwinLabelSecondaryText extends LinearLayout {
        if (text != null) {
        	mItem2Text.setText(text);
        }
       
        a.recycle();
	}

@@ -67,12 +64,7 @@ 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() {