Improve resume/pause layout

This commit is contained in:
Jimmy Shih
2012-08-30 14:57:01 -07:00
parent 378cae7151
commit af32c4f40f
2 changed files with 14 additions and 12 deletions
+12 -12
View File
@@ -43,27 +43,27 @@ limitations under the License.
android:layout_height="100dp"
android:layout_width="wrap_content"
android:scaleType="centerInside" />
<LinearLayout
<RelativeLayout
android:layout_height="100dp"
android:layout_marginLeft="-32dp"
android:layout_width="wrap_content"
android:orientation="vertical" >
<TextView
android:id="@+id/track_list_record_state"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:paddingTop="8dp"
android:textColor="@color/red"
style="@style/TextMedium" />
android:layout_width="wrap_content" >
<TextView
android:id="@+id/track_list_record_time"
android:layout_centerInParent="true"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:paddingLeft="24dp"
android:paddingRight="8dp"
android:textColor="@android:color/white"
style="@style/TextLarge" />
</LinearLayout>
style="@style/TextSmall" />
<TextView
android:id="@+id/track_list_record_state"
android:layout_above="@id/track_list_record_time"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:paddingBottom="12dp"
style="@style/TextSmall" />
</RelativeLayout>
<ImageButton
android:background="@android:color/transparent"
android:contentDescription="@string/menu_stop_recording"
@@ -522,6 +522,8 @@ public class TrackListActivity extends FragmentActivity implements DeleteOneTrac
isRecording ? R.drawable.btn_stop_1 : R.drawable.btn_stop_0);
stopRecordingImageButton.setEnabled(isRecording);
if (isRecording) {
recordStateTextView.setTextColor(
getResources().getColor(isPaused ? android.R.color.white : R.color.red));
recordStateTextView.setText(isPaused ? R.string.generic_paused : R.string.generic_recording);
recordStateTextView.setVisibility(View.VISIBLE);
} else {